300-920 · Question #12
Which code adds a Space Widget in an HTML script that uses the CSS Webex CDN?
The correct answer is D. <link rel= "stylesheet" href= "https://code.s4d.io/widget-space/production/main.css">. Option D is correct because it uses the proper <link rel="stylesheet"> HTML element (the correct way to include a CSS file), points to the widget-space path (matching the "Space Widget" being requested), and references main.css (a CSS file, consistent with using the CSS CDN)…
Question
Options
- A<link rel= "stylesheet" href= "https://code.s4d.io/widget-recents/production/main.css">
- B<script src= "stylesheet" href= "https://code.s4d.io/widget-space/production/main.css">
- C<link rel= "stylesheet" href= "https://code.s4d.io/widget-recents/production/bundle.js">
- D<link rel= "stylesheet" href= "https://code.s4d.io/widget-space/production/main.css">
How the community answered
(48 responses)- A4% (2)
- B6% (3)
- C2% (1)
- D88% (42)
Explanation
Option D is correct because it uses the proper <link rel="stylesheet"> HTML element (the correct way to include a CSS file), points to the widget-space path (matching the "Space Widget" being requested), and references main.css (a CSS file, consistent with using the CSS CDN).
Why the distractors fail:
- A uses
widget-recentsin the URL path, which loads the Recents Widget, not the Space Widget. - B uses a
<script>tag, which is for JavaScript - not CSS - and<script>doesn't even support anhrefattribute, making it doubly invalid. - C combines two errors: it uses
widget-recents(wrong widget) and referencesbundle.js(a JavaScript file, not a CSS file), contradicting the question's requirement for the CSS CDN.
Memory tip: Think Space = Stylesheet link. When you see "CSS CDN" and "Space Widget," lock in on <link rel="stylesheet"> + widget-space + .css - all three must match or the answer is a trap.
Topics
Community Discussion
No community discussion yet for this question.