QUESTION IMAGE
Question
which line of code uses the correct syntax to apply an external css style sheet to html documents? <link rel=stylesheet type=css href=syb/syb.css/> <style ref=stylesheet type=text/css href=syb/syb.css/> <style ref=\stylesheet\ type=\css\ href=\syb/syb.css\/> <link rel=\stylesheet\ type=\text/css\ href=\syb/syb.css\/>
To link an external CSS stylesheet to HTML, the <link> tag (not <style>) must be used. The rel attribute must be set to "stylesheet", the type attribute must be "text/css", and all attribute values should be enclosed in quotes. The first option is incorrect because attribute values lack quotes and type uses "css" instead of "text/css". The second and third options use the wrong <style> tag instead of <link>.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
D. <link rel="stylesheet" type="text/css" href="syb/syb.css"/>