Couldn't you just put a heading tag into your ul? Then style it from there with a class or something.
First off, H1 is meant to be the title of the page. If you want to add a heading to a list, do this instead, then style the element and the menu to taste: <div id="menu"> <b>Site Navigation</b> <ul> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> </ul> </div> Code (markup):
Uhm Dan, if it's a heading, it should be a header tag, not bold tags. As such a H2 or lower would be appropriate. Though yes, a H1 is indeed inappropriate.
I don't know what the rest of his code looks like so I went with the B element to identify the block as a menu rather than waste a heading on it when I don't know what the semantic structure of his site even looks like. Though to be perfectly honest, this is one of those times when I wish IE supported generated content. So for the time being, consider it a placeholder.
How about to get rid of the DIV? <h or b>Site Navigation</h or b> <ul id="menu"> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> <li><a href="#">Menu Link</a></li> </ul> Code (markup):
That's even better, as you don't need the div... but we didn't know what you were using it for. Stu Nichols uses a div around his menus and I still haven't gotten them apart yet.
Because the content is semantically related, and there's always the possibility that the menu title and menu may have to be floated. In this case, using a DIV to contain the pair just makes the most sense and uses the least amount of code necessary without sacrificing the design. If there wasn't a need for the title, and/or if Internet Explorer 6/7 supported generated content (apparently IE 8 will if you "opt in" for IE 8 standards mode - since the Acid2 test relies on generated content among other things) then the DIV wouldn't even be necessary. But until then this is the best we've got.
Could you elaborate what you mean by generated content? We generate content with forms and this displays so far okay... I'm guessing then that you mean something else... what?