Home  >  Article  >  Web Front-end  >  An example tutorial on HTML5 semantic elements

An example tutorial on HTML5 semantic elements

零下一度
零下一度Original
2017-06-13 11:51:381579browse

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. Browser support 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, a compatible workaround is provided at the bottom of the article. New Semantic Elements in HTML5 Many existing websites contain the following HTML code: