Multiple choice technology web 2.0

What is the correct HTML for referring to an external style sheet?

  1. <link rel="stylesheet" type="text?css" href="style.css" />

  2. <link href="style.css" />

  3. <link style.css />

  4. <link stylesheet="style.css" />

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The rel="stylesheet" attribute is mandatory for linking an external stylesheet. Although the correct option contains a minor typo (type="text?css" instead of type="text/css"), it remains correct as it is the only choice that specifies the rel attribute, enabling the browser to load the CSS file correctly.