div-itis

Like gingivitis, but far worse.



a.k.a. the meaningless bits

But still kind of necessary, sadly.


divisions

a.k.a. Document Sections



the tag


<div>



<div>


why use it?



<div>


how to use it?

example


<div>
   <h1>Section heading</h1>
   <p>Some text to help describe this section.</p>
   <ul>
      <li>This is important</li>
      <li>This is too</li>
      <li>So is this</li>
   </ul>
</div>

better example


<section>
   <h1>Section heading</h1>
   <p>Some text to help describe this section.</p>
   <ul>
      <li>This is important</li>
      <li>This is too</li>
      <li>So is this</li>
   </ul>
</section>


what did I just do?


to reiterate


spans

a.k.a.  Spans of text



The tag


<span>



<span>


why use it?



<span>


how to use it?

example


<p>I'm, like, <em>super</em> excited right now <span>#OMGLOLBBQ</span></p>

span {
   /* Crazy styles go here */
}

divs

By rmion

divs

  • 552