1.

Write the HTML code to design the web page as shown below, considering the specifications as given below. Students can write code for any 4 specifications out of the given 5 specifications.Specification-2 : The value of the table border attribute should be 1. Table header tag should be used wherever required. Specification-1 : The HTML code structure should be proper. Heading 'HTML TABLE' should be the first level of heading and Background color of the page should be Light Cyan. Specification-3 : The table should exactly contain 4 rows and 4 columns. The data in each cell should be as shown in the above table. Specification-4 : Attribute rowspan should be used wherever required. Specification-5 : Attribute colspan should be used wherever required.

Answer»

<htm>

<head>

</head>

<body bgcolor = "Light Cyan">

<h1>HTML TABLE</h1>

<table border="1">

<tr>

<th> Roll Number </th>

<th> First Name</th>

<th> Last Name</th>

<th> Class</th>

</tr>

<tr>

<td>1</td>

<td>FN1</td>

<td>LN1</td>

<td>12th</td>

</tr>

<tr>

<td>2</td>

<td>FN2</td>

<td>LN2</td>

<td row span ="2">11th</td>

</tr>

<tr>

<td>3</td>

<td colspan="2">FN3 LN3</td>

</tr>

</table>

</body>

<html>



Discussion

No Comment Found

Related InterviewSolutions