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 5 of 5
0
0
/ 100
0%
A. <del>
B. <s>
C. <strike>
D. All of the above
Answer: <del>, <s>, and <strike> all create strikethrough text, though <del> indicates deleted text semantically.
A. <u>
B. <ins>
C. <underline>
D. Both A and B
Answer: Both <u> and <ins> can underline text, though <ins> indicates inserted text semantically.
A. <math>
B. <formula>
C. <equation>
D. <calc>
Answer: The <math> tag is used to include mathematical expressions using MathML in HTML.
A. <iframe>
B. <frame>
C. <inline-frame>
D. <embed>
Answer: The <iframe> tag creates an inline frame that embeds another HTML document within the current page.
A. <script>
B. <javascript>
C. <code>
D. <js>
Answer: The <script> tag is used to embed client-side JavaScript code in HTML documents.
A. <style>
B. <css>
C. <stylesheet>
D. <design>
Answer: The <style> tag is used to define internal CSS styles within an HTML document.
A. <link>
B. <style>
C. <stylesheet>
D. <css>
Answer: The <link> tag with rel="stylesheet" is used to link external CSS stylesheets to HTML documents.
A. <base>
B. <url>
C. <root>
D. <link>
Answer: The <base> tag specifies a base URL for all relative URLs in an HTML document.
A. <hr style="height:2px;">
B. <hr size="2">
C. <hr height="2">
D. <hr width="2">
Answer: The style attribute with height property is used to set custom dimensions for an <hr> element.
A. <output>
B. <result>
C. <display>
D. <calc-output>
Answer: The <output> tag represents the result of a calculation or user action in a form.
A. <track>
B. <caption>
C. <subtitle>
D. <text-track>
Answer: The <track> tag is used to specify text tracks for media elements like video or audio.
A. <svg>
B. <canvas>
C. <vector>
D. <graphic>
Answer: The <svg> tag is used to define scalable vector graphics directly in HTML.
A. <article>
B. <blog>
C. <post>
D. <entry>
Answer: The <article> tag is the semantic HTML5 element for blog posts, news articles, and other self-contained content.
A. <fieldset><legend>Title</legend></fieldset>
B. <group><caption>Title</caption></group>
C. <box><title>Title</title></box>
D. <section><heading>Title</heading></section>
Answer: The <fieldset> element groups form controls, and <legend> provides a caption for the group.
A. <label>
B. <text>
C. <caption>
D. <name>
Answer: The <label> tag defines a label for form elements, improving accessibility and usability.
A. <video src="movie.mp4">
B. <embed src="movie.mp4">
C. <media src="movie.mp4">
D. <movie src="movie.mp4">
Answer: The <video> tag is the HTML5 way to embed video content with src attribute for the video file.
A. <audio>
B. <sound>
C. <music>
D. <mp3>
Answer: The <audio> tag is the HTML5 element for embedding audio content with src attribute for the audio file.
A. <canvas>
B. <draw>
C. <graphic>
D. <paint>
Answer: The <canvas> tag provides a drawing surface for JavaScript rendering of graphics and animations.
A. <pre>
B. <code>
C. <formatted>
D. <preserve>
Answer: The <pre> tag displays preformatted text preserving spaces, line breaks, and uses a monospace font.
A. <blockquote>
B. <q>
C. <quote>
D. Both A and B
Answer: <blockquote> is for long quotations with indentation, while <q> is for short inline quotations.
3 4 5