Title: Are nested div&#8217;s OK?
Last modified: August 18, 2016

---

# Are nested div’s OK?

 *  Resolved [amandawa](https://wordpress.org/support/users/amandawa/)
 * (@amandawa)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/are-nested-divs-ok/)
 * Is it allowable to have a div nested within another div?
    Eg. <div id=”sidebar”
   > <div id=”author”> </div> </div>
 * I’m working through trying to fix W3C validation errors and I don’t understand
   why it doesn’t like the “author” div.
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/are-nested-divs-ok/#post-595079)
 * It should be OK…I hope so… my site uses a lot of nested divs.
 * -tg
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/are-nested-divs-ok/#post-595081)
 * It is not aout nested divs.
    It is about inserting a div in ul – where it expects
   a li tag!
 * Clicking the “show source” and revalidate will make the error line numbers clickable
   links that take you to the exact location of the error.
 * Note. Most WP sidebars are built as _nested lists_ (it comes handy when you want
   to use the sidebar widgets) – so a div inserted somewhere into the list… breaks
   it. That’s why the validator “doesn’t like it”.
 *  Thread Starter [amandawa](https://wordpress.org/support/users/amandawa/)
 * (@amandawa)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/are-nested-divs-ok/#post-595109)
 * Thankyou Moshu – that makes sense.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Are nested div’s OK?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [amandawa](https://wordpress.org/support/users/amandawa/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/are-nested-divs-ok/#post-595109)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
