logo

modern front end tech

Semantics in HTML

in this chapter you are going to learn

What is Semantics?

Semantics refers to the meaning and purpose of elements within a programming language or markup language like HTML. In HTML, semantic elements clearly describe their meaning in a human- and machine-readable way. For example, elements like <header>, <footer>, <article>, and <section> are semantic elements because they convey the structure and meaning of the content they contain.

Semantic Elements in HTML5

HTML5 introduced several new semantic elements that help define the structure of a webpage more clearly. Some of the key semantic elements include:

Importance of Semantics

Using semantic elements in HTML is important for several reasons:

our youtube channel