HTML Quiz

multiple choice quiz on HTML code:

Question: What should be the first tag in any HTML document?
(a) <head>
(b) <title>
(c) <html>
(d) <document>

Answer. (c)

Question: In HTML documents the tags
(a) Should be written in uppercase
(b) should be written in lowercase
(c) should be written in the proper case
(d) can be written in both uppercase and lowercase

Answer. (d)

Question: Choose the correct HTML tag for the smallest size heading?
(a) <heading>
(b) <h6>
(c) <h1>
(d) <head>

Answer. (b)

Question: There are ____ different heading tags in HTML
(a) 4
(b) 5
(c) 6
(d) 7

Answer. (c)

Related: JavaScript quiz with answers

Question: <b> tag makes the enclosed text bold. What is another tag to make text bold?
(a) <strong>
(b) <dar>
(c) <black>
(d) <emp>

Answer. (a)

Question: Which of the following is not a style tag?
(a) <b>
(b) <tt>
(c) <i>
(d) All of the above are style tags

Answer. (d)

Question: What is the correct HTML tag for inserting a line break?
(a) <br>
(b) <lb>
(c) <break>
(d) <newline>

Answer. (a)

Question: The way the browser displays the object can be modified by _____
(a) attributes
(b) parameters
(c) modifiers
(d) None of the above

Answer. (a)

Related: python multiple choice questions

Question: Choose the correct HTML tag for the largest heading?
(a) <H1>
(b) <H6>
(c) <H10>
(d) <HEAD>

Answer. (a)

Question: How can we make an e-mail link?
(a) <a href=”aaa@domain”>
(b) <mail href=”aaa@domain”>
(c) <mail>aaa@domain</mail>
(d) <a href=”mailto:aaa@domain”>

Answer. (d)

Question: Which of the following HTML code is valid?
(a) <font colour=”red”>
(b) <font color=”red”>
(c) <red><font>
(d) All of the above are style tags

Answer. (b)

Question: HTTP
(a) Hypermedia text transfer protocol
(b) Hypertext Transfer protocol
(c) HTML testing programme
(d) None of the above

Answer. (b)

Related: questions and answers Powerpoint presentation

Question: Which attribute is used to name an element uniquely?
(a) class
(b) id
(c) dot
(d) all of the above

Answer. (b)

Question: Which of the following is an attribute related to font tag?
(a) size
(b) face
(c) color
(d) All of the above are style tags.

Answer. (d)

Question: What tag is used to display a picture on a webpage?
(a) picture
(b) image
(c) img
(d) src

Answer. (c)

Question: HTML supports
(a) ordered lists
(b) unordered lists
(c) both types of lists
(d) does not support those types

Answer. (c)

Related: basic computer quiz

Question: To create a combo box (drop down box) which tag will we use?
(a) <select>
(b) <list>
(c) <input type=”dropdown”>
(d) all of the above

Answer. (a)

Question: What tag is used to list individual items of an ordered list?
(a) LI
(b) OL
(c) UL
(d) None of above

Answer. (a)

Question: Choose the correct HTML tag to make a text bold?
(a) <b>
(b) <bold>
(c) <bb>
(d) <bld>

Answer. (a)

Question: When should we use the path along with the file name of a picture in IMG tag?
(a) The path is optional and not necessary.
(b) when the location of the image file and html file are different
(c) when an image file and html file are both in the same location
(d) a path is always necessary when inserting an image

Answer. (b)

Related: computer hardware quiz questions

Question: Which of the following is not a pair tag?
(a) <p>
(b) < u >
(c) <i>
(d) <img>

Answer. (d)

Question: Which of the following is not a valid alignment attribute?
(a) Left
(b) Right
(c) Top
(d) All of the above

Answer. (c)

Question: Which tag allows us to add a row to a table?
(a) <td> and </td>
(b) <cr> and </cr>
(c) <th> and </th>
(d) <tr> and </tr>

Answer. (d)

Question: Which attribute is used with the img tag to add a text description, if the image cannot be displayed?
(a) description
(b) name
(c) alt
(d) id

Answer. (c)

Related: database quiz

Question: To create an HTML document we require a
(a) web page editing software
(b) High powered computer
(c) even a notepad can be used
(d) None of the above

Answer. (c)

Question: A webpage displays a picture. What tag was used to display that picture?
(a) picture
(b) mage
(c) img
(d) src

Answer. (c)

Question: How can we make a bulleted list?
(a) <list>
(b) <nl>
(c) <ul>
(d) <ol>

Answer. (c)

Question: Which tag allows you to add a row to a table?
(a) <td> and </td>
(b) <cr> and </cr>
(c) <th> and </th>
(d) <tr> and </tr>

Answer. (d)

Related: cyber security quiz questions and answers

Question: Which of the following is an attribute of <Table> tag?
(a) SRC
(b) LINK
(c) CELLPADDING
(d) BOLD

Answer. (c)

Question: The special formatting codes in HTML documents used to present content are
(a) tags
(b) attributes
(c) values
(d) None of the above

Answer. (a)

Question: HTML documents start and end with which tag pairs?
(a) <HEAD>….</HEAD>
(b) <BODY>….</BODY>
(c) <HTML>….</HTML>
(d) <WEB>….</WEB>

Answer. (c)

Question: How can we make a numbered list?
(a) <dl>
(b) <ol>
(c) <list>
(d) <ul>

Answer. (b)

Related: operating systems quiz

Question: What is the correct syntax in HTML for creating a link on a webpage?
(a) <LINK SRC= “services.html”>
(b) <BODY LINK = “services.html”>
(c) <A SRC = “services.html” >
(d) < A HREF = “services.html”>

Answer. (d)

Question: <SCRIPT> … </SCRIPT> tag can be placed within ____
(a) Header
(b) Body
(c) both A and B
(d) none of the above

Answer. (c)

Question: Some tags enclose the text. Those tags are known as
(a) Couple tags
(b) Single tags
(c) Double tags
(d) Pair tags

Answer. (d)

Question: <TD> … </TD> tag is used for ________
(a) Table heading
(b) Table Records
(c) Table row
(d) none of the above

Answer. (b)

Related: questions about automobiles

Question: Choose the correct HTML tag to make the text italic
(a) <ii>
(b) <italics>
(c) <italic>
(d) <i>

Answer. (d)

Question: The _____ character tells browsers to stop tagging the text
(a) ?
(b) /
(c) >
(d) %

Answer. (b)

Question: using <P> tag will
(a) Start a new paragraph
(b) break the line
(c) end the current paragraph
(d) none of the above

Answer. (a)

About the author

Deepika

Deepika is a computer teacher who has been teaching computers to school and college kids for several years. In addition to her teaching duties, Deepika shares her knowledge of computers through her quizzes.

error: Content is protected !!