Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A supremely semantic way would be a model used on dukevideo.com.</p> <pre><code>&lt;ol&gt; &lt;li&gt; &lt;span id="lia"&gt; &lt;span class="productImage"&gt; &lt;a href="/Bikes/DVD/American-Chopper/American-Chopper-Series-1.aspx" title="American Chopper Complete Series 1"&gt; &lt;img src="/images/imageCache/bddc1cee608a8fb5927d6521ff1f0eb0.jpg" alt="American Chopper Complete Series 1" /&gt; &lt;/a&gt; &lt;/span&gt; &lt;span class="price"&gt; &lt;dl class="prices"&gt; &lt;dt class="hidden strikethru"&gt;Price:&lt;/dt&gt; &lt;dd class="price red"&gt;£29.36&lt;/dd&gt; &lt;dt class="hidden"&gt;Our Price:&lt;/dt&gt; &lt;dd class="price"&gt;£25.36&lt;/dd&gt; &lt;/dl&gt; &lt;/span&gt; &lt;span class="title"&gt; &lt;a href="/Bikes/DVD/American-Chopper/American-Chopper-Series-1.aspx" title="American Chopper Complete Series 1"&gt;American Chopper Complete Series 1 &lt;/a&gt; &lt;/span&gt; &lt;/span&gt; &lt;span id="lib"&gt; &lt;input type="image" class="buyLink" src="/images/buy.png" alt="Add to Basket" id="AC1" name="buyProduct_AC1" value="buyProductAC1" /&gt; &lt;/span&gt; &lt;/li&gt; </code></pre> <p></p> <p>(On the real site the markup has been remade - and invalidated. My successor isu sing DIV inside LIs instead of SPANs)</p> <p>This semantic markup is quite heavy, but is super semantic. A search engine or screen reader would work well on it. It allowed us to differentiate parts of the product spec in a list form.</p> <p>Hopefully the classes give an indication what the CSS is doing. eg.: *.hidden - hides content from screen but not from screen readers, search engines *.red - makes text red *.strikethru - strikes-thru text, to give an illustration of slashed pricing *.title - bolder face</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload