For instance, they'll put a <ul> inside a <div id="menu">, just so that they can style the <ul>, instead of just giving the <ul> itself an id.

I never really noticed this, but I tend to code this way too. Here's a small sample i've been playing with:

<div id="wrapper">
        <div id="header">
                <h1 class="hide">Image replaced title here</h1>
        </div>

        <div id="nav">
                <ul>
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Products</a></li>
                        <li><a href="#">Services</a></li>
                        <li><a href="#">Contact Us</a></li>
                </ul>
        </div>
</div>


By what you're saying, I could simply have my outer wrapper for the margins/bg stuff, and then the <h1> id'ed to replicate the whole header, and the ul id'ed to the nav list.

This makes sense.

<div id="wrapper">
        <h1 id="header">Image replaced title here</h1>
        <ul id="nav">
                <li><a href="#">Home</a></li>
                <li><a href="#">Products</a></li>
                <li><a href="#">Services</a></li>
                <li><a href="#">Contact Us</a></li>   
        </ul>
</div>

is much less cluttered, and can still perform the same structure for display.


Good topic.  I'm going to re-think the whole approach on this project.

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to