Why is the font element not supported in HTML5?

后端 未结 3 1191
萌比男神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 16:49

    In short:

    HTML is a markup language. Use it to mark up the different sections of your content using the most semantically accurate element.

    CSS is used for styling purposes, such as changing colors, sizes, fonts, etc.

    The element was used for styling, not marking up a section of your content. That's why it's deprecated, along with other out-of-place elements such as

    .

提交回复
热议问题