1D0-61B practice question 6 of 15

You need to center and indent a quote on your Web page. Which is the best way to accomplish this using HTML5?

Full set: 55 questions
Answer options
A: Use the
element.
                                            
B: Use the
element. Correct answer
C: Use the style attribute with the

tag.

D: Use the text-align attribute with the

tag.

Correct Answer:
B. Use the element.
Explanation

According to HTML5 standards, content should be structured semantically. The

element is the semantically correct tag for marking up a block-level quotation from another source. By default, web browsers render the
element with indentation (margins) on the left and right. While centering is a presentational aspect that should be handled by CSS (e.g., style="text-align:center;"), using the correct semantic HTML element is the foundational and "best" first step. This approach ensures the document is accessible, machine-readable, and adheres to modern web development best practices that separate structure (HTML) from presentation (CSS).

Why Incorrect

A. The element is a presentational tag that is obsolete in HTML5 and should not be used.

C. Using a

tag is semantically incorrect for a block quotation, and relying on inline styles is not the best practice for separating content from presentation.

D. The text-align attribute is not a valid HTML attribute for any element in HTML5; text-align is a CSS property.

---

References

1. W3C, HTML 5.2 Recommendation, Section 4.4.4 The blockquote element: This official specification defines the

element as the correct semantic choice for content quoted from another source. It also notes the typical browser rendering: "User agents typically render blockquote elements with margins."

Source: W3C Recommendation, 14 December 2017, https://www.w3.org/TR/html52/grouping-content.html#the-blockquote-element

2. W3C, HTML 5.2 Recommendation, Section 11.2 Obsolete features: This section explicitly lists the element as an obsolete, non-conforming feature that "Authors must not use." This directly invalidates option A. The align attribute (which text-align in option D mimics) is also listed as obsolete for most elements.

Source: W3C Recommendation, 14 December 2017, https://www.w3.org/TR/html52/obsolete.html#non-conforming-features

3. MIT OpenCourseWare, 6.813 User Interface Design and Implementation, Lecture 10: HTML & CSS: This courseware emphasizes the core principle of separating content (HTML) from presentation (CSS). Slide 11, "Semantic Markup," explains that tags should describe the meaning of the content (e.g.,

for a heading), not its appearance. This principle supports using the semantic
tag over a presentationally-styled

tag.

Source: MIT OCW, Fall 2011, https://ocw.mit.edu/courses/6-813-user-interface-design-and-implementation-fall-2011/resources/mit6813f11lec10/ (PDF Slide 11).

Scroll to Top