HTML 5 New Elements

HTML5 new elements

HTML 4.01 has changed a lot since 1999. Today, several of HTML 4.01 have been abandoned, and these elements have been deleted or redefined in HTML5.

In order to better handle today’s Internet applications, HTML5 has added many new elements and functions, such as: graphics rendering, multimedia content, better page structure, better form handling, and several api drag and drop elements, positioning, Including web application caching, storage, web workers, etc.

<canvas> new element

Labels define graphics, such as charts and other images. The label is based on the JavaScript drawing API

New multimedia elements

label description
<audio> Define audio content
<video> Define the video (video or movie)
<source> Define multimedia resources <video> and <audio>
<embed> Define embedded content, such as plug-ins.
<track> Specifies external text tracks for media such as <video> and <audio> elements.

New form element

label description
<datalist> Define a list of options. Please use this element in conjunction with the input element to define the possible values ​​of input.
<keygen> Specifies the key pair generator field to be used in the form.
<output> Define different types of output, such as script output.

New semantic and structural elements

HTML5 provides new elements to create a better page structure:

Label Description
Define a separate content area of ​​the page.
Define the sidebar content of the page.
Allows you to set a piece of text so that it is out of the text direction setting of its parent element.
Define command buttons, such as radio buttons, check boxes, or buttons
Used to describe the details of a document or a part of a document
Define a dialog box, such as a prompt box
The label contains the title of the details element
Specify independent streaming content (images, charts, photos, codes, etc.).
Define the title of the <figure> element
Define the footer of a section or document.
Defines the head area of ​​the document
Define marked text.
Define weights and measures. Only used for metrics with known maximum and minimum values.
Define the part of the navigation link.
Define the progress of any type of task.
Define ruby ​​notes (Chinese phonetic or characters).
Define the interpretation or pronunciation of characters (Chinese phonetic or character).
Used in ruby ​​comments to define the content displayed by browsers that do not support ruby ​​elements.
Define the sections (sections, sections) in the document.
Define the date or time.
Specifies where in the text it is appropriate to add a newline character.

Removed element

The following HTML 4.01 elements have been removed in HTML5:

  • <acronym>
  • <applet>
  • <basefont>
  • <big>
  • <center>
  • <dir>
  • <font>
  • <frame>
  • <frameset>
  • <noframes>
  • <strike>
  • <tt>