Skip to content

HTML

HTML5 new features, semantics

Concept

HTML5 semantics refers to the reasonable and correct use of semantic tags to create page structure. [Right tags for the right things]

Semantic tags

header nav main article section aside footer

Advantages of semantics:

  • Even without CSS styles, the overall page will also present a good structural effect

  • The code structure is clear and easy to read,

  • It is conducive to development and maintenance. It is convenient for other devices to parse (such as screen readers) and render web pages according to semantics.

  • It is conducive to search engine optimization (SEO). Search engine crawlers will assign different weights according to different tags.

Released under the MIT License.