0

Please I'm a bit confused about CSS. To code in html using text editors on PC, I have to use <! DOCTYPE html> What about css

I don't know how to combine both css and html codes in one text editor

19th Jun 2017, 9:42 AM
Fabian
4 Respuestas
+ 2
or as another option, add the <style> tag to your head and code the css in your html file
19th Jun 2017, 10:05 AM
Russel Reeder
Russel Reeder - avatar
+ 2
Adding the css inline works great , but its not best practice.
19th Jun 2017, 10:09 AM
Leon D
Leon D - avatar
+ 1
Normally <DOCTYPE html> is used in the html file only and not in css , in your text editor you should have the html saved as yousitename.html and your css in a file styling.css. To connect them you put this <link rel="stylesheet" href="stylesheet.css"> into the head tag in your .html
19th Jun 2017, 10:03 AM
Leon D
Leon D - avatar
0
on a html file in the head section you can type the <style> attribute unless you want to make a css file then you should do <link rel="stylesheet" href="whateverstyleyouhave.css"
2nd Mar 2020, 11:58 PM
ReidyQ