Start learning with our library of video tutorials taught by experts. Get started

HTML5: Structure, Syntax, and Semantics

Checking document outlines


From:

HTML5: Structure, Syntax, and Semantics

with James Williamson

Video: Checking document outlines

When you're developing HTML5 documents locally, it's a good idea to continually check the outline of the document as you're writing it. That way you can verify that the structure matches what you intended and that the information is being presented in the right way. Now, in our earlier chapter on HTML5 document structure, I introduced you to this site, the HTML5 Outliner. We had a lot of fun here, didn't we? If you wish. This site is really all you ever need to check your documents online. Notice that you can upload a local file to it, you can enter a valid URL, or you could do what we did, which is just basically copy and paste the code here or enter the code directly here and then outline it that way.
Expand all | Collapse all
  1. 2m 20s
    1. Welcome
      48s
    2. Using the exercise files
      1m 32s
  2. 19m 7s
    1. A brief overview of HTML5
      3m 57s
    2. What's in the HTML5 specification?
      8m 17s
    3. Why do we need new structural elements?
      6m 53s
  3. 50m 33s
    1. Defining HTML5 documents
      5m 5s
    2. HTML5 syntax
      9m 14s
    3. The header element
      5m 22s
    4. The nav element
      4m 55s
    5. The section element
      4m 51s
    6. The article element
      4m 48s
    7. The aside element
      4m 13s
    8. The footer element
      4m 17s
    9. Content model overview
      7m 48s
  4. 35m 28s
    1. Understanding the outline algorithm
      3m 17s
    2. Creating document sections
      8m 25s
    3. Using headings properly
      9m 1s
    4. Using hgroup to override sectioning
      4m 17s
    5. Properly nesting structure
      7m 17s
    6. Sectioning roots
      3m 11s
  5. 58m 30s
    1. Organizing content
      4m 41s
    2. Planning document structure
      5m 47s
    3. Choosing the right structural element
      4m 43s
    4. Checking document outlines
      5m 27s
    5. Coding initial page structure
      5m 28s
    6. Using class and ID attributes
      5m 31s
    7. Structuring headers
      13m 13s
    8. Building navigation
      7m 1s
    9. Structuring footers
      6m 39s
  6. 1h 27m
    1. Working with figure and figcaption
      7m 12s
    2. Grouping content with asides
      3m 46s
    3. Using divs in HTML5
      5m 0s
    4. Working with lists in HTML5
      7m 10s
    5. The return of bold and italic
      5m 52s
    6. Citing works semantically
      6m 32s
    7. Using the address element
      5m 24s
    8. Using the small element
      4m 24s
    9. Using the mark element
      5m 16s
    10. Working with date and time
      11m 55s
    11. Creating block-level links
      8m 53s
    12. Understanding link relationships
      9m 28s
    13. Defining link relationships
      6m 23s
  7. 17m 22s
    1. Current browser support
      7m 38s
    2. Ensuring block-level display
      4m 3s
    3. Adding support for elements in older browsers
      5m 41s
  8. 3m 46s
    1. Additional Resources
      3m 46s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
HTML5: Structure, Syntax, and Semantics
4h 34m Beginner May 31, 2011

Viewers: in countries Watching now:

Gain a deeper understanding of HTML5 and learn how to create richer, more meaningful web pages with structural tags and descriptive attributes. In this course, author James Williamson presents an overview of HTML5 and its development, defines the new tags and attributes, and discusses how browsers parse and display HTML5 content. The course also includes step-by-step instructions for constructing an HTML5 document with a header and footer, navigation, content groups, and formatting.

Topics include:
  • Defining basic elements
  • Exploring the content model
  • Creating document sections
  • Using hgroup to override sectioning
  • Using the proper nesting structure
  • Choosing the right structural element
  • Using class and ID attributes
  • Building navigation
  • Grouping content with asides
  • Using divs in HTML5
  • Creating block level links
  • Defining link relationships
  • Understanding current browser support
  • Adding support for elements in older browsers
Subjects:
Developer Web Web Design Web Foundations Programming Languages Web Development
Software:
HTML
Author:
James Williamson

Checking document outlines

When you're developing HTML5 documents locally, it's a good idea to continually check the outline of the document as you're writing it. That way you can verify that the structure matches what you intended and that the information is being presented in the right way. Now, in our earlier chapter on HTML5 document structure, I introduced you to this site, the HTML5 Outliner. We had a lot of fun here, didn't we? If you wish. This site is really all you ever need to check your documents online. Notice that you can upload a local file to it, you can enter a valid URL, or you could do what we did, which is just basically copy and paste the code here or enter the code directly here and then outline it that way.

