English

Where do you place the code to associate a Web page with an external style sheet?

Advertisements
Advertisements

Question

Where do you place the code to associate a Web page with an external style sheet?

Code Writing
Short Answer
Advertisements

Solution

In order to link a webpage to an external style sheet, we insert the following code in the head tag:

<head>
  <link rel="stylesheet" type="text/css" href="sample.css">
</head>

where sample.css is the name of the CSS file.

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Cascading Style Sheets (CSS) - Assignment [Page 275]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 6 Cascading Style Sheets (CSS)
Assignment | Q 17. | Page 275
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×