Re:How to Center in CSS (2015)
by colejohnson66 on Tuesday May 19, 2020 @02:54PM
(#23238657)
Didn’t HTML5 remove the <center> tag? In that case, just seeing the HTML5 DOCTYPE should allow ignoring those elements (as in not styling them). For example, if I do:
<center>
Text
</center>
...just treat the tags as <doc> tags: <div>
Text
</div>
I understand there are many websites following older standards, but I can wish (for HTML5 to have been “strict”)I know, but I still think <center>text</center> ist more readable then most of the css workarounds we had to use in the past.
I wouldn’t recommend using it for big or professional projects, but I guess it’s fine for personal stuff. Like the other comment said it’s an obsolete tag. Browsers tend try hard not to break old HTML but not sure that’s guaranteed to always be the case.