Locked lesson.
About this lesson
Exercise files
Download this lesson’s related exercise files.
Advanced Elements and Attributes.docx60.3 KB Advanced Elements and Attributes - Solution.docx
59.8 KB
Quick reference
Advanced Elements and Attributes
HTML 5 has a bunch of new tags that help to make our HTML code more readable.
When to use
Anytime you want to make your code more readable, you can break it into section using new HTML 5 tags.
Instructions
There are a bunch of new tags in HTML 5 aimed at making code more readable and manageable. The most popular include:
<head>
<nav>
<article>
<section>
<footer>
Use a HTML 5 video tag to add native video to your web page:
<video width="320" height="240" controls>
<source src="intro.mp4" type="video/mp4">
Your browser doesn't support video
</video>
Hints & tips
- Use HTML 5 tags where they make sense to you (header, footer, navs, articles)
- Don't put too much thought into these tags
- The HTML 5 video tag is an easy way to add native video to your web page
- It's probably better to embed youtube code on your page than use the HTML 5 video tag
Lesson notes are only available for subscribers.