Why is the
tag deprecated in HTML?

前端 未结 12 1675
攒了一身酷
攒了一身酷 2020-11-22 01:36

I am just curious as to why the

tag in HTML was deprecated.

The

was a simple way of quickly center-aligning b
12条回答
  •  青春惊慌失措
    2020-11-22 02:29

    You can add this to your css and use

    .center{
      text-align: center;
      margin: auto;
      justify-content: center;
      display: flex;
    }
    

    or if you want to keep

    and be prepared in case its ever removed, add this to your css

    center{
      text-align: center;
      margin: auto;
      justify-content: center;
      display: flex;
    }
    

提交回复
热议问题