+ 11

Where does CSS code need to be placed in order for it to work?

Suppose you want to use CSS code to style your page: p {color:blue;} .

7th Jul 2020, 4:38 AM
Munira Rakhmatova
Munira Rakhmatova - avatar
4 Respuestas
+ 10
You can use by 3 ways. Internal css external css and inline css. https://www.sololearn.com/learn/CSS/1079/
7th Jul 2020, 4:50 AM
Samira
Samira - avatar
+ 9
For eg:- In the HTML part you wrote - <p> I am HTML </p> -------------------------------------------- CSS/you can also access the CSS code in your HTML inside the <style> </style> tag body{ } p{ color : blue ; } So this will colour your text I am HTML to blue //I really can't understand your question to properly but this is what according to me I can do. Sololearn courses https://www.sololearn.com/learn/CSS/1079/
7th Jul 2020, 4:42 AM
Nilesh
Nilesh - avatar
+ 8
<style> p {color:blue;} </style>
7th Jul 2020, 5:12 AM
Sherzodbek Rahmatov
Sherzodbek Rahmatov - avatar
+ 2
Best way external write your css code save file.Css in html write in head tag <link rel="stylesheet" type="text/css" href="your file.css">
7th Jul 2020, 8:48 AM
Hafsah Rizg
Hafsah Rizg - avatar