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
4 Respuestas
+ 2
or as another option, add the <style> tag to your head and code the css in your html file
+ 2
Adding the css inline works great , but its not best practice.
+ 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
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"