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.
Answer: <del>, <s>, and <strike> all create strikethrough text, though <del> indicates deleted text semantically.
Answer: Both <u> and <ins> can underline text, though <ins> indicates inserted text semantically.
Answer: The <math> tag is used to include mathematical expressions using MathML in HTML.
Answer: The <iframe> tag creates an inline frame that embeds another HTML document within the current page.
Answer: The <script> tag is used to embed client-side JavaScript code in HTML documents.
Answer: The <style> tag is used to define internal CSS styles within an HTML document.
Answer: The <link> tag with rel="stylesheet" is used to link external CSS stylesheets to HTML documents.
Answer: The <base> tag specifies a base URL for all relative URLs in an HTML document.
Answer: The style attribute with height property is used to set custom dimensions for an <hr> element.
Answer: The <output> tag represents the result of a calculation or user action in a form.
Answer: The <track> tag is used to specify text tracks for media elements like video or audio.
Answer: The <svg> tag is used to define scalable vector graphics directly in HTML.
Answer: The <article> tag is the semantic HTML5 element for blog posts, news articles, and other self-contained content.
Answer: The <fieldset> element groups form controls, and <legend> provides a caption for the group.
Answer: The <label> tag defines a label for form elements, improving accessibility and usability.
Answer: The <video> tag is the HTML5 way to embed video content with src attribute for the video file.
Answer: The <audio> tag is the HTML5 element for embedding audio content with src attribute for the audio file.
Answer: The <canvas> tag provides a drawing surface for JavaScript rendering of graphics and animations.
Answer: The <pre> tag displays preformatted text preserving spaces, line breaks, and uses a monospace font.
Answer: <blockquote> is for long quotations with indentation, while <q> is for short inline quotations.