Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

center is presention. CSS is for presentation. Don't use HTML for presentation or styling.


I understand your position and that may be correct. I'm not sure.

It's so common (so common that it still works everywhere) might be worth an exception.

I just added 'center' tag to Scroll, and seems promising:

https://try.scroll.pub/#scroll%0A%20Hello%20world%0A%20%0A%2...


The center element has been marked obsolete for over 15 years and is flagged by the W3C Validator as an error. It can be removed from browsers at any time without notice.

https://html.spec.whatwg.org/dev/obsolete.html#obsolete


> I understand your position and that may be correct.

That's what I say to markup that uses the <center /> tag


Bah humbug. When you just want to get semething onto the web ASAP, browser CSS defaults are pretty OK and <center> might be all you need.


Meanwhile I use Tailwind and no one can stop me.

Semantic HTML was a pipe dream and a silly idea in hindsight.


Tailwind is a CSS framework and not HTML.

Tailwind and CSS have nothing to do with semantics of a document outline and its markup.


Tailwind is cramming CSS into HTML. It has everything to do with markup.


You are right. And I said the same thing. Tailwind is CSS but that has nothing to do with markup which is strictly HTML.

Markup is the description of the contents of the document. CSS is the styling of the document and has nothing to do with description of content. That is the realm of HTML.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: