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
ReportQuestion
3 years ago 822 views
Solution
<!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