Write the HTML code to generate the following output of a table with the content
exactly in the same format as shown within the table:
see the picture given in the attachment
Attachments:
dkavyasri13:
please write someone
Answers
Answered by
70
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse
;}
th, td { padding: 5px;}
th
{ text-align: left;}
</style>
</head>
<body>
<table style="width:100%">
<tr>
<th>ADMNO</th>
<th>SNAME</th>
<th>NAME</th>
<th>DOB</th>
</tr>
<tr>
<td>JS04567</td>
<td>Agarwal</td>
<td>Rajesh</td>
<td>4-March-1998</td>
</tr>
</body>
</html>
<html>
<head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse
;}
th, td { padding: 5px;}
th
{ text-align: left;}
</style>
</head>
<body>
<table style="width:100%">
<tr>
<th>ADMNO</th>
<th>SNAME</th>
<th>NAME</th>
<th>DOB</th>
</tr>
<tr>
<td>JS04567</td>
<td>Agarwal</td>
<td>Rajesh</td>
<td>4-March-1998</td>
</tr>
</body>
</html>
Answered by
37
<html><title><body><table>
<tr>
<td>ADMNO</td>
<td>SNAME</td>
<td>NAME</td>
<td>DOB</td></tr>
<tr>
<td>JS04567</td>
<td>Agarwal</td>
<td>Rajesh</td>
<td>4-Mar-1998</td>
</table></body
<tr>
<td>ADMNO</td>
<td>SNAME</td>
<td>NAME</td>
<td>DOB</td></tr>
<tr>
<td>JS04567</td>
<td>Agarwal</td>
<td>Rajesh</td>
<td>4-Mar-1998</td>
</table></body
Similar questions