HTML
Q1 .What do you understand by ‘Tag’?
AnsA tag is a coded HTML command that indicates how a part of web page should be displayed.
HTML tags are written inside angle brackets (<>). For example,
<H1>Main Heading</H1>
Q 2 What is an attribute in HTML ?
AnsAn attribute is a special word used inside tag to specify additional information to tag such as
color, alignment, etc. For example, 'bgcolor' attribute of <BODY> tag is used to set the
background colour of an HTML document.
<BODY bgcolor = "white">
Q 3 Define the tag, <HTML>.
AnsThe <HTML> tag it the root element of the html document. It identifies the document as an
HTML document. An HTML document begins with <HTML> and ends with </HTML>.
<HTML>
....HTML document lines here
</HTML>
Q 4HR tag is used for ............... .
AnsHR tag is used for horizontal rule.
Q 5<TITLE> tag is used to define ............... .
Ans<TITLE> tag is used to define title of the document.
Q 6What is the basic structure of HTML File ?
Ans Every HTML document should follow the general form given below:
<HTML>
<HEAD>
<TITLE> Title of page is written here </TITLE>
</HEAD>
<BODY>
The HTML tags that define the page are written here
</BODY>
</HTML>
The <HEAD>...</HEAD> tags make the header of the document and the <BODY>...</BODY> tags
make the body of the HTML document.
Q 7Face attribute is used with ............... tag and used for ............... .
AnsFace attribute is used with <FONT> tag and used for setting the font type of the text.
Q 8To align multiple lines of text we use ............... .
1. Justify
2. DIV
3. Align
4. None of these
AnsAlign
Q 9List the attributes of <FONT> tag.
Ans The attributes of <FONT> tag are:
1. size — sets the size of the font of text
2. face — sets the font type of the text
3. color — sets the colour of the font of text
Q 11 List and define different types of paragraph alignments.
AnsThe different types of paragraph alignments are as follows:
1. Left alignment — When the value of align attribute of <P> tag is 'left', the paragraph is
aligned to the left margin of the page.
2. Center alignment — When the value of align attribute of <P> tag is 'center', the
paragraph is aligned to the center of the page.
3. Right alignment — When the value of align attribute of <P> tag is 'right', the paragraph
is aligned to the right margin of the page.
Q 12 The value of #FFFFFF is ............... .
1. Black
2. White
3. Red
4. none of the above
AnsThe value of #FFFFFF is white.
Q 13 The value of #000000 is ............... .
1. Black
2. White
3. Red
4. none of the above
Ans The value of #000000 is black.
Q 14 <BR> tag has its closed tag as </BR>. State True or False?
AnsFalseReason — <BR> is an empty element. It does not have a closing tag </BR>.
Q15 <P> tag has no closing tag. State True or False?
AnsFalseReason — <P> is a container element. Thus, it requires a starting tag <P> and a closing
tag </P>.