HTML5 semantic elements

HTML5 Semantic Element

Semantic = meaning.

Semantic Element = Meaning of element.

What is a semantic element?

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

Semantic element examples:

and - no need to consider content.

Semantic element examples:

, , and - clearly defines its content.

No semantic element examples:

and - No need to consider the content.
Semantic element examples: ,
, and - clearly defines its content.

is a typical semantic tag that defines the title of the document.</p> <p>New semantic elements in HTML5<br>Many existing websites contain the following HTML code: <div id="nav">, <div class="header">, or <div id="footer">, to indicate navigation Links, headers, and trailers.<br><br>HTML5 provides new semantic elements to identify different parts of a Web page:<br><header><br><nav><br><section> ;<br><article><br><aside><br><figcaption><br><figure><br><footer></p> <p>HTML5 <section> Element</p> <p><section> tag defines a section (section, section) in the document. Such as chapters, headers, footers, or other parts of the document.</p> <p>According to W3C HTML5 documentation: section contains a set of content and its title.</p> <pre class="brush:html;toolbar:false"><!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>

沁园春 雪

北国风光, 千里冰封, 万里雪飘。 望长城内外, 惟余茫茫。 大河上下, 顿失滔滔。 山舞银蛇, 原驰蜡象。 欲与天公誓比高。 须睛日, 看红装素裹, 分外妖娆。 江山如此多娇, 引无数英雄竞折腰。 昔秦皇汉武, 略疏文采; 唐宗宋祖, 稍逊风骚。 一代天骄, 成吉思汗, 只识弯弓射大雕。 俱往矣, 数风流人物, 还看今朝。

我爱这土地

假如我是一只鸟, 我也应该用嘶哑的喉咙歌唱: 这被暴风雨所打击着的土地, 这永远汹涌着我们的悲愤的河流, 这无止息地吹刮着的激怒的风, 和那来自林间的无比温柔的黎明

HTML5

Element

tag defines independent content. .

Element usage example:

Forum post

Blog post

News story

Comment

    php中文网(php.cn) 

Internet Explorer 9

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

HTML5