Chapter-3 PDF
Chapter-3 PDF
Chapter : 3
1 Basic HTML Elements
Computers-10 1
<BODY background = “school_logo.bmp”>
To display the school logo as the background.
</BODY>
</HTML>
Ans-7 : The text will be displayed as black and the background will be displayed as white.
Ans-8 : To draw a 2-D rule, Noshade is used with the <HR> tag.
The HTML code is :
<HTML>
<HEAD>
<TITLE> 2-D Rule </TITLE>
</HEAD>
<BODY>
<HR width = 50% noshade> will display a 2D rule that will spread across 50% of the window.
</BODY>
</HTML>
Ans-9 : The HTML code is :
<HTML>
<HEAD>
<TITLE> Escape Sequence </TITLE>
</HEAD>
<BODY>
& <BR>
" on the page "
</BODY>
</HTML>
Ans-10 : HTML container tags are those that require to be used in pairs i.e. opening tag and also the closing tag.
For example : <BODY> is an opening tag and </BODY> is a closing tag.
Ans-11 : The HTML code is:
<HTML>
<HEAD>
<TITLE> GOOD FUN
</TITLE>
</HEAD>
</HTML>
Ans-12 : The HTML code is :
<HTML>
<HEAD>
<TITLE> Happy Mother’s Day </TITLE>
</HEAD>
<BODY>
<H1> HAPPY MOTHER’S DAY </H1>
</BODY>
</HTML>
Ans-13 : Click View menu → Source option.
2 Computers-10
Part-C : Short Answer Type Questions
Ans-1 : The correct lines of HTML code are :
(i) <HTML>
<HEAD> <TITLE> HEADING ELEMENTS IN HTML</TITLE> </HEAD>
<BODY bgcolor=lightblue>
<CENTER> Please Centre this!!</CENTER>
<H1 align=justified> Good morning !! How are U?</H1><BR>
<HR width=75 align=right noshade>
<FONT size=7 color=blue face=”Arial Black, Bradley Hand ITC” >
Check this font out .
<P >Let’s close this</P>
</BODY> </HTML>
(ii) <HTML>
<HEAD> <TITLE> BACKGROUND PICTURE</TITLE> </HEAD>
<BODY background=”cards.bmp” leftmargin=10>
<HR color = red>
HEY!! Count the cards.
<P align=center>Happy Diwali !!
Merry Christmas </P> <BR>
<HR color=blue>
</BODY> </HTML>
(iii) <HTML>
<HEAD> <TITLE> UNORDERED LIST</TITLE> </HEAD>
<BODY>
My Hobbies are :
<UL type=square>
<LI> Gardening
<LI> Computers
</UL>
</BODY>
</HTML>
(iv) <HTML>
<HEAD> <TITLE> ORDERED LIST</TITLE> </HEAD>
<BODY>
Safety rules on the road are :
<OL type= a>
<LI>Walk on the left side of the road .
</OL>
<IMG src=”aa.gif”>
</BODY> </HTML>
Ans-2 : The purpose of the tag <H1>..... <H6> is to create headings that stand out from the rest of the text in the page.
Ans-3 : ALINK is an attribute that can be used to set the colour of the active links on the page.
Ans-4 : BGCOLOR in HTML is an attribute that is used to set the background colour of the HTML document. The default
color for BGCOLOR is WHITE.
Computers-10 3
Ans-5 : The different types of numbering that can be displayed using the TYPE attribute on the <OL> tag are :
1 Arabic numerals 1, 2, 3
4 Computers-10
FUN ZONE
Part-B : Quiz
Ans-1 : The default symbol of unordered list is circle.
Ans-2 : The text given in <title> tag appears on the title bar.
Ans-3 : The three attributes of <font> tag are size, face and color.
Ans-4 : .htm or .html
Ans-5 : <Br>
Computers-10 5