Question 135Asked in DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)Which of the following is the syntax to write an external CSS?
- A<style rel="stylesheet" type="text/css" href="style.css">
- B<style> href="style.css" </style>
- C<link rel="stylesheet" type="text/css" href="style.css">
- D<a href="style.css" rel="stylesheet" type="text/css" >
Show answerHide answer
Correct answer: (C) <link rel="stylesheet" type="text/css" href="style.css">
Explanation
An external stylesheet is linked in the <head> with <link rel="stylesheet" type="text/css" href="style.css">.