HTML Quiz

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

Answer. (c)

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)

Choose the correct tag for the smallest size heading.
(a) <heading>
(b) <h6>
(c) <h1>
(d) <head>

Answer. (b)

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

Answer. (c)

Related: JavaScript quiz with answers

<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)

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)

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

Answer. (a)

The way the browser displays the object can be modified by _____
(a) attributes
(b) parameters
(c) modifiers

Answer. (a)

Related: python multiple-choice questions

Choose the correct tag for the largest heading.
(a) <H1>
(b) <H6>
(c) <H10>
(d) <HEAD>

Answer. (a)

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)

Which of the following HTML code is valid?
(a) <font colour=”red”>
(b) <font color=”red”>
(c) <red><font>

Answer. (b)

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

Answer. (b)

Related: questions and answers PowerPoint presentation

Which attribute is used to name an element uniquely?
(a) class
(b) id
(c) dot

Answer. (b)

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

Answer. (d)

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

Answer. (c)

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

Which tag will we use to create a combo box (drop-down box)?
(a) <select>
(b) <list>
(c) <input type=”dropdown”>

Answer. (a)

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

Answer. (a)

Choose the correct tag to make a text bold.
(a) <b>
(b) <bold>
(c) <bb>
(d) <bld>

Answer. (a)

When should we use the path along with a picture’s file name in the 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

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

Answer. (d)

Which of the following is not a valid alignment attribute?
(a) Left
(b) Right
(c) Top

Answer. (c)

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)

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

To create an HTML document, we require a
(a) web page editing software
(b) High powered computer
(c) even a notepad can be used

Answer. (c)

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

Answer. (c)

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

Answer. (c)

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

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

Answer. (c)

The special formatting codes in HTML documents used to present content are
(a) Tags
(b) attributes
(c) values

Answer. (a)

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

Answer. (c)

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

Answer. (b)

Related: Operating Systems quiz

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)

<SCRIPT> … </SCRIPT> tag can be placed within ____
(a) Header
(b) Body
(c) both A and B

Answer. (c)

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

Answer. (d)

<TD> … </TD> tag is used for ________
(a) Table heading
(b) Table Records
(c) Table row

Answer. (b)

Related: questions about automobiles

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

Answer. (d)

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

Answer. (b)

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 !!