Advertisements
Advertisements
Question
Nisha, a Class X student, is designing an HTML page to display a description list and an ordered list for her project. She writes the following code:
<html><body bgcolor="lightgrey"> <h2>Indian Cities</h2><dl><dt>Mumbai</dt><dd>The City of Dreams</dd> <dt>Kolkata</dt>______<!--line 1--></dl><p>Popular Cities in India:</p><ol type="______" start="______"><!--line 2--><li>Delhi</li><li>Mumbai</li>______<!--line 3--></ol> </body> </html>
Based on the above code, fill in the blanks in line 1, line 2, and line 3 as per specifications given below.
- In line 1, add the description “The City of Joy” for Kolkata.
- In line 2, specify the type of ordered list as Roman numerals and set the starting value as 5.
- In line 3, add the name of another city, Chennai as the third list item.
Advertisements
Solution
<html><body bgcolor="lightgrey"> <h2>Indian Cities</h2><dl><dt>Mumbai</dt><dd>The City of Dreams</dd> <dt>Kolkata</dt><dd>The City of Joy</dd></dl><p>Popular Cities in India:</p><ol type="l" start="5"> <!-- line 2 --> <li>Delhi</li><li>Mumbai</li><li>Chennai</li></ol> </body> </html>
