POSH or not ?

After read­ing Plain Old Semantic HTML (POSH) on the micro­formats wiki, it left me won­der exactly what is a POSH site. I agree with the POSH and will adopt any prin­ciples I am not cur­rently using for the next ver­sion of this blog, I don’t know if it will make the grade as a POSH site.

The prob­lem is that while it will be based on the Sand­box theme, use semantic id and class names, without browsers CSS3 sup­port for mul­tiple back­grounds I will have to use six extraneous divs to get the design I want. The altern­at­ive is to use some javas­cript to get three columns of equal length and some fancy foot­work with borders

That is the ques­tion I am ask­ing you, does six extraneous divs make a plain ordin­ary semantic HTML web­site or not? Or should I go the javas­cript route

tagged

5 Responses to “POSH or not ?”

  1. Tantek Says:

    Nick, you ask:

    does six extraneous divs make a plain ordin­ary semantic HTML web­site or not?”

    An excel­lent ques­tion, and I think worthy of adding to the (not yet exist­ent) POSH FAQ.

    Please con­sider adding your ques­tion to:

    http://microformats.org/wiki/posh-issues#Issues

    Thanks!

    Tantek

    P.S. In my opin­ion (and I’ll write as much as on the issues/FAQ pages), extra DIVs or SPANs are semantic­ally neut­ral, that is, they neither add to nor take away from the semantics and thus are fine. It will be inter­est­ing to see what oth­ers’ opin­ions are as well.

  2. Ben Buchanan Says:

    Hmm. I think a few extra divs to get around browser short­com­ings is ok. It’s not what I would con­sider “div-itis” since oth­er­wise we’ve got harsh lan­guage to work with.

    A page wouldn’t be POSH if it had deprec­ated ele­ments, broken tags, scores of divs for no reason… As far as I can tell, the stand­ards com­munity already builds POSH sites; it’s more a case of rais­ing aware­ness amongst non-standardista developers.

  3. Gary Barber Says:

    Con­fes­sions time , eh. extra divs to make the design work… gee no one does that! ;)

    Given the nature of CSS based semantic lay­out, I could just say rework the design another way. As there is always another way to build the design you dream of.

    How­ever in real­ity time is often short and throw­ing in the odd non con­tent div is the solu­tion. How­ever it depends what’s in the Divs. It they are just divs with no con­tent, out­side of the con­tent — fine. But if they are divs within a con­tent block that have no real need to be there then maybe thats a problem.

    MInd you if you javas­cript inject the divs, you are still put­ting the divs in, just when the page is rendered. But they are still there (technically).

    Agree with Ben, POSH sounds like a good mar­ket­ing angle.

    By the way, robotre­play does slow things down a little.

  4. Raena Says:

    There’s a part of me that says hell yeah, six extraneous divs is prob­ably overkill.

    Then I think: What’s the dif­fer­ence between six nes­ted divs and a (gulp) LAYOUT TABLE with, say, three cells? Neither is semantic­ally proper. A div is sup­posed to be a logical divi­sion of a page. Nest­ing them to get a graphic effect is as mean­ing­less as using table cells.

    Then I say: OMG, MY WORLD, IT CRASHES DOWN.

    There are prob­ably some ways around it. For example, a fixed width design is ridicu­lously easy to get the appear­ance of equal height bars because you can fake it in with one back­ground image. A flex­ible one could prob­ably be done with a sim­ilar tech­nique as well if you put a back­ground image on the body ele­ment, placed with a per­cent­age, and another placed sim­il­arly against Sandbox’s wrap­per div. Maybe. Hmm..

  5. Raena Says:

    Well hell, you know that already.

    There needs to be a heap more Sand­box skins in the world, I think. Maybe a CSS Zen garden style project.

Google