0% found this document useful (0 votes)
72 views4 pages

G6-ICT-Term 3-Chapter 1-Answers

This document discusses HTML elements and tags. It provides examples of common HTML tags like headings, paragraphs, bold, italics and describes their usage. It also discusses attributes, hyperlinks and executing HTML programs using a text editor.

Uploaded by

niinni
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)
72 views4 pages

G6-ICT-Term 3-Chapter 1-Answers

This document discusses HTML elements and tags. It provides examples of common HTML tags like headings, paragraphs, bold, italics and describes their usage. It also discusses attributes, hyperlinks and executing HTML programs using a text editor.

Uploaded by

niinni
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/ 4

Chapter # 8

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
_______________________________________________________________________________

_______________________________________________________________________________
_______________________________________________________________________________

5. <BR> and <NOBR>


The <BR> tag is an empty element. It is used to give a forced line break without inserting
_______________________________________________________________________________
any blank space in between the lines whereas the <NOBR> tag is a container element that
_______________________________________________________________________________
prevents line break.
_______________________________________________________________________________
_______________________________________________________________________________

_______________________________________________________________________________

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>

5. Specify blue as the color of the paragraph.


. <p style=“color:blue;”>This is a paragraph.</p>
_______________________________________________________________________________
_______________________________________________________________________________
6. Insert a small size image ‘SchoolLogo.bmp’ on the right side.
<IMG SRC= “SchoolLogo.bmp” align=“right”>
_______________________________________________________________________________
_______________________________________________________________________________

D. Find the output of the following:


1. <B><I> This is an example to display text in both bold and italics. </I></B>
_______________________________________________________________________________
This is an example to display text in both bold and italics.

_______________________________________________________________________________
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.

_______________________________________________________________________________

3. Date of birth: 12<SUP> th </SUP>August 1988


Date of birth: 12th August 1988
_______________________________________________________________________________

_______________________________________________________________________________

E. Answer the following questions.


1. Why do you use HTML? Discuss various HTML elements.
HTML is a simple scripting language, mainly used for developing web pages.
_______________________________________________________________________________
The content typed along with the start tag and the end tag is called the HTML element. For
_______________________________________________________________________________

_______________________________________________________________________________
example, <B> Click Start </B> is one HTML element. HTML can also have nested elements.

_______________________________________________________________________________
For example, <B> <U> Click Start </U> </B>.
_______________________________________________________________________________
_______________________________________________________________________________
_______________________________________________________________________________

2. What are the tag attributes? Give examples.


Attributes of a tag provides additional information about the HTML elements. They are
_______________________________________________________________________________
always written by giving a space after the tag name. Attributes appear as an attribute name
_______________________________________________________________________________
_______________________________________________________________________________
followed by an ‘=’ sign and then the attribute value. Attribute values should be enclosed

_______________________________________________________________________________
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.

_______________________________________________________________________________

_______________________________________________________________________________
_______________________________________________________________________________

5. What are formatting tags? Explain any two with an example.


Tags which are used to give formatting effects to the text in a web page are called the
_______________________________________________________________________________
formatting tags.
_______________________________________________________________________________
Bold Tag: This tag helps to display the text in bold. It is a container element. The text
_______________________________________________________________________________
written between the <B> and </B> tags appear darker than the rest of the text.
_______________________________________________________________________________
_______________________________________________________________________________
Italics Tag: This tag helps to display the text in italics. It is a container element. The text

_______________________________________________________________________________
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

You might also like