The new features of html5 are: 1. Semantic tags (hrader, footer, etc.), which make the content of the page structured and visible; 2. Enhanced forms, with multiple new form inputs Type, which provides better input control and validation; 3. video and audio elements, which provide a standard method for playing video and audio files; 4. Canvas drawing; 5. SVG drawing; 6. Geolocation; 7. Drag and drop API ; 8. Web Worker; 9. Web Storage, etc.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
Top Ten New Features of HTML5
In order to better handle today's Internet applications, HTML5 has added many new elements and functions, such as: graphics drawing, multimedia content, better page structure, better form handling, and several APIs for dragging and dropping elements, positioning, including web application caching, storage, web workers, etc.
( 1) Semantic tags
Semantic tags make the content of the page structured and well-known
## Tag
Description
##
Defines the head area of the document
Defines the tail area of the document
Define document navigation
Define sections (sections, sections) in the document
Define independent content areas of the page
Define the sidebar content of the page
##
Used to describe the details of a document or a certain part of the document
##
The tag contains the details element Title
Define dialog box, such as prompt box
(2) Enhanced form
HTML5 has multiple new form Input input types. These new features provide better input control and validation.
Input type
Description
color
Mainly used to select colors
#date
Select a date from a date picker
datetime
Select a date (UTC time)
datetime-local
Select a date and time (no time zone)
email
Input field containing e-mail address
month
Select a month
##number
Input field for numerical values
range
Input field for numerical values within a certain range
search
Used for search domain
tel
Define the input phone number field
time
Select a time
##url
URL Address input field
week
Select the week and year
## HTML5 also Add the following form elements
Form element
Description
The above is the detailed content of What are the new features of html5. For more information, please follow other related articles on the PHP Chinese website!
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