Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.


HTML5: How to Structure Your Content within HTML5

Structuring content with HTML5 provides you with in-depth training on Web. Taught by James Williamso… Show More

CSS: Page Layouts

with James Williamson

Video: HTML5: How to Structure Your Content within HTML5

Structuring content with HTML5 provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Page Layouts
Expand all | Collapse all
  1. 4m 20s
    1. Welcome
    2. How to use the exercise files
      3m 26s
  2. 1h 39m
    1. Box model review
      8m 47s
    2. Calculating element dimensions
      11m 11s
    3. Understanding margin collapse
      7m 59s
    4. Calculating em values
      7m 41s
    5. Calculating percentage values
      7m 51s
    6. Normal document flow
      13m 3s
    7. Controlling element display
      8m 53s
    8. Using CSS Resets
      7m 11s
    9. Fixed, fluid, and responsive layouts
      9m 9s
    10. CSS debugging tools
      6m 46s
    11. Using the Firebug Inspector and the WebKit Web Inspector
      11m 5s
  3. 53m 16s
    1. Page design workflow
      3m 6s
    2. Page design tools
      4m 56s
    3. Determining page structure
      7m 18s
    4. Creating image assets
      8m 58s
    5. Creating initial page structure
      7m 4s
    6. Adding meaning with classes and IDs
      5m 23s
    7. Structuring content with HTML5
      6m 6s
    8. Building internal structure
      10m 25s
  4. 1h 36m
    1. Floating elements
      7m 50s
    2. Clearing floats
      7m 28s
    3. Containing floats
      7m 50s
    4. Clearfix technique
      10m 38s
    5. Floating inline elements
      14m 34s
    6. Two-column floated layouts
      8m 17s
    7. Three-column floated layouts
      11m 30s
    8. Column height considerations
      7m 3s
    9. Creating equal-height columns
      10m 42s
    10. Floats: Lab
      5m 25s
    11. Floats: Solution
      5m 22s
  5. 51m 42s
    1. Relative positioning
      7m 59s
    2. Absolute positioning
      8m 59s
    3. Fixed positioning
      4m 23s
    4. Controlling stacking order
      8m 31s
    5. Clipping content
      8m 21s
    6. Controlling content overflow
      5m 38s
    7. Positioning elements: Lab
      3m 59s
    8. Positioning elements: Solution
      3m 52s
  6. 48m 46s
    1. Design considerations for fixed layouts
      3m 28s
    2. Establishing the layout grid
      7m 57s
    3. Defining column spacing
      9m 30s
    4. Applying the grid through CSS
      8m 56s
    5. Creating grid-based assets
      8m 26s
    6. Grid design resources
      6m 22s
    7. Building fixed layouts: Lab
      4m 7s
  7. 44m 26s
    1. Designing for flexible layouts
      2m 30s
    2. Calculating percentage values
      8m 36s
    3. Setting flexible width values
      6m 6s
    4. Making images flexible
      8m 10s
    5. Setting minimum and maximum widths
      7m 24s
    6. Building flexible layouts: Lab
      4m 53s
    7. Building flexible layouts: Solution
      6m 47s
  8. 49m 36s
    1. Responsive layout overview
      3m 49s
    2. Using media queries
      7m 16s
    3. Organizing styles
      8m 39s
    4. Making content responsive
      8m 33s
    5. Mobile design considerations
      7m 32s
    6. Building responsive layouts: Lab
      4m 23s
    7. Building responsive layouts: Solution
      9m 24s
  9. 1h 22m
    1. Creating multi-column text
      6m 36s
    2. Using borders to enhance design
      13m 59s
    3. Rounding corners
      6m 56s
    4. Adding drop shadows
      10m 35s
    5. Working with opacity
      6m 8s
    6. Utilizing the background property
      15m 5s
    7. Working with CSS sprites
      7m 58s
    8. Enhancing page design: Lab
      6m 22s
    9. Enhancing page design: Solution
      8m 38s
  10. 6m 25s
    1. Additional resources
      6m 25s

please wait ...
Structuring content with HTML5
Video duration: 6m 6s 8h 57m Beginner


Structuring content with HTML5 provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Page Layouts


Structuring content with HTML5

In our last movie we extended the meaning of our content through using class and id attributes. Prior to HTML5, that was almost all we had in the way of adding semantic value to our code. However, HTML5 introduces a whole new set of elements that help us write more specific code, and we're going to check that out by updating our homepage to be HTML5. Now, to do that, I have the index.htm file open. It's actually found in the 02_07, but it's just continuing our last exercise, so if you still have that file open, you can just go ahead and modify that one as well.

That's not a problem. Now, a little bit about HTML5 before we start. I know a lot of people are saying, okay, is HTML5 ready? Can we go ahead and use this as of this recording? I am recording this early in 2012. The answer is yes, we certainly can. We most certainly can use HTML5, especially the semantic elements. Maybe some of the more complicated API stuff, like canvas and things like that, you might want to wait until it matures a little bit more within the browsers. But the structural elements, absolutely, because there's an easy way to support the structural elements in older browsers. And as we start working in some of the labs, I will discuss that.

