Discontinuation of the center tag

5

I know it sounds like a lot, maybe even a lot of lack of knowledge, but I've done some research and found nothing that convinced me in fact.

Does anyone have any, or do you know why the tag has been discontinued?

Because sometimes I find it much easier than having to centralize using CSS. Does anyone have an explanation?

    
asked by anonymous 12.09.2014 / 11:03

2 answers

9

As HTML, CSS, and JavaScript / DOM evolved, web standards "evangelists" now advocate a clearer separation of the responsibilities of each of these layers in order to mitigate the HTML problem "paghette ".

Responsibilities are:

  • HTML: structure to content according to your sense .
  • CSS: set the appearance of rendered HTML.
  • JavaScript: Set the behavior of the document in interaction with people.

The <center> tag had a purely visual rather than a structural or semantic purpose. So it was a part of HTML that should be being handled by CSS, and so it was discontinued. This also occurred with various other elements and attributes .

    
12.09.2014 / 14:18
5
  

. The tag should be avoided because it has been disapproved since HTML version 4. [source] < br>   . In addition to not being supported in HTML5. [source]

is obsolete but its effect can be achieved using align or an element formatting by css. It is just a shortcut to <div align="center"> . Align is still valid, should be avoided.

Debate 1 , Debate 2 . Both address the disuse of the tag center.

    
12.09.2014 / 12:02