Explore topic-wise MCQs in Html.

This section includes 571 Mcqs, each offering curated multiple-choice questions to sharpen your Html knowledge and support exam preparation. Choose a topic below to get started.

301.

The _____ character tells browsers to stop tagging the text

A. ?
B. /
C. >
D. %
Answer» C. >
302.

To create HTML document you require a

A. web page editing software
B. High powered computer
C. Just a notepad can be used
D. None of above
Answer» D. None of above
303.

Which of the following is not a pair tag?

A. <p>
B. < u >
C. <i>
D. <img>
Answer» E.
304.

Which tag creates a check box for a form in HTML?

A. <checkbox>
B. <input type=”checkbox”>
C. <input=checkbox>
D. <input checkbox>
Answer» C. <input=checkbox>
305.

Which attribute is used to name an element uniquely?

A. class
B. id
C. dot
D. all of above
Answer» C. dot
306.

To create a combo box (drop down box) which tag will you use ?

A. <select>
B. <list>
C. <input type=”dropdown”>
D. all of above
Answer» B. <list>
307.

What is the correct HTML for adding a background color?

A. <body color=”yellow”>
B. <body bgcolor=”yellow”>
C. <background>yellow</background>
D. <body background=”yellow”>
Answer» C. <background>yellow</background>
308.

Choose the correct HTML tag to make a text bold?

A. <b>
B. <bold>
C. <bb>
D. <bld>
Answer» B. <bold>
309.

How can you make an e-mail link?

A. <a href=”[email protected]”>
B. <mail href=”[email protected]”>
C. <mail>[email protected]
D. <a href=”mailto:[email protected]”>
Answer» E.
310.

Choose the correct HTML tag to make a text italic

A. <ii>
B. <italics>
C. <italic>
D. <i>
Answer» E.
311.

What is the correct HTML for making a hyperlink?

A. <a href=”http:// study2online.com”>HTML MCQ Quiz</a>
B. <a name=”http://study2online.com”>HTML MCQ Quiz</a>
C. <http://study2online.com</a>
D. <a url=”http://study2online.com”>HTML MCQ Quiz</a>
Answer» B. <a name=”http://study2online.com”>HTML MCQ Quiz</a>
312.

How can you make a numbered list?

A. <dl>
B. <ol>
C. <list>
D. <ul>
Answer» C. <list>
313.

Which tag allows you to add a row in a table?

A. <td> and </td>
B. <cr> and </cr>
C. <th> and </th>
D. <tr> and </tr>
Answer» E.
314.

What should be the first tag in any HTML document?

A. <head>
B. <title>
C. <html>
D. <document>
Answer» D. <document>
315.

Which tag inserts a line horizontally on your web page?

A. <hr>
B. <line>
C. <line direction=”horizontal”>
D. <tr>
Answer» B. <line>
316.

Tags and test that are not directly displayed on the page are written in _____ section.

A. <html>
B. <head>
C. <title>
D. <body>
Answer» C. <title>
317.

A webpage displays a picture. What tag was used to display that picture?

A. picture
B. image
C. img
D. src
Answer» D. src
318.

HTML document contain 1 root tag called __________.

A. HTML
B. BODY
C. TITLE
D. HEAD
Answer» B. BODY
319.

The year in which HTML was first proposed _______.

A. 1990
B. 1980
C. 2000
D. 1995
Answer» B. 1980
320.

Which of the following property allows long text, such as a URL, to be broken if it would otherwise over?

A. text-transform
B. word-wrap
C. text-overflow
D. text-indent
Answer» C. text-overflow
321.

Opening Tag of HTML Tag is called as __________.

A. Ending Tag
B. Closed Tag
C. Starting Tag
D. Forward Tag
Answer» D. Forward Tag
322.

HTML tags are surrounded by __________ brackets.

A. Square
B. Round
C. Angle
D. Curly
Answer» D. Curly
323.

In HTML5 how many new semantic elements were introduced?

A. 4
B. 5
C. 6
D. 8
Answer» E.
324.

In 1989 Tim Berners-Lee invented WWW and in 1991 he invented?

