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>
deleted by creator
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.
well with the css grid and flexbox it’s no longer a problem.
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 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/center