How to add a table in HTML explain it's tags?
Answers
Answered by
0
The HTML <table> tag is used for defining a table in an HTML document. The <table> tag contains other tags that define the structure of the table.
Tables consist of the <table> element as well as other table-related elements. These other elements are nested inside the <table> tags to determine how the table is constructed.
Syntax
The <table> tag is written as <table></table> with the various table elements nested between the start and end tags.
Each <tr> element represents a row in the table. A row can have one or more <td> or <th> elements, which determine the columns in the table. Specifically, <td> represents table data and <th> represents a table header.
Like this:
<table> <tr> <th>Table Header 1</th> <th>Table Header 2</th> </tr> <tr> <td>Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> </tr></table>
Examples
Basic tag usage
The following table includes table rows (<tr>), table headers (<th>) and table data cells (<td>).
You can use the border attribute to determine whether the table should have a border or not (however, this may not be fully supported - see below under "Differences Between HTML 4 & HTML 5" for more info). Using border="1"specifies that a border should be presented, border="0" specifies that a border should not be presented.
Also, W3C states that the borderattribute is used to explicitly indicate that the table element is not being used for layout purposes.
please add brainlist
Tables consist of the <table> element as well as other table-related elements. These other elements are nested inside the <table> tags to determine how the table is constructed.
Syntax
The <table> tag is written as <table></table> with the various table elements nested between the start and end tags.
Each <tr> element represents a row in the table. A row can have one or more <td> or <th> elements, which determine the columns in the table. Specifically, <td> represents table data and <th> represents a table header.
Like this:
<table> <tr> <th>Table Header 1</th> <th>Table Header 2</th> </tr> <tr> <td>Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> </tr></table>
Examples
Basic tag usage
The following table includes table rows (<tr>), table headers (<th>) and table data cells (<td>).
You can use the border attribute to determine whether the table should have a border or not (however, this may not be fully supported - see below under "Differences Between HTML 4 & HTML 5" for more info). Using border="1"specifies that a border should be presented, border="0" specifies that a border should not be presented.
Also, W3C states that the borderattribute is used to explicitly indicate that the table element is not being used for layout purposes.
please add brainlist
Answered by
0
Answer:
I have added some extra details and presentatioon in this code hope it helps you
Explanation:
<!DOCTYPE html>
<HTML>
<BODY background="abcde.jpeg">
<table border=6 bgcolor="pink" border color="pink" cellspacing=20>
<tr><td bgcolor="blue" width=80 height=70> </td>
<th> </th>
<th> </th>
<th>abc</th>
</tr>
<tr bgcolor="cyan">
<td> 2009 </td>
<td colspan=2> 2010 </td>
</tr>
<tr>
<td rowspan=3> TOOLS </td>
<td> abc </td>
<td> abc </td>
</tr>
<tr>
<td> abc </td>
<td> abc </td>
</tr>
<tr>
<td> abc </td>
<td> abc </td>
<td>123 </td>
</tr>
</table>
</BODY>
</HTML>
Similar questions