HTML Attributes

Attributes provide additional information about HTML elements. HTML elements can have their own attributes. The attributes are defined in pairs of name and its value and to be placed in the start tag of the element.
The font color of the web page content can be set by using the <font> tag with the color attribute:

Syntax
<html>
<head>
<title>The page title</title>
</head>

<body>
<!—the font element with the color attribute -->
    <font color=’#fff000’> Text Color</font>
</body>
</html>

*Note
-All attributes should be written in lowercase although it is not required to do that.
-The value of the attribute can be place in double quotes or single quotes.

HTML Element Reference

Tag Attribute
<body> background="use to background image"
bgcolor="background color"
text="text color"
link="link color"
vlink="vlink color"
<div>style="property:value;"
class="name of class"
<span>style="property:value;"
class="name of class"
<br>clear="left/right/all"
<p>align="left/right/center/justify"
<h1-h6>align="left/right/center/justify"
<font>face="name, name"
size="value"
color="color"
<hr>size="value"
width="value in percent"
<ul>type="disc/circle/square"
<ol>type="I/A/1/a/i"
start="value to start counting at"
<li>type="all ul and ol choices"
<area>shape="rectangle/circle/polygon/point"
coords="x1,y1,x2,y2"
href="imagename"
<a>href="name of file to be opened"
target="the targeted window"
<img>src="path of image"
align="left/right"
width="number in pixel or percent"
height="number in pixel or percent"
alt="image description "
<table>border="number"
width="number in pixel or percent"
heigh="value in pixel or percent"
cellspacing="number"
cellpadding="number"
bgcolor="color name or rgb(0-255)(0-255)(0-255) or #000000 - #FFFFFF"
background="path of image"
<tr>align="left/center/right"
valign="top/middle/bottom"
bgcolor="color name or rgb(0-255)(0-255)(0-255) or #000000 - #FFFFFF"
<tr>align="left/center/right"
valign="top/middle/bottom"
bgcolor="color name or rgb(0-255)(0-255)(0-255) or #000000 - #FFFFFF"





align="left/center/right"
valign="top/middle/bottom"
colspan="value"
rowspan="value"
bgcolor="color"