HTML Code Tutorial

Tutor Ebook Download

ID Attribute

The ID attribute can be used with many HTML tags. It can be used with paragraph tags, division tags, table tags and form tags to name a few. Use it to create variations in similar code structures.

The attribute is placed in the tag as shown
Code:
<table ID="table1">
To assign style sheet settings to the table which carries the table1 ID, you would place the following code in the head section.

#table1 td { color :#FF0000;background-color :#FFFFFF}

Now if we had more than one table on the page only the text placed in the cells of table1 would be displayed in red text.

The ID attribute is also helpful when you want to remove the underline from certain hyperlinks on a page. You would use the same technique in the previous example so that only the underlines of hyperlinks were removed in table1. You could also use the division tag for performing this procedure.

Check out our Free Frames Template Kit or try our Free Frames Kit Demo



CGI Online
How to Create a Website -Tutorial
Main Website


This Free HTML Tutorial
is provided by Net Success 2000 Plus Inc.
PO Box 1508
Somerset, KY 42502
Last Modified: September 3, 2007

HTML Codes Tutor Ebook