Tuesday, 9 September 2014

Tables in HTML




Lecture 4

HTML Advance Tags – 

Today we will learn HMTL Table tag.

HTML Table Tag: Table Tag allow user to arrange data-text, images, hyperlinks, forms and other tables. Table is defined with <table> tag. It is a paired tag.
Table is divided into rows with <tr> tag. Then rows are divided into cells or table data with <td> tag. Both <tr> and <td> are paired tags.
Example –
 


Different Attributes of Table Tag –
1.      Table with Border:
Example:

2.      Table with Cellpadding:
Example:



3.      Table with Cellspacing:
Example:


4.      Table with Cell Width:
Example:

5.      Table with colspan:
Example:


6.      Table with rowspan:
Example:

7.      Color in Table:
Example:


Note: In Next lecture, we will learn HTML Frames and their types.

No comments:

Post a Comment