www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons Advanced HTML Tables Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
We can control the behavior of tables with the help of its attributes. In this lesson you will learn to use the attributes of the <table> tag.

The attributes of <table> tag:

We can change the appearance of a table by using its attributes.

cellspacing=" "
This attribute is used to add space around each cell. It takes a whole number as its value.

cellpadding=" "
This attribute adds space inside each cell. It takes a whole number as its value.

border=" "
This attribute specifies the size of the border line of a table. It takes a whole number as its vlaue.

width=""
By using the width attribute we can control the width of a table. It takes a value in pixels or the percentage of the total page width.

<table cellspacing="2" cellpadding="3" border="5" width="100%"> 
   <tr>
     <th>Name</th>
     <th>Age</th>
   </tr> 
   <tr>
     <td>Mr. A</td>
     <td>10 Years</td>
   </tr> 
   <tr>
     <td>Mr. B</td>
     <td>20 Years</td>
   </tr> 
   <tr>
     <td>Mr. Z</td>
     <td>60 Years</td>
   </tr> 
</table> 
This HTML will be displayed as:
Name Age
Mr. A 10 Years
Mr. B 20 Years
Mr. Z 60 Years

Next >>> Lesson No. 18: Advanced HTMLTables 2







Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.