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 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.