Saturday, 29 January 2022

Lesson 9 Basics of HTML / Class 7th Computer

Computer Science

Class-VII

Lesson 9 Basics of HTML

Make a list of HTML tags

Tag

Use

Attributes

<HTML>

Defines an HTML Document It helps the browser to understand that the HTML code starts from here<HTML> and ends from here </html>

 

<HEAD>…..</HEAD>

Defines information about the document It indicates the first part of HTML. It also contains Title bar

 

<TITLE>…..</TITLE>

Defines a title for the document  The title of the page is written here and displayed at the title bar of the explorer window

 

<BODY>…..</BODY>

Defines the document's body  This is the main part of our HTML document. All the content of the page are written with in this tag

BGCOLOR

<B>

make text BOLD

 

<I>

make text ITALIC

 

<U>

make text UNDERLINE

 

<BR>

move your text next line

 

<H1>

displays your text highest<h6> to lowest size<h1>.

There are six levels of heading H1 to H6.

 

<FONT>

this tag is used to change the appearance of the text

COLOR, FACE, SIZE

<p>

Defines a paragraph

 

<SUB>

Defines Sub Scripted Text

 

<SUP>

Defines Super scripted Text

 

<STRONG>

Defines important Text

 

 

A. Fill in the blanks

Two , <br>,   <title> , .html ,  size

1. <title> tag is used to display the title of the document.

2. HTML tags are divided into Two categories.

3. We can save our HTML file with .HTML or .HTM extension.

4. <br> tag is used to move your text on next line.

5. The attributes of font tag are color, face and size

B. True or False

1. <B> tag is used to make out text bold.                                   TRUE

2. Heading tag has six levels from H1 to H6.                           TRUE

3. HEAD section contains body part.                                           FALSE

4. HTML is a case sensitive language.                                         FALSE

5. Container tag has both starting and ending                      TRUE

C. Short answer type questions

1. Name some popular web browser.

Ans: web browsers are..

1. Internet explorer

2. Google chrome

3. Mozilla Firefox

4. Netscape Navigator

 

2. how many levels of heading tag have. Name highest and lowest level.

Ans: HEADING <H1> displays your text highest<h6> to lowest size<h1>.

There are six levels of heading H1 to H6.

 

3. Name the tag use to change the appearance of the text. Also give its attributes.

Ans: <FONT> this tag is used to change the appearance of the text and the attributes of FONT tag are COLOR, FACE, SIZE

 

D. Long answer type questions

1. What are the characteristics of HTML language?

Ans: CHARATERSTICS OF HTML

1. Easy to understand

2. We can easily design web pages in HTML

3. Graphics sound can be easily inserted

4. HTML is not a case sensitive language

5. HTML is a platform independent language

 

2. Write the basic structure of HTML document.

Ans: HTML document has two sections:

HEAD Section – It contains Title of the document

BODY Section – Where we do most of the work. It includes text, graphics, and other HTML elements

 

3. Differentiate between container and empty tag .

Ans: Container tag - a tag that has a opening tag and closing tag.

Examples of container tags are (<div>, <span>, <h1> to <h6>, <p>, <em>, <strong>, and many more.)

The purpose of a container tag is to “contain” content inside the opening tag and closing tag.

The structure of a container tag goes as follows (<opening tag> insert content <closing tag>) for example (<h1> Hello World! </h1>).

Empty Tag - a tag that has a opening tag but no closing tag.

Examples of empty tags are (<br>, <img>)

The purpose of an empty tag is not necessarily to “contain” content but rather “insert” content like images, and line breaks. The structure of a container tag goes as follows (<opening tag>).

 

 

4. Expand the terms

a. <B>

Ans: Defines Bold text

b. <BR>

Ans: Inserts a single line break

 c. <HTML>

Ans: Defines an HTML Document

d. <U>

Ans: Defines Underlined text

 


No comments:

Post a Comment

L-1 Indian Heroes in IT/ 8th computer

  Class 8 th Subject : Computer Science L-1 Indian Heroes in IT Make a list of Indian Heroes in IT with their achievement S....