But for this movie, just focus on the fact that the HTML5 elements that we're going to be using help us organize and add meaning to our code. Okay. So the first thing I am going to do, I am just going to go through each one of these elements, and I am going to talk about whether or not an HTML5 element would be better choice for this. And the first element, when I look at this, it's pageHeader. It says, "Header content goes here," and we do have a header element in HTML5, so I am going to change this from a div tag to a header--and I have to remember to do that for both the opening and the closing tag. Now, we also are faced with the choice of should we remove the id and class attribute, because this is descriptive? It says, hey, this is header content.

And in some cases the answer to that is going to be, yes, and in some cases it is going to be no. In this case, the answer is going to be no, because elements may have headers. So, for example, you might have an article or a section that also has a header. So in that sense this might not be the only header on the page, and so because of that, I do still want to identify this as being the page's header, so I will keep the id for this particular element. I will do the same thing for nav. We do have a navigational element, n-a-v, so Nav. And I have to remember to change both the opening and the closing tag and, again, I'm going to leave the id in there as well.

Now, the two elements that we've used so far, header and nav, they're very descriptive in terms of what type of content that is. This is the header of the container that I am inside of. Navigation says this is a navigational aid, some type of menu, some type of construct like that. But we also have some more general-purpose content tags that we can use. So, for example, the content region right here that's sort of surrounding all three of these elements, I am going to change that from being a div tag to being a section. Now, a section of content basically says that this is grouped content, it all belongs together, but it's not something that I want to stand by itself, not freestanding.

Think about it this way: Would you syndicate this entire section? In this case, no, I would not. Now, I'm looking at my banner and I'm thinking, are there any of the HTML5 structural elements that can help me out here? And the answer to that is no. Sometimes div is exactly the right choice. In this case, I just need a generic grouping of content to say, hey, this is a banner. It doesn't need to be any specific section. It doesn't need to be an article, that sort of thing. But that's the other thing that I need to point out about these HTML5 structural elements is that if you look at the page as a table of contents, as maybe an outline that you could create, each of those particular tags creates a node within that outline, or an item in the table of contents.

The banner, I don't really-- it's not important enough for that. I don't want it to do that. So in this case I'm using sort of a generic div tag for that. Now, for the home article, Article content goes here, that sort of gives away the tag I want to use for that. I am just going to use article. Now, the article element, what that does is it basically surrounds a grouping of content that can stand on its own, that if it was read all by itself or syndicated by itself or exported out by itself would make sense and would just live on its own outside of this page. In this case, this article certainly would do that, so I am going to choose article.

Now, I am going to make another change here now. I am going to keep that id, but the element below it, the sidebar, we have a brand-new element that isn't necessarily called sidebar; it's called an aside. And I am going to replace, not only the div tag itself, but the id as well with just a generic aside tag. All right! So what is an aside? Well, an aside tag is related content. It's content that relates to siblings within its container. So in this case, because this article and the aside are inside this section, it's basically saying that this content and the aside relates to this article content without actually being a part of the article.

Now, we could, if we wanted to, give it an id. It wouldn't hurt to say sidebar or related content or something like that, but in this case I think the aside works all by itself without having to necessarily need an identifier for it. And as you can tell, a lot of these are judgment calls. Now, the next thing I am going to do is I am going to go down to my very last div tag and I am going to replace it with a footer. Once again, because the different articles and sections can have footers, so we might end up with, depending upon how complex our page gets, we might end up with multiple footers, so I am going to keep that id on there as well, all right. I am going to go ahead and save that page.

So now we have our basic page structure, and it's a lot richer in terms of its organization and semantic content. Now, I know one movie really isn't enough to really appreciate what HTML5 can do for your site, so if you're intrigued by this, I recommend going out and reading the HTML5 specification, which you can find on Or you can go to the WHATWG homepage which is, WHATWG, if you want to read through the specification. And if you're interested in looking at a few more titles of this in the Online Training Library, I have an HTML5 First Look title and an HTML5 Structure and Semantics course that might be worth checking out as well. All right! So in our next movie, we're going to finish up by taking a closer look at how page structure and layout relate to each other as we explore building the internal structure of our page.

There are currently no FAQs about CSS: Page Layouts.






Don't show this message again
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

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.

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.

Join now Already a member? Log in

* Estimated file size

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


You have completed CSS: Page Layouts.

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


Upgrade to View Courses Offline


With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

Become a Member and Create Custom Playlists

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

Get started

Already a member?

Log in

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:

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.

You started this assessment previously and didn’t complete it.

You can pick up where you left off, or start over.

Resume Start over

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about 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

Sign up and receive emails about and our online training library:

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

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.