Home > Web Front-end > H5 Tutorial > body text

HTML5 new knowledge

巴扎黑
Release: 2017-07-21 09:16:29
Original
1970 people have browsed it

1. The main new semantic tags of h5 are as follows:

1. header page header, page header

2. nav page navigation

3. atricle an article

4. section chapter in the article

5. aside sidebar

6.footer bottom of the page, footer

To make the PC compatible with h5 new tags, introduce the js file into the page

2. New form controls in HTML5

1. New types: Website Email Date Time Week Quantity Range Phone Color Search

a.
b ,
 c.
 d、
 e、

2. Add commonly used form control attributes

a. placeholder Set the default prompt text of the text box

b. autofocus automatically obtain focus

c. autocomplete Set whether there is a drop-down of associated keywords. Generally set to "off" and turn it off. For example: autocomplete="off"

3. HTML5 audio audio and video video

html5 adds audio and video tags, providing a standard method for inserting audio and video on the page

1. Audio tag support Format: ogg, wav, mp3

##Corresponding attributes:

a.autoplay Automatic play

b. controls display player

c. loop loop player

d. preload preload

 e, multed mute

For example:

The source tag is used to provide multiple media file addresses. If the file at one address is incompatible, use the following an address.

2. Video tag Supported formats: ogg, mp4, webM

Corresponding attributes:

a.width

b ,height

 c、Poster

For example:
Related labels:
source:php.cn
Statement of this 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template