about 9 years ago
If we want to print data in the form of table in html we use TABLE tag. Table contain rows and columns.
Syntax
OUTPUT
For adding border in this table we use border attribute it will put a border in all the cells. If we do not want a border then we can use border="0".
eg:-
OUTPUT
Row 1, Column 1 | Row 1, Column 2 |
Row 2, Column 1 | Row 2, Column 2 |
TABLE HEADING
For giving table columns a heading we use th tag.
eg:-
OUTPUT
Name | ADDRESS |
---|---|
Suresh | Delhi |
Pankaj | Lucknow |
0 Comment(s)