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

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