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

CH-2 HTML Lists

Class 7th subject computer.. ncert

Uploaded by

ssdarade04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

CH-2 HTML Lists

Class 7th subject computer.. ncert

Uploaded by

ssdarade04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Ch-2 HTML Lists

ANSWERS
EXERCISE BOT
A. Fill in the blanks.
1. <OL> 2. <DL>
3. Start 4. <OL> or <UL>
5. disc 6. type
B. Write T for true and F for false statements.
1. True 2. False
3. True 4. True
5. True
C. Choose the correct option.
1. Definition description 2. type
3. <UL> 4. <OL>
5. <DL> 6. <body background=”A.jpg”>
7. <H1> 8. active link
9. Definition Term
D. Answer the following questions.
1. The ‘Start’ attribute indicates the starting number for the list. As <UL> tag is used when
you don’t want to display a list in any specific order it does not require the ‘Start’ attribute.
2. a. <DT>: This tag specifies the term in the definition list. DT tag must be used in a DL
tag.
<DD>: This tag displays a definition description in a definition list. This tag must be
used within a DT tag, which is under DL tag.
b. <OL>: This tag is used when you need to display a list of items in a specific order.
The list can begin with a number or a letter. To specify the type of list, <OL> tag has
an at- tribute called TYPE. The value of type attribute can be one of the following:
• ‘A’ for uppercase letters
• ‘a’ for lowercase letters
• ‘I’ for uppercase Roman numerals
• ‘i’ for lowercase Roman numerals
• '1' specifies a sequence of numbers
<UL>: This tag is used when you don’t want to display a list in any specific order. It also
has a ‘type’ attribute to specify about the types of bullets to be displayed in the list. The
default bullet is ‘disc’. The value of type attribute can be one of the following:
• Circle specifies a hollow bullet
• Disc specifies a solid round bullet
• Square specifies a square bullet

3. <OL> tag has the following attributes:


i. START = “value”: It indicates the starting number for the list. The number must
be a positive integer.
ii. TYPE = “value”: It defines the type of numbering sequence used for each list item.
The value can be one of the following:
• A for uppercase letters
• a for lowercase letters
• I for uppercase Roman numerals
• i for lowercase Roman numerals
• 1 specifies a sequence of numbers
4. Some of the common HTML lists that can be used when designing a page are:
i. Ordered List
ii. Unordered List
iii. Nested List
iv. Definition List
5. The number type is specific to the ordered list. It can be changed in the middle of a list
by using the "type" attribute. The following example would make it clear:
<HTML>
<BODY>
<Center><B>Class List in different formats</B></center>
<U>Format 1</U>
<OL type="I">
<LI>Ankita
<LI>Shourya
<LI>Yash
</OL>
<U>Format 2</U>
<OL type="1">
<LI>Ankita
<LI>Shourya
<LI>Yash
</OL>
<BODY>
</HTML>
6. The "color" attribute of the <FONT> tag can be used to create multicoloured text in a
web- page. An example for the same is as follows:
<HTML>
<BODY BGCOLOR="PINK”>
<H1>
<FONT COLOR=”RED” TYPE=”IMPACT” SIZE=5>G</FONT>
<FONT COLOR=”BLUE” SIZE=10>O</FONT>
<FONT COLOR=”GREEN” SIZE=10>O</FONT>
<FONT COLOR=”YELLOW” SIZE=5>G</FONT>

13
<FONT COLOR=”VIOLET” SIZE=10>L</FONT>
<FONT COLOR=”INDIGO” SIZE=5>E</FONT>
</H1>
</BODY>
</HTML>
7. a. <TITLE> tag
• <B> tag to make the text bold and <U> tag to underline the text
• TEXT attribute of <Body> tag

BGCOLOR attribute of <Body>


tag

You might also like