KnowledgeBoat Logo
OPEN IN APP

Chapter 7

HTML: An Introduction

Class 6 - APC Understanding Computer Studies


Fill in the blanks

Question 1

HTML means Hyper Text Markup Language.

Question 2

A set of pages of information on the Internet about a particular subject is called a website.

Question 3

The language used to create web pages is known as HTML.

Question 4

Every HTML document begins with <HTML> and ends with </HTML> tags.

Question 5

The tags which require start and end tags are called container tags.

Question 6

Empty tags do not require a closing tag in an HTML document.

Question 7

An HTML document has two parts <Head> and <Body>.

Question 8

The content written within the <Title> tag does not appear on the web page tags.

Question 9

An HTML file is generally created on Notepad.

Question 10

An HTML document is saved with the extension .html.

Write the HTML codes for the following by using superscript and subscript tags

Question 1

(m - n)2

Answer

(m - n)<SUP>2</SUP>

Question 2

p2 + q2 - r2

Answer

p<SUP>2</SUP> + q<SUP>2</SUP> - r<SUP>2</SUP>

Question 3

a2b3 - c4d5

Answer

a<SUP>2</SUP>b<SUP>3</SUP> - c<SUP>4</SUP>d<SUP>5</SUP>

Question 4

H2SO4

Answer

H<SUB>2</SUB>SO<SUB>4</SUB>

Question 5

KNO3

Answer

KNO<SUB>3</SUB>

Question 6

Na2CO3

Answer

Na<SUB>2</SUB>CO<SUB>3</SUB>

Short Answer Questions

Question 1

What is HTML?

Answer

HTML is a language used to create web pages. It has all the features of basic word processing including graphics. It helps to make the web pages attractive and informative as well as publish the information globally.

Question 2

What is the basic structure of an HTML document?

Answer

The basic structure of an HTML document is as follows:

<HTML>
    <HEAD>
        <TITLE>...the title of the web page....</TITLE>
    </HEAD>
    <BODY>....
    .........the body of the document.......
    .....
    </BODY>
</HTML>

Question 3

What is meant by HTML tags?

Answer

Tags are special codes in an HTML document. They are marked by angle brackets (< and >) which are understood by the web browsers.

Syntax:

<tag name>String of text</tag name>

Question 4

Name the two documents located in a computer's network.

Answer

The two documents located in a computer's network are:

  1. hypertext
  2. hypermedia

Question 5

Name two softwares which are used to view an HTML document.

Answer

Two softwares which are used to view an HTML document are-

  1. Internet Explorer
  2. Google Chrome

Question 6

Distinguish between <P> and <BR> tags.

Answer

<P> tag<BR> tag
The paragraph tag helps to identify and separate paragraphs in an HTML document.The line break tag avoids blank spaces between the lines.
It is a container tag.It is an empty tag.

Explain the following with reference to HTML

Question 1

Container tags

Answer

Container tags require opening and closing commands. These tags are used in pairs along with angle brackets in an HTML document.

They are also known as ON and OFF tag. ON tag uses angle brackets whereas OFF tag used forward slash (/) after the opening of the angle bracket.

For example:

<P>paragraph</P>

Question 2

Empty tags

Answer

Empty tags do not require a closing tag in an HTML document. It has only an ON tag in the document which is understood by the browser.

For example:

line 1.....<BR>

Question 3

Head tags

Answer

The heading of the document is generally written in the <HEAD> tag. It includes another tag called <TITLE> tag.

Both the <HEAD> tag and the <TITLE> tag are container tags.

Question 4

Body tags

Answer

The <BODY> tag is the actual text of the HTML document which appears on the web page. It starts just below the HEAD tag and indicates the beginning of the HTML text. It is a container tag.

Question 5

Paragraph tags

Answer

Paragraph tags are container tags. These tags are used to create different paragraphs in the web page.

The opening paragraph tag <P> is written at the beginning of the paragraph and the closing paragraph tag </P> is written after the end of the paragraph.

For example:

<P>...paragraph...</P>

Question 6

Line breaks

Answer

Line break tag <BR> is used to provide blank spaces between the lines. The BR tag is an empty tag and so, it doesn't require any closing tag. This tag is written at the end of the line.

For example:

Line 1...<BR>

Write all the steps

Question 1

To start writing an HTML document

Answer

To start writing an HTML document on Notepad, follow these steps:

Step 1: Click the 'Start' button.

Step 2: Select 'All Programs' from the pop-up menu.

Step 3: Select 'Accessories' from the drop-down menu.

Step 4: Click 'Notepad' from the drop-down menu. An untitled notepad will appear on the screen.

Step 5: Now, one can start writing the HTML code by using the following tags:

<HTML>
    <HEAD>
        <TITLE> HTML DOCUMENT </TITLE>
    </HEAD>
    <BODY>
        ...................
        ...................
    </BODY>
</HTML>

Question 2

To view an HTML document on a web page

Answer

To view an HTML document on a web page, follow these steps:

Step 1: Click on the 'Internet Explorer' icon or select Start >> Programs >> Internet Explorer. Internet Explorer window will open.

Step 2: Click 'File'.

Step 3: Click 'Open' from the File menu. The 'Open' window will open.

Step 4: Click 'Browse' and the Windows Internet Explorer window will appear on the screen. Now look for the file path in the window.

Step 5: Write your filename in the 'File name' box and click 'Open'. The 'Open' window will display the complete path of the HTML file which will be shown in the 'Open' box.

Step 6: Click OK.

Step 7: The desired web page will be opened.

Answer the following

Question 1

Write an HTML document by using paragraph and line tags to format the following poem 'Two Little Dicky Birds'.

TWO LITTLE DICKY BIRDS
TWO LITTLE DICKY BIRDS
SITTING ON A WALL
ONE NAMED PETER, ONE NAMED PAUL
FLY AWAY PETER, FLY AWAY PAUL
COME BACK PETER, COME BACK PAUL

Answer

<html>
	<head>
		<title> TWO LITTLE DICKY BIRDS </title>
	</head>	
	<body>
		<p> 
		TWO LITTLE DICKY BIRDS <BR> 
		TWO LITTLE DICKY BIRDS <BR>
		SITTING ON A WALL <BR>
		ONE NAMED PETER, ONE NAMED PAUL <BR>
		FLY AWAY PETER, FLY AWAY PAUL <BR>
		COME BACK PETER, COME BACK PAUL <BR>
		</p>
	</body>
</html>

Question 2

The format of an HTML document is given below. Rearrange the format so that it can be understood by the web browser.

  <HEAD> 
   <HTML> 
   </TITLE>
    MY FIRST STEP TO HTML
   <TITLE> 
   </BODY>
    SEARCH ENGINES ARE THE SOFTWARES ON THE WEB
    WHICH HELP YOU TO LOOK FOR THE SPECIFIC
    INFORMATION.
   <BODY> 
   </HEAD> 
   </HTML>

Answer

<HTML> 
    <HEAD>
        <TITLE>
             MY FIRST STEP TO HTML
        </TITLE> 
   </HEAD>
   <BODY>
        SEARCH ENGINES ARE THE SOFTWARES ON THE WEB
        WHICH HELP YOU TO LOOK FOR THE SPECIFIC
        INFORMATION.
   </BODY> 
</HTML>
PrevNext