Semantic HTML
Semantic HTML
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
<div id="footer">
meaning as to what it does or what content goes in it. An
element such as <div> was used as a general-purpose <p>this is a footer</p>
element to create things from headers to footers to </div>
articles. With Semantic 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
1 of 3 05-Nov-24, 7:26 PM
Firefox about:srcdoc
Embedding media
<!--Embed tag-->
<embed src="babyyoda.gif"/>
2 of 3 05-Nov-24, 7:26 PM
Firefox about:srcdoc
Print Share
3 of 3 05-Nov-24, 7:26 PM