Create tables using HTML

Tables:

   A HTML table are created using <table> tag.
   A table row is created using <tr> tag.
   A table header is created using <th> tag.
   A table data is created using the <td> tag.


If we write this code, the page appears to be...


Cell padding and cell spacing attributes:

  There are two attributes called cell padding and cell spacing which you will use to         adjust the white space in your table cells.

Cell padding:

  Cell padding sets the space between the contents of the and its borders.
If you do not specify a padding, the table cells will be displayed without padding.


If we write this code, the page appears to be...






Cell spacing:

  The cell spacing attribute defines the width of the border.

If we write this code, the page appears to be...

Colspan attribute:


If we write this code, the page appears to be...

You will use colspan attribute if you want to merge two or more columns into a single column.

Rowspan attribute:

You will use rowspan attribute if you want to merge two or more rows.



If we write this code, the page appears to be...

Table height and width:

You can set a table width and height using width and height attributes. You can specify table height or width in terms of pixels or percentage.

If we write this code, the page appears to be...




Comments

Popular posts from this blog

Adding images

Creating lists

Adding comments in HTML