Computer Science, asked by luvagarwal6687, 11 months ago

Write html code to generate the following table
T

Answers

Answered by aadityabharatsingh81
1

hi,

Defining an HTML Table

An HTML table is defined with the <table> tag.

Each table row is defined with the <tr> tag. A table header is defined with the <th> tag. By default, table headings are bold and centered. A table data/cell is defined with the <td> tag.

Example

<table style="width:100%">

 <tr>

   <th>Firstname</th>

   <th>Lastname</th>

   <th>Age</th>

 </tr>

 <tr>

   <td>Jill</td>

   <td>Smith</td>

   <td>50</td>

 </tr>

 <tr>

   <td>Eve</td>

   <td>Jackson</td>

   <td>94</td>

 </tr>

</table>

HTML Table - Adding a Border

If you do not specify a border for the table, it will be displayed without borders.

A border is set using the CSS border property:

Example

table, th, td {

 border: 1px solid black;

}

Answered by 007692
0

Answer: Constructing an HTML table consists of describing the table between the beginning table tag, <TABLE>, and the ending table table tag, </TABLE>. Between these tags, you then construct each row and each cell in the row. To do this, you would first start the row with the beginning row tag, <TR>, and then build the row by creating each cell with the beginning cell tag, <TD>, adding the data for that cell, and then closing the cell with the ending cell tag, </TD>. When you finish all of the cells for a row, you would then close the row with the ending row tag, </TR>.Then, for each new row, you would repeat the process of beginning the row, building each cell in the row, and closing the row.

Similar questions