Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which line of code uses the correct syntax to apply an external css sty…

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\/>

Explanation:

Brief Explanations

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>.

Answer:

D. <link rel="stylesheet" type="text/css" href="syb/syb.css"/>