Explore topic-wise MCQs in Html.

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

1.

Choose the correct HTML for width attribute and its value.

A. width=80
B. width=”80″
C. WIDTH=”80″
D. WIDTH=80
Answer» C. WIDTH=”80″
2.

Which of the following are table tags?

A. table, thead, tr, td
B. colspan, table, tr
C. table, tt, tr, td
D. thead, colspan, td, tr
Answer» B. colspan, table, tr
3.

Choose the correct tag for the largest heading in HTML.

A. h6
B. heading
C. h1
D. head
Answer» D. head
4.

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

A. True
B. False
Answer» C.
5.

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

A. True
B. False
Answer» C.
6.

WHICH_OF_THE_FOLLOWING_ARE_TABLE_TAGS??$

A. table, thead, tr, td
B. colspan, table, tr
C. table, tt, tr, td
D. thead, colspan, td, tr
Answer» B. colspan, table, tr
7.

Choose_the_correct_HTML_for_width_attribute_and_its_value.$

A. width=80
B. width=”80″
C. WIDTH=”80″
D. WIDTH=80
Answer» C. WIDTH=‚Äö√Ñ√∂‚àö√ë‚àöœÄ80‚Äö√Ñ√∂‚àö√ë‚Äö√¢‚Ä¢
8.

Choose the correct tag for the largest heading in HTML?

A. h6
B. heading
C. h1
D. head
Answer» D. head
9.

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. Hyper Text Marking Language and Extensible HyperText Markup Language
Answer» B. Hyper Text Markup Language and Extensible HyperText Marking Language
10.

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

A. True
B. False
Answer» C.
11.

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. The “content_type” header
Answer» C. Both ‚Äö√Ñ√∂‚àö√ë‚àö‚à´.html‚Äö√Ñ√∂‚àö√ë‚àöœÄ extension and ‚Äö√Ñ√∂‚àö√ë‚àö‚à´content-type‚Äö√Ñ√∂‚àö√ë‚àöœÄ header
12.

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. Charset in both html and xhtml is “text/html”
C. Tags and attributes are case-insensitive in HTML but not in XHTML
D. Special characters must be escaped using character entities in XHTML unlike HTML
Answer» C. Tags and attributes are case-insensitive in HTML but not in XHTML
13.

Which of the following XHTML doctype declaration contains all HTML elements and attributes, including presentational and deprecated elements (like font) but not framesets?

A. !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”
B. !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”
C. !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Frameset//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”
D. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
Answer» C. !DOCTYPE html PUBLIC ‚Äö√Ñ√∂‚àö√ë‚àö‚à´-//W3C//DTD XHTML 1.0 Frameset//EN‚Äö√Ñ√∂‚àö√ë‚àöœÄ ‚Äö√Ñ√∂‚àö√ë‚àö‚à´http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd‚Äö√Ñ√∂‚àö√ë‚àöœÄ
14.

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

A. True
B. False
Answer» C.