Chapter 9
Chapter 9
Lists in HTML
b.Ordered List
c.Definition List
d.All of these
b. Ordered List
c. Definition List
d. All of these
b. Rectangle
c. Circle
d. Disc
Ans. b. Rectangle
4. Which among the following is not used in Numbered List?
a. A
b. a
c. i
d. @
Ans. d. @
5. Which among the following attributes changes the starting sequence of numbering in an Ordered
List?
a. BEGIN
b. START
c. INDEX
d. All of these
Ans. b. START
6. To define the Definition Term in a Definition List use the ______________ tag.
a. DT
b. DEF
c. TERM
d. DEFTERM
Ans. a. DT
7. A list prefixed with a symbol before is called ______________ list.
a. Unordered List
b. Ordered List
c. both a and b
d. none of these
b. c. d.
Ans. a.
9. What is the default numbering of the ordered list?
a. 1, 2, 3
b. a, b, c,
c. i, ii, iii
d. A, B, C
c. nested list
d. none of these
Ans. a. 1, 2, 3
10. A list within a list is called a ___________.
a. list of list
b. list-list
[False]
[True]
[True]
[True]
[False]
[False]
[False]
8. TYPE=rectangle attribute of an unordered list, will create a bulleted list of rectangle as a symbol.
[False]
9. The START attribute of the Ordered List changes the sequence of numbering in an ordered list.
[True]
10. The REVERSED attribute reversed the Numbered List numbering sequence in descending order.
[True]
D. Answer the following questions:
1. What is a List? What are the different categories of list that you can create using HTML?
Ans. Lists in HTML is used to arrange data containing bullets and numbering to produce an
ordered set of text. The different categories of list that can be created using HTML are:
a. Ordered List
b. Un-Ordered List
c. Definition List
4. What is <OL> tag used for? Write the <OL> tag along with its attributes to create a numbered
list, where numbering is done using alphabets starting from e.
Ans. Ordered Lists also called Numbered Lists are used to specify numbers instead of bullets as in
Unordered lists.
5. What is Definition List? What are tags associated with the Definition List?
Ans. A definition list is a list of terms and corresponding definitions. Definition lists are typically
formatted with the term on the left with the definition following on the right or on the next
line. The definition text is typically indented with respect to the term.
A definition list always begins with the <DL> tag and ends with the </DL> tag. The
definition term is tagged as <DT> and a definition description tagged as <DD>.
Example:
<HTML>
<HEAD>
<TITLE>Nested List</TITLE>
</HEAD>
<BODY>
<UL>
<UL TYPE=square>
<LI> Darjeeling
<LI> Bankura
<LI> Jalpaiguri
<LI> Islampur
</UL>
<LI> Bihar
<UL TYPE=square>
<LI> Kishanganj
<LI> Purnea
<LI> Madhepura
<LI> Katihar
</UL>
</UL>
</BODY>
</HTML>
43
E. Application-based question:
Observe the following web page and write the HTML code to generate it.
MANGOES IN INDIA
Mangoes of India are well famous in the world for its sweetness, richness and flavor, The land
of India is the largest producer of mangoes and most important fruit of the country.
Most popular types of mangoes in India are:
Alphonsos
Badami
Chausa
Dasheri
Kishenbhog
Mankurad,Pairi
Amrapali
Fazli.
Note the following points while generating the web page:
Title of the page is Indian Mangoes.
Font style for the page is Arial.
Heading of the page is blue.
Image used is mangoes.png.
Ans.
<HTML>
<HEAD>
<TITLE>Indian Mangoes</TITLE>
<BASEFONT FACE=Arial>
</HEAD>
<BODY>
Mangoes of India are well famous in the world for its sweetness, richness and flavor, the land
of India is the largest producer of mangoes and most important fruit of the country.
</P>
<IMG SRG= mangoes.png><BR>
Most popular types of mangoes in India are:<BR>
<UL TYPE= SQUARE>
44
<LI>Alphonsos
<LI>Badami
<LI>Chausa
<LI>Dasheri
</UL>
<BR>
Some other famous varieties of mango includes:<BR>
45