Some attributes can be used to format HTML but CSS does that job much better. Other attributes are used to add content or structure to pages.
Inside almost any HTML tag you can put attributes. Here are three:
<div class="code">
<p id="joke">
<a href="fred.php">
You don't need to understand what these mean but you should be able to see the structure (attribute equals value).
The attribute is a property which is being set and the value is what to set it to. One example here is the class attribute which has the value of "code". Values do not always need to be inside quotes but get into that habit now to avoid problems later.
Perhaps the simplest example of an attribute is the TITLE attribute. Paste this in as a new line at the end of your first HTML page:
<p title="This paragraph has extra information available">This is a paragraph you should hover your mouse over.</p>
Now reload the page in a browser (remember F5 or the refresh button) and hover your mouse over the new paragraph. You should see some extra text pop up. There are many more uses for attributes as you will see.



