HTML5 new elements


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

In order to better handle today's Internet applications, HTML5 adds many new elements and functions, such as: Drawing of graphics, multimedia content, better page structure, better form Handling, and several APIs for dragging and dropping elements, positioning, including web pages Application cache, storage, network workers, etc.


<canvas> New element

##TagDescription The <canvas> tag defines graphics, such as charts and other images. The tag is based on JavaScript's drawing API

##New Multimedia Elements

Tag<audio>##<video>Define video (video or movie)Define multimedia resources<video> and<audio>Define embedded content, such as plug-ins. Specifies an external text track for media such as <video> and <audio> elements. New form element
Description
Define audio content
##<source>
<embed>
<track>


##Tag

Description<datalist>Define the option list. Use this element in conjunction with an input element to define the possible values ​​of the input. <keygen>Specifies the key pair generator field to use for the form. <output>Define different types of output, such as script output.

New semantic and structural elements

HTML5 provides new elements to create better page structure:

##<dialog>Define a dialog box, such as a prompt box<summary>The tag contains the title of the details element##<figure><figcaption><footer><header>##<mark>Define text with tokens. <meter>Define weights and measures. Use only for measurements with known maximum and minimum values. <nav>The part that defines the navigation link. <progress>Define the progress of any type of task. <ruby>Define ruby ​​comments (Chinese phonetic notations or characters). <rt> Define the interpretation or pronunciation of a character (Chinese phonetic phonetic or character). <rp> is used in ruby ​​comments to define the content displayed by browsers that do not support ruby ​​elements. <section>Define the section (section, section) in the document. <time>Define the date or time. <wbr>Specifies where in the text it is appropriate to add line breaks.
TagDescription
<article>Define an independent content area of ​​the page.
<aside>Define the sidebar content of the page.
<bdi>Allows you to set a piece of text independent of the text direction setting of its parent element.
<command>Define a command button, such as a radio button, check box, or button
< details>Used to describe the details of a document or a certain part of a document
is specified independently of streaming content (images, charts, photos, code, etc.).
Define the title of the <figure> element
Define the footer of section or document.
Defines the header area of ​​the document
Removed Elements

The following HTML 4.01 elements have been removed in HTML5:

<acronym>
  • <applet>
  • ##<basefont>

  • <big>

  • ##<center>

  • <dir>

  • <font>

  • ##<frame>
  • <frameset>
  • <noframes>
  • <strike>
  • <tt>