Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML5 Semantic Elements

HTML5 Semantic Elements


Semantics = meaning

Semantic elements = elements with meaning


What Are Semantic Elements?

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

No Semantics Element example:

and - no need to consider the content.

MeaningElement example:

,


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 9+, Firefox, Chrome, Safari, and Opera support semantic elements.

Note: Internet Explorer 8 and earlier versions do not support this element. However, a compatible solution is provided at the bottom of the article.


New Semantic Elements in HTML5

Many existing websites contain the following HTML code:

, and - clearly define their content.