HTML MCQs with answers Page - 2

Here, you will find a collection of MCQ questions on HTML. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 828.03K Points
Coach

Q. Which of the following markup is correct?

Code:
i. <b><i>is in error as tags cross</b></i>
ii. <b><i>is not since tags nest</i></b>
  • (A) i
  • (B) ii
  • (C) i and ii
  • (D) None of the mentioned

A

Admin • 828.03K Points
Coach

Q. Which of the following is not a correct (X)HTML rule?

  • (A) Attributes should be quoted
  • (B) Tags should nest not tag
  • (C) Unused elements may be minimized
  • (D) Unknown attributes are ignored by the browser

A

Admin • 828.03K Points
Coach

Q. Which of the following is true if the property value of a name-value pair added by an element with an itemprop attribute is a time element ?

  • (A) The value is the element’s datetime value.
  • (B) The value is the value of the element’s content attribute, if any, or the empty string if there is no such attribute.
  • (C) The value is the value of the element’s value attribute, if it has one, or the empty string otherwise.
  • (D) The value is the element’s textContent.

A

Admin • 828.03K Points
Coach

Q. The ___________ of an item is the value of its element’s itemid attribute.

  • (A) token
  • (B) typed item
  • (C) global identifier
  • (D) none of the mentioned

A

Admin • 828.03K Points
Coach

Q. If the element has an itemscope attribute, it returns an __________ object with all the element’s properties.

  • (A) itemscope
  • (B) dom object
  • (C) collection.namedItem
  • (D) none of the mentioned

A

Admin • 828.03K Points
Coach

Q. Identify the count of mistakes in the following markup.

Code:
<html>
<head>
</head>
<body>
  <li>
    <ul><p>Hello</p></ul>
  </li>
  <br>
  <hr>
</body>
</html>
  • (A) 2
  • (B) 3
  • (C) 1
  • (D) 0

A

Admin • 828.03K Points
Coach

Q. Rendering engine is not responsible for

  • (A) parsing the markup content (HTML)
  • (B) parsing style information (CSS, XSL, and so on)
  • (C) generating a visual presentation of the formatted content including media files referenced
  • (D) none of the mentioned

A

Admin • 828.03K Points
Coach

Q. Firefox uses _________ rendering engine.

  • (A) WebKit
  • (B) Gecko
  • (C) Trident
  • (D) Presto

A

Admin • 828.03K Points
Coach

Q. Which tag inserts a line horizontally on your web page?

  • (A) <hr>
  • (B) <line>
  • (C) <line direction="horizontal">
  • (D) <tr>

A

Admin • 828.03K Points
Coach

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

  • (A) picture
  • (B) image
  • (C) img
  • (D) src

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