Welcome to the Treehouse Community
Looking to learn something new?
Florentin Dumitrache3,757 Points
Why we use <header> , <section>, <footer> ?
Why we use <header> if it hasn't any impact on the web page . Why we put h1 ... h6 tag in a header , what is the purpose? I've noticed that if i delete the header tags is the same result . Same for section and footer.
Evgeniia Mas4,452 Points
From the point of view how your Webpage looks like, yes, you won't notice the difference of using footer or div tags, but it is very important for search machines when your page is in Internet. Semantic site with such parts used according to the rules looks "better" for them and such one will be higher in search than others. It is good way to do everything right from very beginning if you think about your page's future. And also don't you think it is more clear when you work on your code and maintain it in future (you or any other developer and may be when you come back after a very-very long time) to understand what part is footer or header)) and absolutely different situation if you have not that ones, but a huge amount of similar divs. So it is in very short for SEO friendly semantic sites and nice structure for your HTML. And you mustn't insert header tags and so on if you have no such content on your page. Rules and real project's features have to be balanced together as I think.
They are semantic elements. As you pointed out, they doesn't necessarily add any functionality, but are meant to make the code more readable for humans. Check out this page, of you want to read about it: