Open In App

Web technologies Questions | CSS Quiz | Set-1 | Question 2

Which of the following is the correct syntax to add the external stylesheet in CSS?

(A)



<style src = quiz.css>

(B)



<style src = \”quiz.css\”>

(C)

<stylesheet> quiz.css </stylesheet>

(D)

<link rel=\”stylesheet\” type=\”quiz/css\” href=/css-quiz-set-1/”quiz.css\”>

Answer: (D)
Explanation:

There is a three-way for linking the HTML page to CSS. Out of three-way external CSS <link rel=\” stylesheet\” type=\” quiz/css\” href=/css-quiz-set-1/”quiz.css\”>, Here rel is a relationship for stylesheet and type is CSS under quiz folder and href link to the quiz.css file.

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :