Home >Web Front-end >Front-end Q&A >What are the deprecated tags in html5?

What are the deprecated tags in html5?

青灯夜游
青灯夜游Original
2022-07-26 17:04:523826browse

Absolute tags in html5: 1. basefont, used to define the default color, size and font of all text in the document; 2. big, used to make larger text; 3. font, specifying the text Font, font size, font color; 4. s, identifies incorrect, inaccurate or useless text; 5. strike, defines strikethrough text; 6. tt, defines typewriter text; 7. u, defines Underlined text; 8. frameset, defines a frameset; 9. dir, defines a directory list.

What are the deprecated tags in html5?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

HTML5 obsolete tags (elements)

1. Tags that can be replaced by CSS

Among some of the tags before html5, some tags are purely used for display effects. 2. H5 continues the separation of content and performance, leaving more of the display effects to CSS. Therefore, the abandoned tags in this regard are: abd1d7fe556b8a5c1c26946ca234394a, 3d49bde0e0b2e042578ad34140b6c48e, 240cb830ca84ebaabbd07850110b414d, 2e44d2d3284d23d932e1fd85f3d4cf3a533df51242d4fe18c58d599b7d69a4e478f983dbc27872ba42409adefe5049d988f336217b3880082bb52d49b5de60a5

  • ##

  • 3d49bde0e0b2e042578ad34140b6c48e: Used to make larger text.

  • 240cb830ca84ebaabbd07850110b414d: Specifies the font, font size, and font color of the text.

  • 2e44d2d3284d23d932e1fd85f3d4cf3a: Identifies text that is incorrect, inaccurate, or useless.

    This tag should not be used to define replaced or deleted text. If you want to define replacement or deleted text, use the 823db3943044a0a9a620ada8d4b1d965 tag.


  • 533df51242d4fe18c58d599b7d69a4e4: Define strikethrough text.

  • 78f983dbc27872ba42409adefe5049d9: Define typewriter text.

  • 88f336217b3880082bb52d49b5de60a5: Define underlined text.

2. Frame is no longer supported

Since frame has a negative impact on page usability, frame is no longer supported in HTML5. But iframe framework is supported. Therefore, the

f900b4fc197b16ab214eecf015bb6bd2, 04a0d55efbbfd646a993fbc01f262c57, 37f861bd36cef5b6406eba87d20a5bab

    of the frame frame are abandoned in H5. ##f900b4fc197b16ab214eecf015bb6bd2: Define a frameset.
  • The frameset element is used to organize one or more 04a0d55efbbfd646a993fbc01f262c57 elements. Each 04a0d55efbbfd646a993fbc01f262c57 has its own separate document.

    The frameset element specifies how many columns or rows exist in the frameset, and the percentage/pixels occupied by each row and column.

  • 04a0d55efbbfd646a993fbc01f262c57: Defines the child window (frame) in f900b4fc197b16ab214eecf015bb6bd2.
  • 37f861bd36cef5b6406eba87d20a5bab: Display text for browsers that do not support frames. The noframes element is inside the frameset element.
  • The noframes element is inserted into the f900b4fc197b16ab214eecf015bb6bd2 element.


3. Other abandoned tags

Other abandoned tags are mainly because there are better alternatives.

被废弃的标签                                  替代的标签
<bgsound>                                    <audio>
<marquee>                                    js代码实现
<applet>                                     <embed>和<object>
<rb>                                         <ruby>
<acronym>                                    <abbr>
<dir>                                        <ul>
<isindex>                                    <form>和<input>集合
<listing>                                    <pre class="brush:php;toolbar:false">
<xmp>                                        <code>
<nextid>                                     GUIDS
<plaintext>                                  "text/plain" MIME 类型

Only tags supported by some browsers

bgsound background music, blink text flashing, marquee text scrolling, applet

Supplement: Redefined html tag

    a4b561c25d9afb9ac8dc4d70affff419: Represents inline text, usually bold, without conveying important meaning.
  • 5a8028ccc7a7e27417bff9f05adf5932: Represents inline text, usually in italics, and does not convey important meaning.
  • 67bc4f89d416b0b8236eaa5f43dee742: Can be used with details and figure, the definition contains text, djalog can also be used
  • 73de882deff7a050a357292d0a1fca94: Yes Used together with details and figure to summarize details. Dialog can also be used
  • 5c0e96d12fc7501cef2ae2efde646ee0: Redefine the menu of the user interface and use it with commond or menuitem
  • d015d241ae6d34c34210679b5204fe85: Indicates small font, such as printing notes or legal clauses
  • 8e99a69fbe029cd4e2b854e244eab143: Indicates importance rather than emphasis symbols
  • Related recommendations: "
html video tutorial

"

The above is the detailed content of What are the deprecated tags in html5?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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