Multiple choice technology web technology

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

  1. <stylesheet>mystyle.css</stylesheet>

  2. <style src="mystyle.css">

  3. <link rel="stylesheet" type="text/css" href="mystyle.css">

  4. <style img="mystyle.css">

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

The correct HTML syntax to link an external style sheet uses the tag with rel="stylesheet", type="text/css", and href pointing to the CSS file. Option A uses a non-existent tag. Option B incorrectly uses with a src attribute. Option D has an invalid img attribute.