Is it a bad practice to use divs for styling purposes?
Posted
by
caisah
on Stack Overflow
See other posts from Stack Overflow
or by caisah
Published on 2012-11-24T21:06:07Z
Indexed on
2012/11/26
17:04 UTC
Read the original article
Hit count: 128
I've seen lately a lot of discussions about this new concept called oocss and I was wondering if it is a bad practice to wrap your main tags in div
s only for styling/page layout purposes.
I'm asking this because I see some frameworks like Twitter Bootstrap use such a method.
What are the implications of such a markup from a semantic and accessibility point of view?
For example:
<div class="container">
<div class="row">
<div class="span4">
<nav class="nav">...</nav>
</div>
<div class="span8">
<a href="#" class="btn btn-large">...</a>
</div>
</div>
</div>
instead of
<div class="menu">
<nav class="nav">...</nav>
<a href="#" class="bttn">...</a>
</div>
© Stack Overflow or respective owner