How to apply external.css in any html file - Askrajnishonline

Breaking

About:

Askrajnishonline.blogspot.com is a personal blog which tells you what is seo and how it works, seo tutorial, seo fundamentals, types of seo, what is seo in digital marketing, how to do seo, off page submission websites like social booking etc and on page seo checklist 2020.

Monday, April 9, 2018

How to apply external.css in any html file

Step 1 -

Create a CSS file by any name with .css extension.

Example what I created -

body{
background-color: yellow;
}
h1{
color: red;
}
p{
color:green;
}

Step 2 -

Write code in html file in between <head>...</head>

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

Step 3 -

Run file....

Output :


My answer on Stackoverflow- https://stackoverflow.com/a/49737972/9620711

1 comment:

Share your view about this post with me and please don't do spamming here !!