HTML-Lesson 4-Attributes

Attributes are the pieces of code which describe the content between the tags. An attribute can change the color, size, font or even the line spacing. Attributes are written inside the tag; for instance:

<p style=
"padding:25px;border:10px solid red;">
this text is in a box</p>

Here are some of the basic attributes that you can use:

<p bgcolor="red">red p text</p>
<p color="red">red p text</p>
<p font size="6">font size 6 text</p>
<p border="5px solid black">
p text with border</p>
<p padding="10px">p with padding</p>

These are just some of the attributes you can use. They are used best inside the font tag. For best results experement with them, mixing them up an changing all the values. For a full ist of similar values go to w3schools.

Lesson 3-tags

Lesson 5-links