write an html code to form a table to show the below values in a tabular form with heading as roll no., student name, subject name, and values as

Report
Question
822 views

Solution

Please explain why do you think this question should be reported?

Report Cancel

  

<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
 
<table >
<thead>
<tr>
<th> Roll No. </th>
<th> Student Name </th>
<th> Subject Name </th>
</tr>
</thead>
<tbody>
<tr>
<td> 1 </td>
<td>Shaurabh</td>
<td> Physics </td>
</tr>
<tr>
<td> 2 </td>
<td> Shubham</td>
<td> Math </td>
</tr>
<tr>
<td> 3 </td>
<td> Aman</td>
<td> Chemistry </td>
</tr>
</tbody>
</table>
</body>
</html>

  

Thread Reply

Leave an comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>