← Quiz: CSS Basics: all 10 questions
Quiz: CSS Basics · Question 6 of 10
Which way of adding CSS is best for a real website?
Which way of adding CSS is best for a real website?
- A.An external stylesheet linked with <link rel="stylesheet">
- B.Inline style attributes on every element
- C.A <style> tag inside every page
- D.Writing CSS inside JavaScript strings
Answer & explanation
Correct answer: An external stylesheet linked with <link rel="stylesheet">
One external file can style every page and is cached by the browser.
Can you get the rest right without peeking?
Take the timed Quiz: CSS Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →