1D0-61B · Question #49
You need to center and indent a quote on your Web page. Which is the best way to accomplish this using HTML5?
The correct answer is B. Use the <blockquote> element. <blockquote> is the semantically correct HTML5 element for quoted content - browsers apply default indentation on both sides, and the element signals meaning to assistive technologies and search engines alike. A (<pre>) is for preformatted/code text and preserves whitespace…
Question
You need to center and indent a quote on your Web page. Which is the best way to accomplish this using HTML5?
Options
- AUse the <pre>element.
- BUse the <blockquote> element.
- CUse the style attribute with the <p> tag.
- DUse the text-align attribute with the <p> tag.
How the community answered
(40 responses)- A3% (1)
- B93% (37)
- C3% (1)
- D3% (1)
Explanation
<blockquote> is the semantically correct HTML5 element for quoted content - browsers apply default indentation on both sides, and the element signals meaning to assistive technologies and search engines alike. A (<pre>) is for preformatted/code text and preserves whitespace literally - it doesn't center or indent in the intended way. C (inline style attribute on <p>) could visually work but is not semantic, mixes presentation with structure, and ignores the fact that a quote deserves its own element. D is doubly wrong: text-align is a CSS property, not an HTML attribute, and even if corrected, it would only affect alignment, not provide the semantic meaning of a quotation.
Memory tip: Think "block-quote = block of quoted text" - the element name tells you its purpose. If the exam mentions a quote, reach for <blockquote> first.
Topics
Community Discussion
No community discussion yet for this question.