• I Cast Fist@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 year 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>

    • BlackEco@lemmy.blackeco.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year 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.