Html code for make student table.

Here's an example of how you can create a simple student table in HTML:- 
    
<html>

<head>

<title> Student Table </title>

</head>

<body>

<table>

<thead>

<tr>

<th>Student ID</th>

<th>Name</th>

<th>Age</th>

<th>Gender</th>

<th>Major</th>

</tr>

</thead>

<tbody>

<tr>

<td>1</td>

<td>Sahil Yadav</td>

<td>18</td>

<td>Male</td>

<td>BAF</td>

</tr>

<tr>

<td>2</td>

<td>Shruti Pathak</td>

<td>18</td>

<td>Female</td>

<td>BSC-IT</td>

</tr>

<tr>

<td>3</td>

<td>Sujeet Yadav</td>

<td>18</td>

<td>Male</td>

<td>BSC-IT </td>

</tr>

</tbody>

</table>

</body>

</html>


Explanation:  This creates a table with four columns: Name, Age, Gender, and Grade. The first row of the table is the header row, which is created using the element and the element for each column. The rest of the table is created using the element and the element for each cell.

Note: You can customize the appearance of the table using CSS. In this example, I've added some basic styles to make the table look more presentable.

Post a Comment

Previous Post Next Post
© 2023 Developed and Design By
NILESH NISHAD