+ 1
Please how can I tach html with css
3 Answers
+ 1
I made Link as you say and I write in html folder like this <div Id="good">Bock</div>I
And I came back to css Forder write like this#good{color:red;}but color of word bock still blackđ
+ 2
You can attach html with in three ways as mentioned below:
1. inline CSS
Ex: <p style="color:red;">hello</p>
// hello in red colour
2. internal CSS
We need to include all classes and id's and tags with their CSS in 'head' tag
Ex :
<html>
<head>
<style>
p{
color:red;
}
</style>
</head>
<body>
<p> hello</p>
</body>
</html>
//Outputs hello in red colour
3.external CSS
we need to write all CSS in another file and should include in following manner:
<link href="filename.css" type="text/css" Tel="stylesheet">
This should be written in head tag.
Therefore these are ways to include CSS with html , if there any queries more please your welcome to ask questions.Thank you
+ 2
Where did u keep CSS file Ali Noor ?
You should be keeping that two files in same folder