Header, Footer and a Div Called Main
Sketching With HTML5 And CSS3

Before getting into a specific sketching example, there’s one last another thing I want to do in my template: add the <header> and <footer> elements.
Typically, for web application sketches, the <header> is where your branding goes. (And while you might be saying “Yeah, yeah, of course.” it’s important to block out a place for the application’s brand, especially if your application will be white labeled. If that’s the case, you should include a lot flexibility in your design, to anticipate a broad variety of branding styles. Chances are small that your customer’s brands are similar and will take up a similar space in your layout. Or you could do a quick survey of your customer’s, and potential customer’s, brands. What do you think that their branding standards manual will allow? )
The header could also include application navigation, utility navigation, log in status, and a log out control. All of these application controls will have a relationship with the brand. More reasons to think about how that is going to work.
At the other end, in the footer, you might include any copyright and trademark information for your company, repeat your application navigation, and maybe, just maybe, may take some of that meta information about your sketch that you put in the comments, and include it in the View not just the Source, like a blueprint has information about itself.
Lots of helpful information about the header and the footer element is out there. Now about that <div>…
For a quick sketch of a web application interface, it’s been my experience that you want to be able to grab everything that’s not in the header and footer, and work with it as a single unit. While, by process of elimination, you can identify everything that is in the main content area (i.e. anything not in the header or footer), managing that stuff as individual elements is best left to production implementations, where you have time to plan it out and comment it in. Want to work with the main page content area adding a margin, or padding, or border? Wrap it in a div, and go.
We know that we can still use the <div> tag. Okay?
And why, exactly, is the <h1> and the <p> not in the header? Because, again, this is the habit I’ve gotten into from previous web app work. In another project, it might make a lot of sense to keep the page title and instruction in the header. But web applications - where you are asking the user to move page to page to complete their task- the page title and introduction are critical parts of the user answering the question, “Where am I?”. Don’t hide it in the header.
Just to make the point more generally, if you’re looking for hard-and-fast, right-and-wrong rules for using HTML5 elements, this series isn’t the one to be reading. Like a sketch, these ideas are loose and meant to be adopted and rejected as needed. Having a <div> wrapping the main content area of the page has let me work faster, especially when I start to work on the look and feel of the sketch via the CSS.
Which is coming up next (when we get to calling the <div> “main”).







