Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is so bad about the center tag?

Yep, W3 says it's (<center>) deprecated... But all browsers support it (including new releases)...

Can anyone shed some light on this, everyone says "It's bad/frowned upon." yet I've seen no evidence..

PLEASE READ THE QUESTION, IT'S NOT A DUPLICATE:
I was asking why this is bad/frowned upon, not why it's been deprecated!!

Edit:
So, the only reason is that "The CSS should handle this"?

like image 701
Barrie Reader Avatar asked Feb 02 '11 10:02

Barrie Reader


1 Answers

The issue is not that it is "bad". It a matter of separation of concerns.

This tag is intended to be used for presentation only. It has no other semantic meaning.

Since the move is to have presentation handled by CSS and HTML should only be used for semantic markup, the tag has been deprecated.

like image 120
Oded Avatar answered Sep 18 '22 12:09

Oded