0% found this document useful (0 votes)
0 views

html_notes3

The document provides a detailed explanation of various HTML tags, specifically focusing on lists such as ordered lists (<OL>), unordered lists (<UL>), and definition lists (<DL>). It outlines the attributes associated with these tags, including the 'type' and 'start' attributes for <OL> and <UL>. Additionally, it includes examples of HTML code and common errors related to list tags.

Uploaded by

muskanparihar873
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

html_notes3

The document provides a detailed explanation of various HTML tags, specifically focusing on lists such as ordered lists (<OL>), unordered lists (<UL>), and definition lists (<DL>). It outlines the attributes associated with these tags, including the 'type' and 'start' attributes for <OL> and <UL>. Additionally, it includes examples of HTML code and common errors related to list tags.

Uploaded by

muskanparihar873
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Assignment3(HTML)

Q1. Write the full form of following tags:


Ans. <OL> Ordered List
<UL> Unordered List
<LI> List Item
<DL> Definition List
<DT> Definition Term
<DD> Definition Description

Q2. Define <OL> tag with its attributes.


Ans. <OL> tag is used to define an ordered list. It is also
known as numbered or sequential list.
<LI> tag is used after <OL> tag to make the list items.
Attributes used with <OL> tag are:
a. Type attribute: used to change the numbering style
of the list items.

The values used with type attribute are as follows:

Type=”1” by default (1, 2, 3, 4,….)


Type=”a” Lowercase alphabets (a, b, c, d,….)

Type=”A” Uppercase alphabets (A, B, C, D,…)

Type=”i” Roman numbers in (i, ii, iii, iv,….)


lowercase

Type=”I” Roman numbers in (I, II, III, IV,…)


uppercase

b. Start attribute: used to change the beginning value


of the TYPE attribute. Its value must always be an
integer.
For ex. <OL Type=”A” Start=”5”>
So here, the list will start from E.

Q3. Define <UL> tag with its attribute.


Ans 3. <UL> tag is used to define an unordered list. It is also
known as bulleted list. <LI> tag is used after <UL> tag to make
the list items.
Attribute used with <UL> tag is:
1. Type attribute: It specifies the type of bullets used in the
list. The values used with type attribute are Disc (by
default), square and circle.
For ex. <UL type=”circle”> or <UL type=”square”> or <UL
type=”disc”>

Q4. Define <DL> tag with its use.


Ans 4. <DL> tag is used for making definition list.
After <DL> tag, <DT> tag is used which defines the definition
term. Then <DD> tag is used in which the Definition
description is written.

Q5. What will be the output of the following code?


<BODY>
METROPOLITAN CITIES IN INDIA ARE:
<UL TYPE=”DISC”>
<LI> MUMBAI
<LI> KOLKATA
<LI> CHENNAI
<LI> NEW DELHI
</UL>
</BODY>
Ans 5. The above Html code will display the following output:
METROPOLITAN CITIES IN INDIA ARE:
• MUMBAI
• KOLKATA
• CHENNAI
• NEW DELHI

Q6. Write an HTML code to display the following list:


I like to eat:
IV. Mango
V. Guava VI. Apple
Ans 6.
<Html>
<Body>
I like to eat:
<OL type= “I” start=”4”>
<li>Mango
<li>Guava
<li>Apple
</OL>
</Body>
</Html>

Q7. What is nested list? Explain with example.


Ans 7. Nested list means a list within a list. For example,
A. Indoor
games
o Ludo o
Chess o
Carrom
B. Outdoor
games
i. Cricket
ii. Badminton
iii. Volley ball
For this nested list, following html code will be used:
<Html>
<Body>
<ol type=”A”>
<li>Indoor games
<ul type=”circle”>
<li>Ludo
<li>Chess
<li>Carrom
</ul>
<li>Outdoor games
<ol type=”i”>
<li>Cricket
<li>Badminton
<li>Volley ball
</ol>
</ol>
</Body>
</Html>

Q8. Find the error in the following code and correct it.
I) <OL TYPE=” SQUARE”>
II) <UL TYPE=” BULLET”>

Ans. I. <UL TYPE=” SQUARE”>


II. <UL TYPE=” DISC”> or <UL TYPE=” CIRCLE”> or <UL
TYPE=” SQUARE”>
Q9. Identify and remove the error in the following code:
a) <ol type=” A” start=” F”>
b)<ul type=” I”>

Ans)
a. <ol type=”A” start=”6”>
b. <ol type=”I”>
Q 10. Write an Html code to make a definition list for
hardware and software.
Ans 10.
<Html>
<Body>
<DL>
<DT> Hardware
<DD> All the physical parts of computer are referred to as
Hardware.
</DT>
<DT>Software
<DD>Collection of programs and instructions is called
Software.
</DT>
</DL>
</Body>
</Html>

The output will be as follows:


Home Work Questions:

1)Which tag is used to make bulleted list?


2)Which tag is used to make sequential list?
3)Name the attributes of <OL> tag.
4)Name the three tags involved to make a definition list.
5)What is the use of <LI> tag?

You might also like