HTML MCQs with answers Page - 1

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 • 799.53K Points
Coach

Q. State whether the given statement is true or false. !DOCTYPE is case sensitive”

  • (A) True
  • (B) False
  • (C) ---
  • (D) ---

A

Admin • 799.53K Points
Coach

Q. Choose the correct statement of HTML

  • (A) In traditional XHTML close tag for some elements is optional but not encouraged
  • (B) In traditional HTML close tag for some elements is optional but not encouraged
  • (C) In both traditional XHTML and HTML close tag for some elements is optional
  • (D) None of the mentioned

A

Admin • 799.53K Points
Coach

Q. Which of the following is not a difference between HTML and XHTML

  • (A) Charset in html is “text/html” where as in xhtml it is “application/xml+xhtml”
  • (B) Tags and attributes are case-insensitive in HTML but not in XHTML
  • (C) Special characters must be escaped using character entities in XHTML unlike HTML
  • (D) None of the mentioned

A

Admin • 799.53K Points
Coach

Q. What indicates the content in file is HTML when delivered on the network.

  • (A) The extension of the file “.html”
  • (B) The “content-type” header
  • (C) Both “.html” extension and “content-type” header
  • (D) None of the mentioned

A

Admin • 799.53K Points
Coach

Q. State whether the given statement is true or false. “We can intermix XHTML and HTML 4.01 documents”

  • (A) True
  • (B) False
  • (C) ---
  • (D) ---

A

Admin • 799.53K Points
Coach

Q. HTML and XHTML stands for

  • (A) Hyper Text Markup Language and EXtensible HyperText Markup Language
  • (B) Hyper Text Markup Language and EXtensible HyperText Marking Language
  • (C) Hyper Text Marking Language and EXtensible HyperText Marking Language
  • (D) None of the mentioned

A

Admin • 799.53K Points
Coach

Q. Choose the correct tag for largest heading in HTML.

  • (A) h6
  • (B) heading
  • (C) h1
  • (D) head

A

Admin • 799.53K Points
Coach

Q. Which of the following are table tags?

  • (A) table, thead, tr, td
  • (B) colspan, table, tr
  • (C) table, tt, tr, td
  • (D) none of the mentioned

A

Admin • 799.53K Points
Coach

Q. Choose the correct XHTML for width attribute and its value.

  • (A) width=80
  • (B) width=”80″
  • (C) WIDTH=”80″
  • (D) WIDTH=80

A

Admin • 799.53K Points
Coach

Q. Which of the following options follows content model in HTML?

Code:
i.<ul>
   <p>Option one </p>
  </ul>
ii.<ul>
    <li>Option two </li>
   </ul>
  • (A) i
  • (B) ii
  • (C) i and ii
  • (D) None of the mentioned

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