HTML5 semantic elements

Semantics = meaning.

Semantic elements = meaning of elements.


What is semantics Element?

#A semantic element can clearly describe its meaning to browsers and developers.

No semanticsElement examples:

and - no need to consider content.

Semantic element examples:

, , and - clearly defines its content.


Browser support

8.jpg

Semantic elements are supported in Internet Explorer 9+, Firefox, Chrome, Safari and Opera.

Note: This element is not supported in Internet Explorer 8 and earlier. However, compatible workarounds are provided at the bottom of the article.


New semantics in HTML5 Element

Many existing websites contain the following HTML code:

5.jpg



#HTML5

Element

The
element describes the header area of the document

The
element is used to define the introductory display area of the content.

You can use multiple
elements.

The following example defines the header of the article:

    php中文网(php.cn) 

Internet Explorer 9

Windows Internet Explorer 9(缩写为 IE9 )是在2011年3月14日21:00发布的

pubdate indicates that the date/time in the

element)

Run the program and try it


##HTML5

Continuing Learning
||
php中文网(php.cn)

黄山:世界文化与自然双重遗产,世界地质公园,国家AAAAA级旅游景区,国家级风景名胜区,
全国文明风景旅游区示范点,中华十大名山,天下第一奇山。黄山位于安徽省南部黄山市境内

黄山风景
Fig.1 -黄山的一张风景图.
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!