Learn HTML - Semantic HTML Cheatsheet - Codecademy
Learn HTML - Semantic HTML Cheatsheet - Codecademy
Semantic HTML
Semantic HTML
Semantic HTML introduces meaning to the code we write. <!--Non Semantic HTML-->
Before Semantic HTML the elements didn’t have any meaning
<div id="footer">
as to what it does or what content goes in it. An element such
as <div> was used as a general-purpose element to create <p>this is a footer</p>
things from headers to footers to articles. With Semantic </div>
HTML we were introduced to elements that tell developers
and browsers exactly what it does and what content should
go in it. <!--Semantic HTML-->
<footer>
<p>this is a footer</p>
</footer>
Element Placement
Embedding media
<!--Embed tag-->
<embed src="babyyoda.gif"/>
<figure> and <figcaption>
Print Share