Explore topic-wise MCQs in Html.

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

1.

The HTML tag is used to

A. Draw graphics on the fly via scripting
B. Create frames on the fly via scripting
C. Draw graphics on the basis of HTML code
D. Create forms for input user information
Answer» B. Create frames on the fly via scripting
2.

Which of the following is the correct HTML tag to make a text italic?

A. <i>
B. <il>
C. <itl>
D. <italic>
Answer» B. <il>
3.

The

A. A set of graphics
B. A set of websites
C. A set of navigation pages
D. A set of navigation links
Answer» E.
4.

The HTML
element is a

A. Inline element
B. Outline element
C. Block level element
D. None
Answer» D. None
5.

Which of the following is the correct HTML tag to comment in HTML?

A. <!/ and //>
B. <!– and –>
C. <!# and ##>
D. <!% and %%>
Answer» C. <!# and ##>
6.

What are the two required attributes of HTML tag?

A. src and alt
B. alt and mark
C. canvas and src
D. caption and src
Answer» B. alt and mark
7.

The uses of tag is

A. to display movies in the page.
B. to highlight parts of the text.
C. to underline parts of the text.
D. to display graphics in the page.
Answer» C. to underline parts of the text.
8.

Which of the following defines a command/menu item that the user can invoke from a popup menu?

A. <menuitem>
B. <menu>
C. <nav>
D. <class>
Answer» B. <menu>
9.

Which of the followings is true regarding the

tag?
A. It defines a caption for table.
B. It can specify only one caption per table.
C. It must be inserted immediately after the <table>tag.
D. All of above
Answer» E.
10.

Which of the following defines additional details that the user can view or hide?

A. <details>
B. <article>
C. <aside>
D. <figure>
Answer» B. <article>
11.

Which of the following defines a caption for a figure element?

A. <figcaption>
B. <dialog>
C. <caption>
D. <figure>
Answer» B. <dialog>
12.

Which works similar to element?

A. <strong>
B. <em>
C. <b>
D. <blockquote>
Answer» C. <b>
13.

Which of the following defines a visible heading for a details element?

A. <brief>
B. <summary>
C. <mark>
D. <main>
Answer» C. <mark>
14.

Which of the following is the most commnly used HTTP methods?

A. PRE and POST
B. GET and SET
C. ASK and REPLY
D. GET and POST
Answer» E.
15.

Which of the following defines a part of text that might be formatted in a different direction from other text?

A. <details>
B. <aside>
C. <bdi>
D. <article>
Answer» D. <article>
16.

Which of the following is correct to set "Black" color as Background of page?

A. bgcolor = "#000000">
B. <body background = "#000000">
C. <body Background color = "#000000">
D. All of Above
Answer» B. <body background = "#000000">
17.

Which of the following is correct commenting form in HTML?

A. <–  and  –>
B. <!–  and  –>
C. <–  and  –!>
D. <–!  and  –>
Answer» C. <–  and  –!>
18.

Which of the following tag defines the progress of a task?

A. <meter>
B. <progress>
C. <gauge>
D. <wbr>
Answer» C. <gauge>
19.

_____________ should include data of two types; the first should be the URL using the type text/uri-list, and the second is the URL using the text/plain type.

A. Dragging HTML and XML
B. Dragging Text
C. Dragging Files
D. Dragging Links
Answer» E.
20.

A/An _________ is essentially a macro that allows a short name to be associated with replacement text.

A. Entity
B. Attribute
C. Comment
D. None of the mentioned
Answer» B. Attribute
21.

The use of tag is

A. It displays server information
B. It puts a server plugin in the page
C. It puts a browser plugin in the page
D. It displays sounds and movies in the page
Answer» D. It displays sounds and movies in the page
22.

tag must be within ________

A. Title
B. Form
C. Header
D. Body
Answer» D. Body
23.

In HTML an iframe is used to

A. Display a link within a link
B. Display a Table within a Table
C. Display a Picture within a Picture
D. Display a web page within a web page
Answer» E.
24.

What is the use of alt attribute in HTML?

A. alt attribute specifies an alternate text for an image
B. alt attribute specifies an alternate link for an image
C. alt attribute specifies an alternate image for an image
D. alt attribute specifies an alternate source for an image
Answer» B. alt attribute specifies an alternate link for an image
25.

