HTML and CSS Reference
In-Depth Information
Figure 3-6. Structure of a document with the <footer /> element
<header />
The <header /> element can be used to create a header within the document.
The <header /> tag can be used more than once within a document. It will
usually contain a logo and/or a group of header elements. The most common
use for a <header /> element would be to add a logo and navigation at the top
of a page. Listing 3-11 shows how to do this.
Although not required, you can wrap the <ul /> commonly used for navigation
with a <nav /> element. This makes it clear to consumers reading your code that
it is a navigation element.
Listing 3-11. Creating a Header Within an HTML5 Document
<img src="logo.png" alt="My Company's Logo" />
Search WWH ::

Custom Search