HTML: Question Bank
- Categories Web Designing, HTML, HTML
This post contains 1 mark questions on the topic of HTML, including head section, lists, special characters and unclosed 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.
HTML Introduction
Fill in the blanks:
- HTML is a subset of __________ .
Ans. SGML
- The tag that requires a opening as well as closing tag is called __________ .
Ans. container tag
- <BR> tag is an ___________ element tag.
Ans. empty
- The textual content that appears in the source HTML document but is not rendered by the browser is called ___________.
Ans. Comment
- An element that only has a starting tag and no ending tag is __________ element.
Ans. empty
Multiple Choice Questions:
- HTML is a
- scripting language
- software
- markup language
- All of the above
Ans. 3
- The value of #FFFFFF is
- Black
- White
- 32567
- none of the above
Ans. 2
- Which is the following is a text editor?
- Notepad++
- MS-word
- Both a and b
- None of the above
Ans. 1
- The value of #000000 is
- Black
- White
- 32567
- none of the above
Ans. 1
- A tag is
- HTML command
- HTML Header
- HTML statement
- None of these
Ans. 1
- A software used to open web pages on the internet is called a
- Website
- Portal
- Browser
- phone
Ans. 3
- What is the full form of DTD?
- Document To Document
- Dynamic Type Definition
- Document Type Definition
- Direct Type Definition
Ans. 3
- HTML is acronym for
- Hyper Text Marker Language
- Hyper Tag Markup Language
- Hyper Text Markup Language
- Hyper Transfer Markup Language
Ans. 3
- HTML tags are enclosed in
- curly brackets
- square brackets
- double quotes
- angular brackets
Ans. 4
- Which sequence of HTML tags is correct?
- <html><head></head><body></body></html>
- <html><head><body></body></head></html>
- <html><head></body></body></head></html>
- <html><<head></head></body></body></html>
Ans. 1
- Advantage of using HTML is that __________.
- It is easier to use
- all browsers can display the document
- It works on all platform
- All of the above
Ans. 4
- Which of the following is not a container element?
- P
- B
- OL
- HR
Ans. 4
- Which of the following tag identifies the document as an HTML document?
- <HTML>
- <HEAD>
- <BODY>
- <TAG>
Ans. 1
- Container elements in HTML require
- starting tag
- ending tag
- starting and ending tags
- None of the above
Ans. 3
- HTML tags are
- in uppercase
- case sensitive
- in lowercase
- not case sensitive
Ans. 4
- Which types of tags are used by HTML?
- tags only for hypertext
- user defined tags
- tags only for linking
- fixed tags defined by the language
Ans. 4
- The tags that require a starting as well as ending tag are called ___________.
- Pair element
- Twin Element
- Container Element
- Empty Element
Ans. 3
- You write HTML code in
- Browser
- word
- Notepad
- None of these
Ans. 3
- An example of HTML editor is
- Notepad
- Dreamweaver
- Microsoft Visual Studio
- All of these
Ans. 4
- To create an HTML page, you need
- text editor
- Web browser
- Both (a) and (b)
- None of these
Ans. 3
State whether the following statements are true or false:
- HTML is a case sensitive Web language.
Ans. False
- HTML is a programming language
Ans. False
- <Head> tag is used to define meta data
Ans. True
- <TITLE> tag is used in the HEAD section of HTML document.
Ans. True
HTML List Tags
Fill in the blanks:
- The unordered list starts with __________ tag.
Ans. <UL>
- _________ tag creates a bulleted list.
Ans. <UL>
- _________value of type attribute displays a hollow circle for an unordered lists.
Ans. Circle
Multiple Choice Questions:
- Which of the following is not HTML list?
- Ordered
- Unordered
- Definition
- Dynamic
Ans. 4
- Which of the following tag is used to make a list that lists the items with numbers?
- <DL>
- <UL>
- <OL>
- None of these
Ans. 3
- In an unordered list, it is necessary to enclose each item in
- <LI> tag
- <UL> tag
- <I> tag
- <OL> tag
Ans. 1
- Which option do you have while making bulleted lists?
- Disc, circle, square
- Square, polygon
- Disc, circle, rectangle
- Disc, oval, polygon
Ans. 1
- Which one of the following list type that will create a bulleted list?
- Unordered
- Ordered
- Definition
- All of these
Ans. 1
- Which of the following will produce a solid circle bullet when given as value of type with <UL>?
- Circle
- Disc
- Square
- Rectangle
Ans. 2
- To create a square bulleted list, use
- <UL type=”circle”>
- <OL type= “square”>
- <ULtype=”square”>
- <UL start= “square”>
Ans. 3
- In an ordered list, each item cannot be preceded with
- Alphabets
- Arabic numbers
- Roman numerals
- Bullets
Ans. 4
- To create a numbered list with A, B,__ use
- <OL type=”A”>
- <OL start=”A”>
- <OL begin=”A”>
- <OL starts=“a”>
Ans. 1
- To start a list with number 3, we should write
- <OL start=”3″>
- <OL type=”3″>
- <OL value=”3″>
- Any of these
Ans. 1
- To start a list using circles, use
- <UL type=”round”>
- <OL start=”l”>
- <UL =”circle”>
- <UL type =”circle”>
Ans. 4
- To start a numbered list with regular numerals, use
- <OL type=”A”>
- <OL>
- <OL type=”r”>
- <OL type=”u”>
Ans. 2
- If you want to make a list of items in the form of terms and their descriptions, then you can create a _________ list.
- ordered
- unordered
- definition
- nested
Ans. 3
- In <OL> and <UL>, the style of bullet or number is defined by
- type attribute
- style attribute
- start attribute
- None of the above
Ans. 1
- Which of the following will produce a solid circle bullet when given as value of type with <UL>?
- disc
- circle
- square
- none of these
Ans. 1
HTML Special Characters
Multiple Choice Questions:
- The html code to show raise to the power of is
- sub
- sup
- raise
- power
Ans. 2
- The html code to show degrees in temperature is
- sub
- sup
- raise
- power
Ans. 2
Fill in the following blanks:
- To display an & on the web page, __________ is used in the source HTML code.
Ans. &
- ________ tag is used to create subscripts on a Web page.
Ans. <sub>
HTML Head Section
Multiple Choice Questions:
- Tags and text that do not display directly on the page are placed in
- comments
- head
- both of the above
- none of the above
Ans. 3
- A Web page normally consists of
- head and body
- html and body
- html and head
- Title and Body
Ans. 1
- Where do you place the <TITLE> tag in a HTML?
- BODY
- HEAD
- ELEMENT
- TITLE
State whether the following is true or false
- Extension of an any SGML file is .html.
Ans. False
Fill in the blank:
- The _________ tag is used to define basic font size for the HTML page.
Ans. <BASEFONT>
Unclosed HTML Tags
Multiple Choice Question:
- Which one of the following is the HTML tag used to insert a horizontal rule?
- <hr>
- <hb>
- <rule>
- <br>
Ans. 1
State whether the following statements are true or false:
- <BR> tag has its closed tag as </BR>
Ans. False
- <P> tag has no closing tag
Ans. False
- < HR> tag is same as <BR>
Ans. False
- <tab> tag is used to display tables
Ans. False
- Line breaks are given through <BR>
Ans. True
Fill in the following blanks:
- _________ tag is used to bring the text to new line.
Ans. <BR>
- HR tag is used for _________
Ans. horizontal line
- _________ attribute of <HR> tag specifies the width of a horizontal line.
Ans. width
- noshade is an attribute of _________ tag.
Ans. <HR>
- By default <HR> produces a __________ rule.
Ans. 3D
- Comments are enclosed in __________ and _________ tags
Ans. <!–, –>
HTML Link Tags
Fill in the blanks:
- _________ is a word or image that when clicked take us to another Web page.
Ans. Hyperlink
- __________ tag is used to connect Web pages.
Ans. <a>
- __________ are used to connect Web pages. They are created with <a> tag.
Ans. Hyperlinks
- The _________attribute is used for specifying the URL of the anchor tag.
Ans. href
- An _________ link allows a link to another Web page or another Website.
Ans. external
- The _________ attribute of <a> tag is used to provide information or a title for the linked document or Web page.
Ans. title
- A link allows a link to another section on the same or different Web page.
Ans. internal
- A visited link on a Website is generally underlined and __________ in color.
Ans. purple
- The default color of alink attribute is __________ .
Ans. red
- __________ is used to change the colour of a visited link.
Ans. link
- __________ Attribute is used with <A>tag to specify the URL of link
Ans. HREF
- An __________ link allowed a; link to another section on the same webpage
Ans. Internal
- The default colour of a hyperlink on a webpage is __________
Ans. Blue
- The attribute ___________ is used for specifying the URL of the anchor tag
Ans. HREF
Multiple Choice Questions:
- The <a> tag is
- a container tag
- an empty tag
- a closing tag
- None of these
Ans. 1
- _________ is the default color of a hyperlink.
- Red
- Blue
- Green
- Black
Ans. 2
- The tag used in HTML to link a Web page with other Web page is
- <a>
- <h>
- <u>
- <l>
Ans. 1
- Which tag tells, where a link starts?
- <1>
- <start>
- <a>
- None of these
Ans. 3
- Which command should be use to link a page with HTML page?
- <a link = “page.htm”> </a>
- <a href = “page.htm”>page</a>
- <a connect = “page.htm”></a>
- <a attach = “page.htm”></a>
Ans. 2
- With which code you .can make an image works as link?
- <a href = “URL”>Text</a>
- <a href=”ABC.html”><img src =”graphic.gif”>Click Here</a>
- <a ref=mailto:<img src = graphic.gif>Click Here</a>
- None of the above
Ans. 2
- To create a hyperlinked image
- the image tag should be within anchor tag
- the anchor tag should be within image tag
- the image tag should be before the anchor tag
- the image tag should be after the anchor tag
Ans. 1
- For internal linking, the section names are provided by attribute of <a> tag.
- title
- href
- name
- None of these
Ans. 3
- Is it possible to link within the current page?
- No
- Only in framesets
- Yes
- None of these
Ans. 3
- __________ attribute of the <a> tag is used to name a section in a Web page to create an internal link.
- href
- name
- align
- link
Ans. 2
- __________ attribute is used to set the color of a link while it is active.
- vlink
- alink
- Both (a) and (b)
- None of these
Ans. 2
- What is the correct syntax in HTML for creating a link on a webpage?
- <LINK SRC = “ABC .HTML”>
- <BODY LINK = “ABC HTML “>
- A SRC = “ABC HTML”>
- <HREF = “ABC. HTML”>
Ans. 4
- Choose the correct HTML code to create an email link?
- <A HREF = xx@yy.com> </A>
- <A HRFF= maitro:xx @yy.com”></A>
- <A MAILHREF = xx@yy .com></A>
Ans. 2
State whether the following statements are true or false:
- Border is an attribute of <a> tag.
Ans. False
- The <a> tag is called the align tag.
Ans. False
- The anchor tag <a> signals the beginning of the text.
Ans. False
- The color of the hyperlinks in an HTML document can be changed.
Ans. True
- Hyperlinks can also be created for links within the same document. Linking within the same document is called external linking.
Ans. False
- It is not possible to create link within current document.
Ans. False
- The name attribute of the <a> tag allows the user to create links within the same document.
Ans. True
- Target attribute with <A> tag is used to open a link in anew window.
Ans. True