Classes,Id's and Div's

If you want to organize your code, you should ues classes, id's and div'. You can wrap some of your code in a tag called a div. These div's can organize your code. Your div can also have a class attribute or an id attribute. In a class attribute, it can go on multiple div's. But on an id, you can only use it once. Here is an example:

            
<div class="paragraph" id="trips"></div>
            
        

Right now you probably won't use classes or id's much but later when we do CSS which basically styles everything, they will be super useful.

But you can also add classes and id's to other tags like headers or paragraphs Here is an example:

   
            
<h1 id="header">This is the header</h1>
            
        
   
            
<p class="paragraph" id="paragraph1">This is the first paragraph</p>