Home  >  Article  >  Web Front-end  >  Why is there no in the HTML5 tag list, but there is ?

Why is there no in the HTML5 tag list, but there is ?

PHPz
PHPzforward
2023-09-12 13:41:02551browse

Why is there no <why> in the HTML5 tag list, but there is <is>?

Unlike HTML 4.01, HTML 5 does not support the tag. The tag causes the text font size to be reduced to the browser's minimum font size. For example, using the tag in text with a large font size will change the font size to medium. In HTML5, this element was repurposed to represent sidebars and small font size. It also supports global attributes and event attributes in HTML

Conversely, the tag will make the font size of the text one size larger than the actual font size. Although this tag is not part of HTML 5, some browsers still support it. However, it is recommended that this tag is no longer used as some browsers may no longer support its use.

Example

You can try running the following code to implement the element−

<!DOCTYPE html>
<html>
   <body>
      <p>This sentence is of normal size.</p> <p><small>This sentence is of reduced size.</small></p>
   </body>
</html>

Output

When running this code, we get the above result

This sentence is of normal size.
This sentence is of reduced size.

The above is the detailed content of Why is there no in the HTML5 tag list, but there is ?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete