Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build a Simple Website Text Editors and HTML Images and Lists

Iris Avalon
Iris Avalon
14,477 Points

html elements

Is there a particular reason why we aren't using things like the nav tag? And I thought html5 character encoding meta tags just needed to be <meta charset="utf-8"> ? I suppose it works fine either way, just curious about why we would use one over the other.

Also, I don't understand why we are using a class of last on the final list item. We could just target that with a :last-child or :last-of-type selector, couldn't we?

Iris Avalon
Iris Avalon
14,477 Points

I didn't realize the little meta tag I threw in got removed, it was just the meta charset = "utf-8" instead of the full http-equiv one.

1 Answer

It depends which video's your watching I think a few of the older ones were created before HTML5 was implemented on a wider scale, plus not every site will have been changed over to HTML5 so it's good to know how things used to be. Your right though to be using the more semantic tags like Nav, section, article etc. The pseudo selectors you mentioned are covered in some of the CSS stuff maybe the deep dive so you will use those alot.