Why is the
tag deprecated in HTML?

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

    The

    element was deprecated because it defines the presentation of its contents — it does not describe its contents.

    One method of centering is to set the margin-left and margin-right properties of the element to auto, and then set the parent element’s text-align property to center. This guarantees that the element will be centered in all modern browsers.

提交回复
热议问题