G6-ICT-Term 3-Chapter 1-Answers
G6-ICT-Term 3-Chapter 1-Answers
Introduction to HTML
A. Fill in the blanks.
1. The ___________________
Head tag contains information about the document.
Beginning
2. The HTML tag marks the __________________ and the end of a web page.
<i>
3. The __________________ tag is used for displaying text in italics.
4. Tags which are used to give formatting effects to the text in a web page are called
______________________.
Formatting tags
5. To give a heading of maximum size use the ____________________ tag.
B. State the difference between the following tags.
1. <HEAD> and <TITLE>
<HEAD> is the first element under the HTML tag that contains information about the HTML
_______________________________________________________________________________
document whereas <TITLE> tag displays the text that appears as the title of the web page
_______________________________________________________________________________
_______________________________________________________________________________
in the Title bar. <TITLE> is a sub tag of <HEAD>Tag
_______________________________________________________________________________
_______________________________________________________________________________
2. <BODY> and <P>
<Body> tag is used to specify the body of a webpage like its background image colour and
_______________________________________________________________________________
the specification of text/content in body while <P> is the paragraph tag. It is used to specify
_______________________________________________________________________________
_______________________________________________________________________________
formatting and content related to a specific paragraph.
_______________________________________________________________________________
_______________________________________________________________________________
3. <I> and <B>
<I> stands for Italics tag, a tag used for displaying text in italics while <B> stands for bold
_______________________________________________________________________________
tag, a tag used for displaying the text in bold.
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
4. <SUP> and <SUB>
<SUP> stands for superscript, used to write text slightly above the normal level. For
_______________________________________________________________________________
example, A<sup> 2</sup> will produce A . While <SUP> stands for subscript, used to
_______________________________________________________________________________
display the text in the subscript format. For example, H<SUB>2</SUB>O will produce H O.
_______________________________________________________________________________
Page 1 of 13
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
C. Give the tags and the attributes for the following instructions.
1. Create the heading ‘My First Web Page’ in the center of the page using the highest heading
level.
_______________________________________________________________________________
<CENTER> <H1> My First Webpage</H1></CENTER>
_______________________________________________________________________________
2. Describe the web page as the HTML document.
Save the file with the extension of .HTM or .HTML.
_______________________________________________________________________________
_______________________________________________________________________________
3. Change the color of the visited link from purple to orange.
<body vlink=“orange”>
_______________________________________________________________________________
4. Align the text as the subscript of the text.
_______________________________________________________________________________
<SUB> text </SUB>
_______________________________________________________________________________
Page 2 of 13
2. <B><I><U> This is an example to display text in both bold, italics and underline
</I></B></U>
_______________________________________________________________________________
This is an example to display text in both bold and italics.
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
example, <B> Click Start </B> is one HTML element. HTML can also have nested elements.
_______________________________________________________________________________
For example, <B> <U> Click Start </U> </B>.
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
within double quotes, though some browsers allow single quotes as well.
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
3. Give the steps of executing a HTML program using a text editor.
Type the program using ant text editor (say Notepad). Save the file with the extension .HTM
_______________________________________________________________________________
or .html. Open the file using any browser say Internet Explorer to execute the script
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
Page 3 of 13
_______________________________________________________________________________
_______________________________________________________________________________
4. What are hyperlinks? Give examples.
Hyperlinks are the text/images which link a word or a picture to some additional
_______________________________________________________________________________
information in the same page or on some external page. For example, <A href=“http://
_______________________________________________________________________________
www.cambridgeindia.org”> SEARCH FOR NEW BOOKS PUBLISHED</A> will display a
_______________________________________________________________________________
_______________________________________________________________________________
hyperlink on the web page.
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________
written between <I> and </I> tag appears slightly tilted than the rest of the text
_______________________________________________________________________________
6. Why do you use the <CENTER> tag? Give an example.
<Center> tag is used to align text/image to the center of the page.
_______________________________________________________________________________
Example:
<HTML>
_______________________________________________________________________________
_______________________________________________________________________________
<BODY>
_______________________________________________________________________________
<CENTER>Center text </CENTER>
_______________________________________________________________________________
</BODY>
_______________________________________________________________________________
</HTML>
_______________________________________________________________________________
Page 4 of 13