A semantic element clearly describes its meaning to both the browser and the developer.
Examples of non-semantic elements: <div> and <span> - Tells nothing about its content.
Examples of semantic elements: <form>, <table>, and <article> - Clearly defines its content.
Semantic Elements in HTML
Semantic Elements in HTML
Below is a list of some of the semantic elements in HTML.
Semantic elements = elements with a meaning.
What are Semantic Elements?
A semantic element clearly describes its meaning to both the browser and the developer. Examples of non-semantic elements:
<div>
and<span>
- Tells nothing about its content. Examples of semantic elements:<form>
,<table>
, and<article>
- Clearly defines its content.Semantic Elements in HTML
Semantic Elements in HTML
Below is a list of some of the semantic elements in HTML.
<article>
<aside>
<details>
<figcaption>
<figure>
element<figure>
<footer>
<header>
<main>
<mark>
<nav>
<section>
<summary>
<details>
element<time>