Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Images, Text and Links Captioning Images

What is the purpose of all the elements tag?

There are so many element tags here: article, figure, section...

Is there a reason why I should use these tag as oppose to using div with a custom class and self defined CSS?

Does it help in search engine by using these native elements?

1 Answer

They are called "semantic" elements and are VERY important for the browser (and search engines) to better understand your code. Visually for the viewer they are not important, but you better use them if you want to have a seach engine optimized code....

A very good reference to read futher is this:

https://www.w3schools.com/html/html5_semantic_elements.asp