Why is the
tag deprecated in HTML?

前端 未结 12 1642
攒了一身酷
攒了一身酷 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:14

    What I do is take common tasks like centering or floating and make CSS classes out of them. When I do that I can use them throughout any of the pages. I can also call as many as I want on the same element.

    .text_center {text-align: center;}
    .center {margin: auto 0px;}
    .float_left {float: left;}
    

    Now I can use them in my HTML code to perform simple tasks.

    Some Text

提交回复
热议问题