+ 1

where to write css coding in html?? text

where did i have to write a css coding in head or body file anyone please give me a example

25th Jul 2016, 5:14 PM
Vinayak Gaud
7 Respostas
+ 5
Best option: in a separate *.css file. Second option: inside the head section. Last option: inline. only if you really really have to.
25th Jul 2016, 6:47 PM
ZinC
ZinC - avatar
+ 5
After you have created a separate css file, put this code in the head section (<head></head>): <link rel="stylesheet" href="style.css"> Assuming you named it 'style.css'.
26th Jul 2016, 11:48 PM
ZinC
ZinC - avatar
0
zinc how the separate css file will came to know that, that .css file is for which html
26th Jul 2016, 5:14 PM
Vinayak Gaud
0
In html file you write coding in head
21st Aug 2016, 1:35 PM
teja velivelli
teja velivelli - avatar
0
in the head tag
19th Nov 2016, 12:29 PM
philip
philip - avatar
0
1) you can write css codes in the head by using <style></style>property {internal style sheet} 2) you can write css codes in the body by write style and the propertys in the same html code,for example : <p style="color:gray;">This is pargraph</p>{inline style sheet} 3) you can write css codes in the external file by write the link property in the head [<link rel='stylesheet" href="style.css"></link>{ External stylesheet}. thanks
6th Dec 2016, 12:52 PM
MATREX MOON
MATREX MOON - avatar
- 3
Brackets
25th Jul 2016, 7:11 PM
Bruh