7 HTML5 Semantic Elements To Use In Your Web Pages

HTML5 will enable you to convey the structure of your web pages in a clear manner

Image for post
Image for post
Photo by Hal Gatewood on Unsplash

The Advantages of using HTML5 semantics elements include

<article>

<section>

<article>
<p>Main headlines</p>
<section>
<p>News</p>
<h4> Headline one </h4>
</section>
</article>

<nav>

<nav>
<ul>
<li><a href="/home"> Home </a></li>
<li><a href="/about"> About </a></li>
</ul>
</nav>

<aside>

<aside>
<p>This is a sidebar; content may complement main section.</p>
</aside>

<header>

<header>
<h1> Page heading </h1>
<p> Paragraph With supplementary info</p>
</header>

<footer>

<footer> &copy; Mkulu inc. All rights reserved </footer>

<figure> and <figcaption>

<figure>
<img src="./assets/img/lake_malawi.jpg" alt="beautiful lake" />
<figcaption> Image of lake Malawi at dawn </figcaption>
</figure>
Image for post
Image for post
Diagram by author

Conclusion

Written by

I develop software by profession. My interests include: history, economics, politics & enterprise-architecture. I am a child of God.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store