create the table having for header rows with yellow background color , 4 table body rows having light orange color, and two footer rows having light green color add table content from your own
plz answer its urgent
Answers
Answered by
10
Explanation:
<html> <head> <title>table </title> </head> <body> <th>header</th> <th>header</th> <th>header</th> <th>header</th> <tfoot bgcolor="lightgreen"> </tfoot>
body body body body
foot foot
</body> </html>
Answered by
8
The below code is in HTML:
<!DOCTYPE html>
<html>
<table>
<thead style = "background-color:yellow">
<tr>
<th>Header 1</th>
</tr>
<tr>
<th>Header 2</th>
</tr>
<tr>
<th>Header 3</th>
</tr>
<tr>
<th>Header 4</th>
</tr>
</thead>
<tbody style = "background-color: orange">
<tr>
<td>Body row 1</td>
</tr>
<tr>
<td>Body row 2</td>
</tr>
<tr>
<td>Body row 3</td>
</tr>
<tr>
<td>Body row 4</td>
</tr>
</tbody>
<tfoot style = "background-color: green">
<tr>
<td>Footer 1</td>
</tr>
<tr>
<td>Footer 2</td>
</tr>
</tfoot>
</table>
</html>
- <table> tag is used to create tables.
- <thead> tag is used to combine the header rows.
- <tbody> tag is used to create the body of the table.
- <tfoot> tag is used to combine the footer rows.
- The style attribute is used to add CSS to the HTML code.
#SPJ2
Similar questions