Why doesn’t html just have hcenter and vcenter tags or something?
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 <center> for centering things horizontally. Yes, it’s literally <center> content </center>. It’s been around since the early 90s, too. Dunno about a vertical center</center>
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
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.
deleted by creator
well with the css grid and flexbox it’s no longer a problem.
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 <center> for centering things horizontally. Yes, it’s literally
<center> content </center>
. It’s been around since the early 90s, too. Dunno about a vertical center</center>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/centerCenter tag is deprecated in HTML5