HTML

Practice HTML MCQs covering document structure, semantic elements, forms, tables, multimedia, links, images, accessibility, HTML5 features, and other core web development concepts.

3
Topics
304
Total MCQs

HTML

Practice HTML MCQs covering document structure, semantic elements, forms, tables, multimedia, links, images, accessibility, HTML5 features, and other core web development concepts.

100 MCQs Page 4 of 5
0
0
/ 100
0%
A. <section>
B. <div>
C. <area>
D. <part>
Answer: The <section> element defines a thematic grouping of content, typically with a heading.
A. <input type="hidden">
B. <input type="invisible">
C. <hidden>
D. <input type="secret">
Answer: <input type="hidden"> creates a hidden input field that is not visible to users but is submitted with the form.
A. <strong>
B. <b>
C. <important>
D. <bold>
Answer: The <strong> tag defines text with strong importance, typically displayed in bold with semantic meaning.
A. <input type="reset">
B. <input type="clear">
C. <button reset>
D. <reset>
Answer: <input type="reset"> creates a reset button that clears all form input values to their default.
A. <small>
B. <size>
C. <mini>
D. <text-small>
Answer: The <small> tag defines smaller text, often used for copyright notices or legal disclaimers.
A. <button type="button">
B. <button>
C. <input type="button">
D. Both A and C
Answer: Both <button type="button"> and <input type="button"> create buttons that do not submit forms.
A. <bdo>
B. <bdi>
C. <dir>
D. <direction>
Answer: The <bdo> tag overrides the current text direction for its content, used for bidirectional text.
A. <a href="url"><img src="image.jpg"></a>
B. <img src="image.jpg" href="url">
C. <img src="image.jpg" link="url">
D. <image href="url">
Answer: Wrapping an <img> tag with an <a> tag creates a clickable image link in HTML.
A. <figure>
B. <img>
C. <fig>
D. <image>
Answer: The <figure> element represents self-contained content like images, diagrams, or code snippets.
A. <datalist>
B. <autocomplete>
C. <list>
D. <options>
Answer: The <datalist> element provides predefined options for an input field, enabling autocomplete functionality.
A. <details>
B. <detail>
C. <disclosure>
D. <show>
Answer: The <details> element creates a disclosure widget that can be expanded to reveal additional information.
A. <summary>
B. <caption>
C. <heading>
D. <title>
Answer: The <summary> element provides a visible heading for the <details> element that users can click to expand.
A. <dialog>
B. <popup>
C. <modal>
D. <window>
Answer: The <dialog> element represents a dialog box or interactive component like a modal or alert.
A. <meter>
B. <gauge>
C. <progress>
D. <bar>
Answer: The <meter> element represents a scalar measurement within a known range, like a gauge or rating.
A. <abbr>
B. <acronym>
C. <abbrev>
D. <short>
Answer: The <abbr> tag defines an abbreviation or acronym, with the title attribute providing the full meaning.
A. <address>
B. <contact>
C. <info>
D. <email>
Answer: The <address> element defines contact information for the author or owner of a document.
A. <kbd>
B. <key>
C. <input>
D. <code>
Answer: The <kbd> tag represents user keyboard input, typically displayed in a monospace font.
A. <samp>
B. <output>
C. <sample>
D. <result>
Answer: The <samp> tag represents sample output from a computer program in HTML.
A. <var>
B. <variable>
C. <val>
D. <v>
Answer: The <var> tag represents a variable in a mathematical expression or programming context.
A. <cite>
B. <reference>
C. <source>
D. <quote>
Answer: The <cite> tag defines the title of a creative work like a book, movie, or article.
2 3 4 5