Advertisements
Advertisements
प्रश्न
Write the HTML code to design the web page as shown below, considering the specifications as given below.

Specification 1: The HTML code structure should be proper. Heading ‘Class Timetable’ should be the second level of heading and Background color of the page should be LightGreen.
Specification 2: The value of the table border attribute should be 1. Table header tag should be used wherever required.
Specification 3: The table should exactly contain 3 rows and 3 columns. The data in each cell should be as shown in the above table.
Specification 4: Attribute colspan should be used wherever required.
कोड लेखन
Advertisements
उत्तर
<html>
<head>
<title>Class Timetable</title>
</head>
<body bgcolor='LightGreen'>
<h2>Class Timetable</h2>
<table border='1'>
<tr>
<th>Day</th>
<th>1st Period</th>
<th>2nd Period</th>
</tr>
<tr>
<td>Monday</td>
<td>Mathematics</td>
<td>Hindi</td>
</tr>
<tr>
<td>Tuesday</td>
<td>Science</td>
<td>English</td>
</tr>
<tr>
<td>Wednesday</td>
<td colspan='2'>Physics</td>
</tr>
</table>
</body>
</html>shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
