View video tutorial

HTML Semantic Elements

HTML

The semantic elements accurately describe their meaning and usage.

HTML Semantic Elements


➔ In HTML, content, attributes, and attribute values ​​are defined by the HTML specification for a specific meaning. These definitions allow HTML processors to present and use documents and applications in a variety of contexts.

➔ Semantic HTML elements are those that clearly define their meaning in human and machine-readable ways.

➔ All elements are considered semantic when accurately describing the purpose and type of content.

➔ Ex: p, div, header, footer, section etc.

Semantic Elements Categories


Each element of HTML falls into one or more categories that group elements of similar characteristics together.

They can be divided into the following broad categories.Some elements also can be divided into other categories.

  • Formatting Elements
  • Metadata Elements
  • Flow Elements
  • Sectioning Elements
  • Heading Elements
  • starPhrasing Elements
  • Embedded Elements
  • starInteractive Elements