What is empty elements in HTML?

A. An elements with no tag
B. An elements with no type
C. An elements with no content
D. An elements with no comment
Answer» D. An elements with no comment
26.

Which of the following is correct character entities for "Copyright" symbol?

A. &#149;
B. &#159;
C. &#169;
D. &#179;
Answer» D. &#179;
27.

In HTML how many headings are defined?

A. <h1> to <h4>
B. <h1> to <h5>
C. <h1> to <h6>
D. <h1> to <h9>
Answer» D. <h1> to <h9>
28.

Which of the following defines some content aside from the content it is placed in (like a sidebar)?

A. <aside>
B. <header>
C. <sidebar>
D. <nav>
Answer» B. <header>
29.

What does the DOCTYPE declaration defines in HTML?

A. it defines the document Property
B. it defines the document Type
C. it defines the document Size
D. it defines the document Style
Answer» C. it defines the document Size
30.

The most common HTML lists are

A. Ordered lists
B. Unordered lists
C. Random lists
D. Only a and b
Answer» E.
31.

Which of the following defines the result of a calculation?

A. <output>
B. <keygen>
C. <datalist>
D. <datalist>
Answer» B. <keygen>
32.

What is Cell Padding in HTML?

A. It specifies the space between the cell content and its borders.
B. It specifies the space between the cell content and its headings.
C. It specifies the space between the cell content and its formatting.
D. It specifies the space between the cell content and its descriptions.
Answer» B. It specifies the space between the cell content and its headings.
33.

Which of the following is not the property of ‘cords’ object?

A. Accuracy
B. Altitude
C. AltitudeAccuracy
D. enableHighAccuracy
Answer» E.
34.

_____________ and elements in a document may be dragged using the application/x-moz-node type.

A. Dragging HTML and XML
B. Dragging Text
C. Dragging Nodes
D. None of the mentioned
Answer» D. None of the mentioned
35.

Which of the following defines graphic drawing using JavaScript?

A. <class>
B. <canvas>
C. <graphics>
D. <draw>
Answer» C. <graphics>
36.

Which is not the case of invoking for error callback function?

A. user denies to share the information of a location
B. location information is unavailable
C. request timed out
D. when we are using WIFI
Answer» E.
37.

Which of the following property does not has always a return?

A. coords.longitude
B. coords.latitude
C. coords.accuracy
D. coords.altitude
Answer» E.
38.

What is the default value of timeout?

A. infinity
B. 100
C. 0
D. 1000000
Answer» B. 100
39.

HTML block-level elements always starts on a

A. New line
B. Same line
C. New block
D. None
Answer» B. Same line
40.

This tag is used for?

A. Adding line break
B. Adding paragraph break
C. Adding Table
D. Adding Comment
Answer» E.
41.

Which method is used to get user’s position?

A. getCurrentPosition()
B. getDirectPosition()
C. post()
D. getDirection
Answer» B. getDirectPosition()
42.

Which property is like the GPS in car?

A. watchPosition()
B. clearWatch()
C. getCurrentPosition()
D. showPosition()
Answer» B. clearWatch()
43.

The element is a container for _______

A. Links
B. Webpages
C. Metadata
D. Pictures
Answer» D. Pictures
44.

A model group contains the names of the elements that a tag may enclose.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
45.

Which of the following elements in HTML5 defines video or movie content?

A. <media>
B. <video>
C. <movie>
D. <audio>
Answer» C. <movie>
46.

A listener for the dragenter and dragover events are used to indicate valid drop targets, that is, places where dragged items may be dropped.

A. True
B. False
C. May be
D. Can't say
Answer» B. False
47.

How element works?

A. override text direction
B. stops writing in the current text direction
C. only override direction of rtl text
D. only changes the direction of ltr text
Answer» B. stops writing in the current text direction
48.

Which element is used to show inserted element?

A. <ins>
B. <del>
C. <strong>
D. <em>
Answer» B. <del>
49.

To show deleted text, which element is used?

A. <ins>
B. <del>
C. <em>
D. <strong>
Answer» C. <em>
50.

What is the work of
element?

A. contains contact details for author
B. contains IP address
C. contains home address
D. contains url
Answer» B. contains IP address