HTML HTML Basics Structuring Your Content Sectioning Content with <article>, <nav> and <aside>

walter fernandez
walter fernandez
4,991 Points

what are <article>, <nav> and <aside> for? are those visible on the website?

what are <article>, <nav> and <aside> for? are those visible on the website?

1 Answer

Uche Onuekwusi
Uche Onuekwusi
15,452 Points

<article>, <nav> and <aside> are not visible on the website. They are just a semantic way of structuring your website so the browser will know which part is which. It helps during search engine optimization as search engines will know parts of your website that are articles, footers, headers etc

Wade Williams
Wade Williams
946 Points

So can we look at it as comments for search engine, kinda like how we add comments in our code for more clarification. Also, what happens if we don't include these semantic.