Home | Previous | Next Introduction to the Web And HTML

Introduction to HTML

Attributes

Some elements can take attributes - these are extra parameters that specify propertes of the element. For example, a heading can take an ALIGN attribute to specify heading alignment. For example, here is a heading with left, center and right alignments.

<H2 ALIGN="left" >This is
the heading </H2>

This is the heading

<H2 ALIGN="center" >This is
the heading </H2>

This is the heading

<H2 AligN="right" >This is
the heading </H2>

This is the heading

Attribute Values can be Case-Sensitive

Attribute names, like element names, are case insensitive. However, attribute values are often case sensitive. For example, to indicate a filename, you need to keep upper and lower case distinct, as many computers (Macintosh, Unix, Win95) distinguish between filenames like "File1.html", "FILE1.html", "file1.html" and "FiLe1.html". So -- make sure you type thinkgs with the correct case, and also make sure you surround such strings with double quotes.


Home | Previous | Next Introduction to the Web And HTML