Computer Science, asked by shreyan642, 11 months ago

Apply the following table elements to display the following table
Table elments table, td, tr, th, tbody, tfoot, thead

Attachments:

Answers

Answered by rocky227
6

apply the table border too..... to get the same result.... u can even decorate it..... using colours.... styles... etc

Attachments:
Answered by akshatahandigund
4

Answer:

<!DOCTYPE html>

<html>

<head>

<style>

table,th,td{

border:1px solid black;

text-align:center;

}

</style>

</head>

 

<body>

<table cellpadding="4px"cellspacing="0px">

    <thead>

 <tr>

   <th>SLNO</th>

   <th>USN</th>

   <th>Name</th>

   <th>Dept</th>

 </tr>

    </thead>

    <tbody>

 <tr>

   <td>1</td>

   <td></td>

   <td></td>

   <td></td>

 </tr>

 

 <tr>  

   <td>2</td>

   <td></td>

   <td></td>

   <td></td>

 </tr>

    </tbody>

    <tfoot>

 <tr>

   <td>Total no of rows</td>

   <td>2</td>

   <td>-</td>

   <td>-</td>

 </tr>

    </tfoot>

</table>

</body>

</html>

Explanation:

Similar questions