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 questionsAccording 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 theelement 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).
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.
---
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-styledtag.
Source: MIT OCW, Fall 2011, https://ocw.mit.edu/courses/6-813-user-interface-design-and-implementation-fall-2011/resources/mit6813f11lec10/ (PDF Slide 11).
Keep practicing
Take the free 1D0-61B practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 1D0-61B practice questions
- Question 1Which choice describes a correct order of precedence for implementing CSS?
- Question 2Which choice lists the HTML5 elements that define the document structure for a Web page?
- Question 3Which Web-based validation tool is used to validate Cascading Style Sheets (CSS)?
- Question 4You have been asked to design and develop a Web site for a retirement community. What can…
- Question 5Which line of code instructs the browser to look for a directory named mysite that begins…
- Question 7You are developing a Web site in HTML5. You want the new HTML5 structural elements (such …
