Why is the font element not supported in HTML5?

后端 未结 3 1192
萌比男神i
萌比男神i 2021-01-11 16:04

I am just curious really and hope that someone can reveal the method in the madness of the W3C. What is the reason for not supporting this element in the latest HTML5 standa

3条回答
  •  太阳男子
    2021-01-11 17:06

    HTML tags describe their contents. To mark up your HTML you should use CSS. In such way you can create different skins for the same information. Since the font tag serves purely visual purpose, it has no place in HTML; it does not describe the contents.

    With describing contents I mean: "This is paragraph of text / this is a time / this is a link to another page / this is the title of this article / this is a list of related terms / this is a table containing test results" etc.

    Read up on semantic HTML, it will hopefully make things more clear for you.

提交回复
热议问题