🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.An external stylesheet linked with <link rel="stylesheet">
  2. B.Inline style attributes on every element
  3. C.A <style> tag inside every page
  4. 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 →