Search code examples
htmlcsssemantic-markup

Is there a semantic equivalent of th for ul?


<table>
<tr><th>Tags</th></tr>
<tr><td>c#</td></tr>
<tr><td>java</td></tr>
<tr><td>php</td></tr>
</table>

Is there a semantically equivalent way to express the th when using a ul?

<ul>
<li><h1>Tags</h1></li> <!-- this isn't really a list item -->
<li>c#</li>
<li>java</li>
<li>php</li>
</ul>

Solution

  • Well, there's always:

    <h1>Tags</h1>
    <ul>
        <li>c#</li>
        <li>java</li>
        <li>php</li>
    </ul>