html - Using CSS how best to display name value pairs? -


should still using tables anyway?

the table code i'd replacing is:

<table>     <tr>         <td>name</td><td>value</td>     </tr>     ... </table> 

from i've been reading should have like

<label class="name">name</label><label class="value">value</value><br /> ... 

ideas , links online samples appreciated. i'm developer way out of design depth.

edit: need able both display data user , edit values in separate (but near identical) form.

i think definition lists pretty close semantically name/value pairs.

<dl>     <dt>name</dt>     <dd>value</dd> </dl> 

definition lists - misused or misunderstood?


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -