Supported by :   My Law Forms Ltd. - Deed polls and Tenancy Agreements

XHTML help: basics – headings

When you first begin learning XHTML it feels a little overwhelming. If you happen to look at bad examples, such as Microsoft’s website, that feeling can get even worse. You typically see tables everywhere, font tags, inline styles, and hundreds of lines of this stuff. But it doesn’t have to be that way. HTML really comes down to a few basic elements that, when used properly, can take you a long way.

First things first: you’ll want titles and headings on your pages. Enter the h1-h6 tags. Always use the h1 tag for the title of your website. Then for each section that you title below it use the next heading in line. You don’t ever want to skip headings, jumping from an h2 to an h4 for example, because it could cause confusion on non-graphical or text only browsers.

<h1>My Site</h1>
<h2>This page is great<h2>
<p>There are plenty of reasons that this page is great. Here are a few:</p>
<p>This page has perfect headings.</p>
<p>This page has perfect markup</p>

This entry was posted on Monday, March 26th, 2007 at 1:30 pm and is filed under XHTML tips. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.