A. Microsoft
B. Linux
C. HTML
D. XML
Answer» D. XML
325.

and tags in HTML document are used for?

A. Big and small text
B. Bold and small text
C. Bold and italic text
D. None
Answer» D. None
326.

Which tag we can use for adding an emphasized text in web document?

A. <emphasized> </emphasized>
B. <emp> </emp>
C. <em> </em>
D. <mark> </mark>
Answer» D. <mark> </mark>
327.

Why tag is used in HTML page?

A. For creating table
B. For thematic break
C. For heading
D. None
Answer» C. For heading
328.

To specify a hint that describes expected value of an input field which attribute is used?

A. Autofocus
B. Hint
C. Text hint
D. Placeholder
Answer» E.
329.

In image tag " alt " attribute specifies what?

A. Alternative text
B. Alternative image
C. Link of image
D. None
Answer» B. Alternative image
330.

Choose correct HTML statement for adding a background color

A. <body bgcolor="yellow">
B. <body style="background-color : yellow;">
C. <body color="#yellow">
D. Both A and B
Answer» E.
331.

Which tag is used for creating a horizontal line to break up section in web document?

A. <line>
B. <horizontal>
C. <hl>
D. <hr>
Answer» E.
332.

For smallest size headings which tag you most prefer to use

A. <headings>
B. <h1>
C. <h4>
D. <h6>
Answer» E.
333.

How invented WWW?

A. Tim Berners Lee
B. Dava Raggett
C. Bill Gates
D. Linus Torvalds
Answer» B. Dava Raggett
334.

This Your text tag is used to define a

A. Link
B. Class
C. CSS sheet
D. Both A and B
Answer» B. Class
335.

Canvas draws 2D graphics, on fly whereas SVG draws 2D graphics on

A. XML
B. XHTML
C. Screen
D. None
Answer» B. XHTML
336.

For converting Non-ASCII characters into format that can be transmitted over Internet is called?

A. Unicoding scheme
B. URL Encoding scheme
C. URL Multicoding scheme
D. None
Answer» C. URL Multicoding scheme
337.

Which one is resolution independent?

A. SVG
B. Canvas
C. Google Maps
D. Bitmap Graphics
Answer» B. Canvas
338.

In HTML tables table data or cell is defined by

A. <th> tag
B. <tr> tag
C. <td> tag
D. <t data>
Answer» D. <t data>
339.

Mailto tag is used for

A. Image
B. Email
C. Facebook
D. Twitter
Answer» C. Facebook
340.

Which tag provides data about page expiry, page author, list of keywords, page description etc.

A. <Head>
B. <Document type>
C. <Title>
D. <Meta>
Answer» E.
341.

HTML5.1 was released in

A. 2010
B. 2012
C. 2014
D. 2016
Answer» E.
342.

Which tag is used for bigger headings in HTML document?

A. <h>
B. <h1>
C. <h4>
D. <h6>
Answer» C. <h4>
343.

HTML only uses

A. Pre-specified tags
B. User- defined tags
C. Fixed tags defined by language
D. All of above
Answer» D. All of above
344.

element in HTML forms is used for

A. Group of related data
B. Group of irrelevant data
C. Text field
D. None
Answer» B. Group of irrelevant data
345.

"src" attribute for an image specifies what?

A. Text for image
B. Url for an image
C. Alternate image
D. Both A and B
Answer» C. Alternate image
346.

HTML documents transmitted from web servers to web browsers using

A. FTP
B. HTTP
C. XML
D. All of above
Answer» C. XML
347.

defines a

A. link to reset all form values
B. Reset button
C. Reset field
D. Reset radio button
Answer» C. Reset field
348.

element is a container for?

A. HTML documents
B. HTML head tags
C. Metadata
D. None
Answer» D. None
349.

To display many types of map e.g. ROADMAP, SATELLITE, HYBRID, and TERRAIN which property of googlemap is used?

A. MapOptions
B. MapTypeId
C. TypeOfMap
D. None
Answer» C. TypeOfMap
350.

For specifying height and width of an image which attribute is used in image tag?

A. alt attribute
B. Height and width attribute
C. Style tag
D. Both A and C
Answer» D. Both A and C