Get the App
SLTechnology News&Howtos  ›  Development  › 

Which tags did html5 discard?

Shulou Source: shulou.com Published: 2022-06-01 23:51:35 09月22日 Update

Editor to share with you which tags html5 abandoned, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Tags that have been discarded in html5 are: frame, frameset, noframes, font, center, basefont, big, strike, tt, u, s, acronym, applet, dir and so on.

The operating environment of this tutorial: windows10 system, HTML5 version, Dell G3 computer.

What tag was abandoned by html5?

The following HTML 4.01elements have been deleted in HTML5. Although browsers still support these tags for compatibility reasons, it is recommended to use new alternative tags. Paradoxically, the old browser does not have enough support for the new tags, depending on the audience of the project.

The first category: expressive elements

Basefont

Big

Center

Font

S

Strike

Tt

U

It is recommended to replace them with semantically correct elements, and use CSS to ensure the effect of rendering

The second category: frame class elements

Due to many usability and accessibility issues with the framework, the HTML5 specification removes the following elements.

Frame

Frameset

Noframes

However, html5 supports iframe.

The third category: attribute class

Many expressive attributes have also been removed by the new specification, as follows:

Align

Link, vlink, alink, text attributes on the body tag

Bgcolor

Height and width

The scrolling attribute on the iframe element

Valign

Hspace and vspace

Cellpadding, cellspacing, and border attributes on the table tag

The profile attribute on the header tag

The target attribute on link label a

Longdesc attribute of img and iframe elements

Category IV: other

Abbr replaces acronym (used for abbreviations)

Object replaced applet.

Ul replaced dir.

The above is all the content of the article "which tags has been abandoned by html5". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Tags attributes elements articles support content suggestions frames browsers expressiveness browsing contradictions not enough not much compatibility audience usability most objects effects Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Xiaomi Shulou Information Microsoft Redmi