So feel free to use this. It's a great tool; a lot of people use it for testing locally as well. But if you're looking for a browser- specific way to check your documents online, I want to give you a couple of options, including the ones that I'm going to be using to check the documents that we're going to be creating in just a moment. First, I want to introduce you to Chrome's HTML5 Outliner extension. So I'm in Chrome now, not Firefox, and I've browsed to the Chrome web store. And really, in Chrome, all you have to do is look for extensions and just browse for HTML5 Outliner. It's a free extension.

It's very easy to install. I'm going to show you the exact process. You just go to this page, you click Install, and you are done. So now, basically, it's telling me that this icon right here is going to be visible whenever we're on a page that uses HTML5 and the document outline can be read. So if I visit such a page--and I'm going to go right here to the HTML5 Edition for Web Authors, and just reload that page--now you'll notice that because I have the extension installed, I can go ahead and click. I can get the outline for this particular document. And here's another great thing about this: Not only that we could check the document structure, but look at the functionality that this gives me.

I can now say, okay, I want to look at the full table of contents, and by clicking that, I go right down to the full table of contents. That's really cool! Now the only problem I have had with the Google Chrome extension, this extension here, is that when I'm testing the page locally, meaning that this is a local page that I've opened in my browser, the icon doesn't show up. It only seems to work when you're dealing with pages that are actually being served from a web server. For when you're testing on Opera, Opera has an extension that's almost identical to the Google Chrome extension.

So here I've gone to Opera's add-ons and extension page, I search for the HTML5 outliner extension, and again, all I have to do is just install it. Just go through the install process, which is incredibly quick, and as soon as you do that, again, I'll go to the same document. I'll just go ahead and reload that document. And notice that in Opera the icon is located over here in the upper right-hand corner, HTML5 outliner, and when I click, I get a similar outline with similar functionality. So just looking at this, I think you can start to see some of the benefits of having that HTML5 outline done correctly.

It gives people a really nice and easy way to navigate around your page. Currently, Firefox and Internet Explorer don't have an extension the way that Google Chrome and Opera have. However, if you go to code.google. com/p/h5o--that's an o, not a zero-- it's going to take you to the HTML5 outliner page, or h5o as it's referred to. This is the actual code that's used to create those extensions, and it's available in a couple of different ways, and these are ways that you can get to work in other browsers, such as Firefox.

For example, there is the Chrome extension, which is actually the same Chrome extension you can get from the Chrome Store, the Bookmarklet, which we're going to come back to in just a moment. There is a Firebug extension. Notice that says early experimental state. So it's not quite stable yet. But if you want to use this with Firebug, you can. There's actually a minified JavaScript version of this that you can go ahead and download, and if you're really good at JavaScript, you can go ahead and start building your own HTML5 outline extensions for whatever browser you'd want. The Bookmarklet is what I wanted to focus on. Notice that it has limited functionality for Internet Explorer.

So if you intend to use this in IE, make sure that you read the limitations and some of the problems with it. Now I'm going to click on the Bookmarklet, and when I do that, it's going to take me to a download page where I can go ahead and download the Opera extension or the Bookmarklet for IE. In this case, I want to go ahead and grab just the regular HTML. So, when you click on this, it takes you to a download page, and you can just then download the HTML file, and you can place it anywhere that you'd like on your hard drive. Now, as soon as you do that, you can open this right back up in your browser.

So here's the HTML page opened up in Firefox. I'm going to go ahead and turn my Bookmarks toolbar on, and then I'm just going to take this link right here, as instructed, drag it to my Bookmarks toolbar. There it is right there. So now, essentially I've installed the same extension in Firefox. So if I go to my HTML5 Edition for Web Authors and click on this, notice I get the exact same functionality that I have in Chrome and Opera, which is really cool. And unlike Chrome, I don't have any problems previewing local files in Firefox.

So if you're just testing the outline and you're not looking for rendering from one browser to another, you can open up your files locally inside Opera or Firefox with this extension loaded and really see what's going on. Chrome doesn't allow you to preview the local files, and as I mentioned before, there are some issues with the HTML5 outliner extension for Internet Explorer, so that has limited functionality, and probably limited value in terms of testing that locally. Okay, cool! Now that we can check our document outline as we author, we're ready to go ahead and begin structuring our HTML5 page, and we're going to do that starting in our next movie.

There are currently no FAQs about HTML5: Structure, Syntax, and Semantics.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed HTML5: Structure, Syntax, and Semantics.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked