title: Is it necessary to wrap navigation (ul tag) in div or nav tag?
body: <p>I’ve seen some people wrap their navigation (<code>&lt;ul&gt;</code> tag) inside a <code>&lt;div&gt;</code>, and the <code>&lt;div&gt;</code> just has margin/padding CSS properties applied to it.</p>
  
  <p>We can just style the navigation without a <code>&lt;div&gt;</code> and put the margin and padding on the <code>&lt;ul&gt;</code> tag. So it is <em>necessary</em> to put the <code>&lt;ul&gt;</code> tag inside the <code>&lt;div&gt;</code>, or is it just personal preference/favor?</p>
  
  <p>And for HTML5 which has been implemented in some browsers, is it necessary to put the <code>&lt;ul</code>> tag used for navigation in a <code>&lt;nav&gt;</code> tag?</p>
  
  <p>Like e.g. the <a href="http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/images/smashing-html5/files/block-level-links.html" rel="nofollow noreferrer">Smashing HTML5 demo page</a>.</p>