Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74158

Is it semantically correct to nest identical classes?

$
0
0

As the question asks, is it semantically correct to do something like this?

<ul class="my-class">
  <li>
    <ul>
          <!-- Notice here the nested my-class-->
      <li class="my-class my-other-class">Something</li>
    </ul>
  </li>
  <li>Something else</li>
</ul>

Viewing all articles
Browse latest Browse all 74158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>