HTML Formatting Tags Question Bank
- Categories Web Designing, HTML, HTML
This post contains 1 mark questions on the topic of HTML formatting tags in the form of MCQs, fill in the blanks and true or false statements. These questions are in accordance with the new revised format of 2020.
Fill in the following blanks:
- The attribute topmargin is part of ___________ tag.
Ans. BODY
- ___________ attribute of BODY tag helps to set background color.
Ans. bgcolor
- _________ tag is used to make the text bold.
Ans. <B>
- ________ attribute is used to define the thickness of horizontal rule.
Ans. size
- To display the text in italics, __________ tag is used.
Ans. <I>
- _________ tag is used to underline the text.
Ans. <U>
- Background colour is set by _________ attribute of body tag.
Ans. Background
State whether the following statements are true or false:
- There should be only one <BODY> tag in each Web page.
Ans. True
- Bgcolor is an attribute of <FONT> tag.
Ans. False
- Background attribute is used to display image.
Ans. True
- color is an attribute of <FONT> tag.
Ans. True
- There must be only one <head> tag in each web page.
Ans. True
- A HTML document contains only <HTML> tag.
Ans. True
- Topmargin is used to specify the distance between the top of the document and top of the browser window.
Ans. True
Multiple Choice Questions:
- With which HTML tag do you apply attributes that modify text size, font-face, and colour?
- <font>
- <mod>
- <f>
- <text>
Ans. 1
- Attribute for choosing type of font is
- text
- Face
- Font
- Type
Ans. 2
- Which is correct attribute to change the text colour to red?
- <BODY bgcolor=”red”>
- <BODY text=”red”>
- <BODY color=”red”>
- None of the above
Ans. 2
- What is the correct HTML statement for adding a background color?
- <body background = “ red”>
- <background>red</background>
- <body bgcolor = “red”>
- None of the above
Ans. 1
- In which HTML element do you apply attributes that modify the background image?
- The <html> element
- The <head> element
- The <background> element
- The <body> element
Ans. 4
- Background attribute of <BODY> is used to
- give background color to web page
- load an image and use it as a background for webpage.
- insert an image within web page.
- none of these.
Ans. 2
- Which HTML tag would you apply the bgcolor attribute to in order to change the background color of the web page?
- <html>
- <head>
- <body>
- <style>
Ans. 3
- Which attribute is not supported by a <BODY> tag?
- bgcolor
- size
- text
- link
Ans. 2
- What will happen if the background image is smaller than the browser’s window?
- It will leave a blank space at the bottom of your page
- It will be repeated
- It will be stretched
- It will not be displayed
Ans. 2
- Why should you specify a background color, if you are using an image for the actual background of your page?
- So the text shows up better
- The background color will be shown until the image loads
- In case the image does not fit right
- None of the above
Ans.2
- Which attribute of <BODY> tag specifies the color of visited links in a document?
- vlink
- alink
- link
- None of these
Ans. 1
- To specify the background image for the document, Background attribute is used with which of the following tags?
- < BODY>
- <HTML>
- <HEAD>
- None of these
Ans. 1
- Every HTML document must include the tags __________.
- <html> </html>&<body> </body>
- <body> </body> & at least one <p>
- <html> </html> & <head> </head>
- <p> </p>
Ans.1
- What HTML container tags do you apply to text to format the text as a paragraph?
- <para></para>
- <text></text>
- <p></p>
- <format style = “para></format>
Ans. 2
- The page title is inside the __________ tag.
- Body
- Head
- paragraph
- Table
Ans. 2
- In a Web page, you can place
- 2 levels of headings
- 6 levels of headings
- 4 levels of headings
- 8 levels of headings
Ans. 2
- Which of the following will give smallest size of the text?
- <H3>
- <H6>
- <H2>
- <H4>
Ans. 2
- The default alignment for paragraph is
- left
- right
- center
- justified
Ans. 1
- Which of the following HTML container tags do you apply to text for formatting the text as a paragraph?
- <PARAGRAPH> </PARAGRAPH>
- <PARA> </PARA>
- <P></P>
- None of the above
Ans.3
- The style element is used for setting
- font, color and alignment
- font, color, alignment and border
- color, alignment and border
- None of the above
Ans. 2
- A coded HTML command that indicates how part of a web page is displayed is called__________.
- Attribute
- Tag
- Style
- All of these
Ans.2
- To define the basic font size, which of the following tag is used?
- SIZE
- BASEFONT
- FONT
- All of these
Ans.2
- How can you make a text appear bold?
- <b> text</b>
- <strong> text</strong>
- both (a) and (b)
- None of the above
Ans. 3
- Choose the correct HTML tag to make a text italic
- <italic>
- <i>
- None of these
- all of these
Ans. 2
- The attribute used to choose the type of font in HTML is
- Character
- Face
- Text-type
- Font-type
Ans. 2
- In which section of an HTML document do you enter the <P> element?
- Body
- Head
- CSS
- Footer
Ans.1
- Which of the following is the proper syntax to start an HTML comment?
- <!- –
- <!>
- <<>>
- <//>
Ans. 2
- Which one is correct?
- <b>Click Here<b>
- <strong>Click Here<strong>
- <b>Click Here</b>
- </strong>Click Here</strong>
Ans. 3
- Choose the correct HTML tag to make the text bold?
- <B>
- <STRONG>
- Both (a) & (b)
- None of the above
Ans. 3