Introduction:

In this article we are going to explain what is external stylesheet in html document or how to use external stylesheet on your web page with example.

Description:  

The External Stylesheet is a .css file that you link your website .it is generally used when you want to make changes on multiple pages. It is ideal for this condition because it facilitates you to change the look of the entire web site by changing just one file.

It uses the <link> tag on every pages and the <link> tag should be put inside the head section.

Example:


<!DOCTYPE html>
<html>
<head>
    <title>This is the example of internal style </title>
 
    <link href="stylesheet.css" rel="stylesheet" />    
 
</head>
<body>
    <h3>The external style sheet is applied on this heading.</h3>
    <p>This paragraph will not be affected.</p>   
</body>
</html>

 

 

Output:

 

  how to use external css in html 

 

 I hope this article will help to you after reading.

0 comments


Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

You may also like