0% found this document useful (0 votes)
26 views3 pages

Text Formatting

The document provides a lesson on text formatting in HTML, covering various tags and attributes such as <big>, <font>, <marquee>, and <hr>. It includes fill-in-the-blank exercises, true/false statements, and explanations of specific attributes and tags. Key concepts include the use of color, size, and font face attributes, as well as the differences between certain tags like <p> and <br>.
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)
26 views3 pages

Text Formatting

The document provides a lesson on text formatting in HTML, covering various tags and attributes such as <big>, <font>, <marquee>, and <hr>. It includes fill-in-the-blank exercises, true/false statements, and explanations of specific attributes and tags. Key concepts include the use of color, size, and font face attributes, as well as the differences between certain tags like <p> and <br>.
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/ 3

Lesson 4 : Text Formatting

Fill in the blanks:


1. The <big> tag is used to display the text in large size.
2. Face attribute displays the text in different font.
3. Marquee tag is used to scroll the text across the screen.
4. There are six levels of heading in HTML.
5. The noshade attribute displays the line in dark grey colour.
6. The RGB value for blue is 0000FF
7. The default size of size attribute is three (3).
Say true or false :
1. The text is an attribute of BODY tag.
Ans : True
2. <U> and </U> tag is used to strike out the text.
Ans : False. <U> and </U> tag is used to underline the text.
3. Align is the attribute of <P> tag.
Ans : True
4. Marquee tag works in all browsers.
Ans : True
5. The <BR> tag represents the horizontal ruler in HTML.
Ans : False. The <HR> tag represents the horizontal ruler in HTML.
6. The font style specified in the face attribute is enclosed within { }.
Ans : False. The font style specified in the face attribute is enclosed within “ “.
7. The Marquee tag is used to scroll the text from top to bottom.
Ans : True
8. Both <HR> tag and <FONT>tag uses size attribute.
Ans : True
9. The RGB value for colour White is FFFFFF.
Ans : True
10.The end tag of <BR>tag is </BR>.
Ans : False. The <BR> tag has no end tag.
Answer the following :

1. Explain COLOR attribute used with the <FONT> tag?


Ans : The color attribute used with the font tag is used for changing the color
of a word or a phrase within the font tag. The value of color attribute is either
color name or RGB code.

2. Can we use more than one attribute in HTML? Give example.


Ans : Yes, HTML allows the user to use more than one attribute in a tag.
Eg. <Font Face = " ARIAL " SIZE = "5" COLOR* "BLUE" > USS < /FONT>

Page 1 of 3
3. Write down the difference between <small >tag and size attribute?
Ans : The <small> tag displays the text in a font smaller than the font
currently being used whereas the size attribute used with the <Font> tag
allows the user to decide the size of the font for text within font tag.

4. Explain < MARQUEE > tag with an example?


Ans : The <Marquee> tag makes the text enclosed within it, to scroll from one
end of the window to the other. The attributes used with the <marquee> tag
are BGCOLOR and DIRECTION.
Direction specifies the direction to which the text should scroll (i.e Left to right
or Right to left) BGCOLOR specifies the Background colour of the marquee.
The <marquee> tag can also be used with <Font > tag for better effects.
Eg. <BODY>
<MARQUEE BGCOLOR = "YELLOW" DIRECTION ="RIGHT" >
Wish you all success </MARQUEE>
</BODY >

5. Explain the formatting attributes that are used with the <FONT> tag.
Ans : The attributes that that are used with the <FONT> are: Face, Size
and Color.
a) Face – Font face displayed in the browser can be changed using the face
attribute. Face attribute has a value which is a font name enclosed with in
double quotes. If the specified font is unavailable in the system, then the
default font will be assumed.
b) Size – The size attribute is enclosed within the font tag and it indicates the
size in which the font has to be displayed. The values of the size attribute are
1 to 7 where 3 is the default size.
c) Color – This Attribute is used to change the color of the text enclosed
within the <font> and </font> tags.

6. What are the heading levels available in HTML?


Ans : HTML provides us with six levels of headings starting from Heading 1
i.e., HI, H2, H3, H4, H5 and H6. Each heading has its own appearance. They
are used to differentiate appearances and to differentiate between main
heading and Subheading.

7. Contrast <P> tag and <BR> tag.


Ans : The Paragraph <P> tag is used to break the text into paragraphs
whereas the <BR> tags are used to introduce line breaks.
The <P> tag has an attribute align which is used to align the paragraph but
the <BR> tag has no attributes.
The <P> tag has an end tag </P> but it is optional whereas the <BR> tag
does not have any end tag.

Page 2 of 3
8. Give a note on the attribute BGCOLOR of <BODY> tag?
Ans : BGCOLOR is an attribute of the <BODY> tag which is used to change
the back ground colour of the page. The colour can be specified by giving the
colour name directly or by giving a RGB color code which is specified as a six
digit hexadecimal number which represents the Red, Green, Blue
component. Eg. The RGB value for white is 'FFFFFF', for red it is FF0000, for
blue it is 0000FF and for green it is 00FF00.

9. What is the use of <HR> tag?


Ans : The <HR> tag is used to draw a horizontal line. It also automatically
introduces a horizontal line break.

10. What is the use of Text Attribute in < BODY > tag and color attribute in
<font> Tag?
Ans :The text attribute is an attribute of <BODY> tag. It is used to specify
the color in which the text is to be displayed. The text attribute when used
affects the entire text
The color attribute used with the font tag will change only the color of the
text that is enclosed within the <FONT> tag.

Page 3 of 3

You might also like