this post was submitted on 07 Aug 2023
466 points (91.9% liked)
Programmer Humor
32503 readers
536 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
HTML is a markup language, its purpose is to structure documents, while CSS can be seen as an additional layer that allows you to style and alter the layout of HTML documents. Because of this philosophy, it wouldn't make any sense to have such tags.
It actually has for centering things horizontally. Yes, it's literally
<center> content </center>
. It's been around since the early 90s, too. Dunno about a vertical centerCenter tag is deprecated in HTML5
center
is mostly for centering text and is being deprecated in favor oftext-align
andmargin-*: auto
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/centerwell with the css grid and flexbox it's no longer a problem.