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

PHPz
Release: 2023-09-12 13:41:02
forward
578 people have browsed it

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>
Copy after login

Output

When running this code, we get the above result

This sentence is of normal size.
This sentence is of reduced size.
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!