TTP | HTML | LE 09 - How to create table in html: header,cellspacing,cellpading,rowspan,colspan

Опубликовано: 03 Октябрь 2026
на канале: The Techno Pedia
68
1

This lesson contains how to create table in html by using Table tag and it's attributes.
By completing this lesson, you should be able to:
1.) Insert a table.
2.) Explain a table’s attributes.
3.) Edit a table.
4.) Add a table header.
The TABLE element has four sub-elements:
Table Row TR
Table Header TH
Table Data TD
Table Caption CAPTION.
The table row elements usually contain table header elements or table data elements.
Attributes of Table tag

1.) BGColor: sets the background colors in a table.
2.) Width: sets the width of a table, value must be in pixels or
percentage
3.) Border: sets the border of the table, value must be in pixels. By
default it is 5px.
4.) CellSpacing: Cell Spacing represents the space between cells
and is specified in pixels.
5.) CellPadding: Cell Padding is the space between the cell border
and the cell contents and is specified in pixels.
6.) Align: tables can have left, right, or center alignment.

Table data and Table header Attributes:

1.) Colspan: Specifies how many cell columns of the table this cell
should span.
2.) Rowspan: Specifies how many cell rows of the table this cell
should span.
3.) Align: cell data can have left, right, or center alignment.
4.) Valign: cell data can have top, middle, or bottom alignment.
5.) Width: you can specify the width as an absolute number of
pixels or a percentage of the document width.
6.) Height: You can specify the height as an absolute number of
pixels or a percentage of the document height.

for latest updates, follow the facebook page.
link : https://www.facebook.c...