1D0-520 · Question #110
You are creating a Web site for a customer. You will use an external linked style sheet for controlling the style of elements and giving a consistent look and feel to the site. Which of the…
The correct answer is A. A text file that uses the .css file name extension and contains only style definitions. See the full explanation below for the reasoning.
Question
You are creating a Web site for a customer. You will use an external linked style sheet for controlling the style of elements and giving a consistent look and feel to the site. Which of the following best describes this external style sheet?
Options
- AA text file that uses the .css file name extension and contains only style definitions
- BA text file that uses the .htm file name extension and contains only style definitions
- CA text file that uses the .css file name extension and contains style definitions and HTML
- DA text file that uses the .htm file name extension and contains style definitions and HTML
How the community answered
(54 responses)- A70% (38)
- B9% (5)
- C4% (2)
- D17% (9)
Community Discussion
6The answer is A. Think of an external style sheet like a dress code document posted on the wall: it is a plain text file ending in .css that holds nothing but the style rules themselves, no HTML mixed in, because its whole job is to be the one place every page on the site calls home for its look.
Solid analogy, and for the exam round it out by locking in that the dress code only works when the HTML page sends a formal invitation via a link element in the head section, because that link relationship is precisely what the blueprint tests when it distinguishes external sheets from internal style blocks.
A is right, pure style rules only, no markup allowed in that file.
The .htm extension is what links externally, style-only content locks in B.
Sara, the .htm vs .html distinction is a red herring on most modern servers, and "style-only" does not lock anything in. Option A is correct because the question is testing default file resolution, where index.html is the standard default document that web servers serve when no filename is specified in the request.
Quick win, don't overthink it. A is right, .css files hold pure style rules only.