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?

  1. A<style rel="stylesheet" type="text/css" href="style.css">
  2. B<style> href="style.css" </style>
  3. C<link rel="stylesheet" type="text/css" href="style.css">
  4. 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">.

From DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM)

This is question 135 of DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.