• BlackEco
      link
      fedilink
      English
      7
      edit-2
      11 months ago

      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.

    • I Cast Fist
      link
      English
      5
      edit-2
      11 months ago

      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>

    • @kameecoding
      link
      511 months ago

      well with the css grid and flexbox it’s no longer a problem.