+ 1

Please how can I tach html with css

Problem https://www.sololearn.com/discuss/2297274/?ref=app

17th May 2020, 3:11 PM
SAOU ABDERRAHMAN
3 ответов
+ 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😔
18th May 2020, 6:47 PM
SAOU ABDERRAHMAN
+ 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
18th May 2020, 8:16 AM
Nikhil Maroju
Nikhil Maroju - avatar
+ 2
Where did u keep CSS file Ali Noor ? You should be keeping that two files in same folder
19th May 2020, 4:49 AM
Nikhil Maroju
Nikhil Maroju - avatar