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.

251.

The __________ property specifies the type of positioning method used for an element.

A. align
B. float
C. position
D. padding
Answer» D. padding
252.

Which of the following specifies the distance between the borders of adjacent cells?

A. border-spacing-cell
B. border-width-spacing
C. border-spacing
D. cell-spacing
Answer» D. cell-spacing
253.

Choose the option that correctly specifies the output of the following CSS. span { border: 1px solid red; outline: green dotted thick; }

A. All span elements will have a red border and a green dotted outline
B. All span elements will have a green thick border and a red outline
C. All span elements will have an outer red border and inner green dotted border
D. All span elements will have a outer green dotted border and an inner red border
Answer» E.
254.

Which of the following property defines the border-width, border-style and border-color of an element’s top border in a single declaration?

A. border
B. border-top
C. border-top-corner
D. border-top-style
Answer» C. border-top-corner
255.

Which of the following Selector same as :firstline; changed under CSS3 to make pseudoelements obvious?

A. :first-letter
B. :last-child
C. :first-line
D. ::first-line
Answer» E.
256.

Which of the following Selector selects an element if it’s the only child of its parent with its type?

A. @media
B. :target
C. ::selection
D. :only-of-type
Answer» E.
257.

HTML stands for?

A. Hyper Text Markup Language
B. High Text Markup Language
C. Hyper Tabular Markup Language
D. None of these
Answer» B. High Text Markup Language
258.

A. Active Tag
B. Action Tag
C. Anchor Tag
D. Additional Tag
Answer» D. Additional Tag
259.

Link URL in HTML is specified using __________ attribute.

A. src
B. href
C. link
D. rel
Answer» C. link
260.

WHAT CSS DEFINE IN HTML?

A. How to save HTML elements
B. How to send HTML elements
C. How to made HTML elements
D. How to display HTML elements
Answer» E.
261.

CSS STANDS FOR?

A. Central Style Sheets
B. Common Style Sheets
C. Cascading Style Sheets
D. Control Style Sheets
Answer» D. Control Style Sheets
262.

What is the default value of y-axis co-ordinate of center of the circle?

A. 0
B. -1
C. Any arbitrary value.
D. None of the above.
Answer» B. -1
263.

Basic Fundamental Block is called as ___________.

A. HTML Element
B. HTML Attribute
C. HTML Body
D. HTML Tag
Answer» E.
264.

The common element which describe the web page, is?

A. heading
B. paragraph
C. list
D. All of these.
Answer» E.
265.

Which of the following command of path element closes the path?

A. A
B. Z
C. Q
D. T
Answer» C. Q
266.

Which of the following command of path element creates a horizontal line?

A. M
B. L
C. H
D. V
Answer» D. V
267.

Which of the following represents y-axis co-ordinate of the center of the ellipse?

A. y
B. cy
C. ry
D. None of the above
Answer» C. ry
268.

Which of the following attribute of text tag of SVG sets the rotation to be applied to all glyphs?

A. rotation
B. y
C. dx
D. dy
Answer» B. y
269.

Which of the following is true about Linear gradients?

A. Linear Gradients represents linear transition of one color to another from one direction to another.
B. It is defined using <linearGradient> element.
C. Both of the above.
D. None of the above.
Answer» D. None of the above.
270.

Which of the following stroke property defines thickness of text, line or outline of any element?

A. stroke
B. stroke-width
C. stroke-linecap
D. stroke-dasharray
Answer» C. stroke-linecap
271.

Which of the following tag of SVG is used to draw a circle?

A. circle
B. ellipse
C. Both of the above.
D. None of the above.
Answer» B. ellipse
272.

Is it possible to insert a table within another table?

A. Yes, but there must be exactly 2 rows and 2 columns in first table.
B. Yes, table can be inserted into cell of another table.
C. Yes, but there must be no border in second table.
D. No, it’s not possible.
Answer» C. Yes, but there must be no border in second table.
273.

Choose the correct HTML tag to left-align the content of a cell.

A. <tdleft>
B. <td leftalign>
C. <valign= “left”>
D. <td align= “left”>
Answer» E.
274.

Which of the following tags are related to Table in HTML ?

A. <table> <row> <column>
B. <table> <tr> <td>
C. <table< <head> <body>
D. <table> <header> <footer>
Answer» C. <table< <head> <body>
275.

What is the use of Forms in HTML?

A. to display contents of email.
B. to display animation effect.
C. to collect user’s input.
D. None of the Above.
Answer» D. None of the Above.
276.

What is the use of iframe in HTML?

A. to display a web page within a web page.
B. to display a web page with animation effect.
C. to display a web page without browser.
D. All of the Above.
Answer» B. to display a web page with animation effect.
277.

What is tag in HTML?

A. It renders fonts as teletype text font style.
B. It renders fonts as truetype text font style.
C. It renders fonts as truncate text font style.
D. None of the Above.
Answer» B. It renders fonts as truetype text font style.
278.

Which HTML tag would be used to display power in expression (A+B)2 ?

A. <SUP>
B. <SUB>
C. <B>
D. <P>
Answer» B. <SUB>
279.

Choose the correct HTML tag for the largest heading?

A. <H1>
B. <H6>
C. <H10>
D. <HEAD>
Answer» B. <H6>
280.

… tag is used for ________

A. Table heading
B. Table Records
C. Table row
D. none of the above
Answer» C. Table row
281.

Choose the correct HTML tag to make the text bold?

A. <B>
B. <BOLD>
C. <STRONG>
D. Both A) and C)
Answer» E.
282.

using tag will

A. start a new paragraph
B. break the line
C. end the current paragraph
D. none of the above
Answer» B. break the line
283.

… tag can be placed within ________

A. Header
B. Body
C. both A and B
D. none of the above
Answer» D. none of the above
284.

Which tag is used to display the large font size?

A. <LARGE> </LARGE>
B. <BIG> </BIG>
C. < SIZE > </SIZE>
D. <FONT> </FONT>
Answer» C. < SIZE > </SIZE>
285.

… tag is used to ________

A. display the numbered list
B. underline the text
C. display the bulleted list
D. bold the text
Answer» D. bold the text
286.

Text within … tag is displayed as ________

A. bold
B. italic
C. list
D. indented
Answer» B. italic
287.

Which attribute is used with img tag to display the text if image could not load in browser?

A. description
B. name
C. alt
D. id
Answer» D. id
288.

Text within … tag is displayed as ________

A. bold
B. italic
C. list
D. indented
Answer» C. list
289.

Which attribute you’ll use with TD tag to merge two cells horizontally?

A. merge=colspan2
B. rowspan=2
C. colspan=2
D. merge=row2
Answer» D. merge=row2
290.

Which attribute can be used with BODY tag to set background color green?

A. background=”green”
B. bgcolor=”green”
C. vlink=”green”
D. None of above
Answer» C. vlink=”green”
291.

When should you use path along with file name of picture in IMG tag?

A. path is optional and not necessary
B. when the location of image file and html file are different
C. when image file and html file both are on same location
D. path is always necessary when inserting image
Answer» C. when image file and html file both are on same location
292.

Which of the following is an attribute related to font tag?

A. size
B. face
C. color
D. All of above are style tags
Answer» E.
293.

What tag is used to list individual items of an ordered list?

A. LI
B. OL
C. UL
D. None of above
Answer» B. OL
294.

HTML supports

A. ordered lists
B. unordered lists
C. both type of lists
D. does not support those types
Answer» D. does not support those types
295.

Marquee is a tag in HTML to

A. mark the list of items to maintain inqueue
B. Mark the text so that it is hidden in browser
C. Display text with scrolling effect
D. None of above
Answer» D. None of above
296.

Which of the following is not a style tag?

A. <b>
B. <tt>
C. <i>
D. All of above are style tags
Answer» E.
297.

To create a blank line in your web page

A. press Enter two times
B. press Shift + Enter
C. insert <BR> tag
D. insert <BLINE>
Answer» D. insert <BLINE>
298.

There are ____ different of heading tags in HTML

A. 4
B. 5
C. 6
D. 7
Answer» D. 7
299.

In HTML document the tags

A. Should be written in upper case
B. should be written in lower case
C. should be written in proper case
D. can be written in both uppercase or lowercase
Answer» E.
300.

The special formatting codes in HTML document used to present content are

A. tags
B. attributes
C. values
D. None of above
Answer» B. attributes