Home  >  Article  >  Web Front-end  >  Which elements are obsolete in html5

Which elements are obsolete in html5

青灯夜游
青灯夜游Original
2021-12-16 17:16:022671browse

html5 Obsolete elements: basefont, big, center, font, s, strike, tt, u, frame, frameset, noframes, align, vlink, alink, text, bgcolor, valign, hspace, etc.

Which elements are obsolete in html5

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

HTML5 obsolete elements

Category 1: 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 after rendering

Second category: frame elements

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

  • frame

  • frameset

  • ##noframes

But html5 supports iframe.

The third category: attribute class

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

  • align

  • The link, vlink, alink, text attributes on the body tag

  • bgcolor

  • height and width

  • scrolling attribute on iframe element

  • valign

  • hspace and vspace

  • The cellpadding, cellspacing and border attributes on the table tag

  • The profile attribute on the header tag

  • The target attribute on link tag a

  • The longdesc attribute of img and iframe elements

Category 4: Others

  • abbr replaces acronym (used to represent abbreviation)

  • object replaces applet

  • ul replaces dir

Recommended tutorial: "

html video tutorial"

The above is the detailed content of Which elements are obsolete 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