Question discussion

Which of the following is the syntax to write an external CSS?

3700Medium DSSSB TGT Computer Science 0 replies 2 views
0

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" >
Correct answer: C

Explanation

An external CSS file is linked in the head with <link rel="stylesheet" type="text/css" href="style.css">.

Discussion 0

Nobody has replied yet. Start the discussion!