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 How to Make a Website Creating HTML Content Include External CSS

Adham Hammoud
Adham Hammoud
738 Points

Why Mr.Nick added a section tag to the portfolio un-ordered list but he didn't for the footer ?

Why mr nick didn't add <section> inside the <body> to the footer like he did at the <ul> of the portfolio ??

3 Answers

The reason he used a section tag with the ul (or un-ordered list) section of the webpage and not with the footer section is because he wanted to add styles, or CSS, to only that "section" of the webpage, without changing or affecting any of the other parts of the page. If this answer doesn't make sense, send me a message and I can try to explain a little further.

Adham Hammoud
Adham Hammoud
738 Points

so could he use ID or Classes instead of that ?

Thanks

Yes, he could. And upon further reading, it turns out that when using the section tag it should be like putting a chapter in a book. It should have an h1-h6 tag that would act as a title, it should only contain related information to that title, and shouldn't necessarily be used for styling (even though in normalize.css Mr. Nick used it as a styling tag). It can (apparently) be used for styling, but it has other purposes; like helping people who need a webpage reader. I found an article that can go in to a full explanation of the tag, and hopefully it will help you better understand!

article: http://www.paciellogroup.com/blog/2013/10/using-html5-section-element/

I hope this helps, and feel free to ask if you have any more questions!

Adham Hammoud
Adham Hammoud
738 Points

Thank you very much