writing and linking css file to an html file. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

writing and linking css file to an html file.

Hello. I just started to learn css and as i understood it i should write my page style in an .css file and link it to the html file using this: <link rel="stylesheet" href="xxx.css" so my question is how should i write the css file? using the html/head/body/etc.. or using something else? how should my file structure look like? sry for my bad englisb if you see something wrong 😃

14th Aug 2016, 12:17 PM
TheAngel
TheAngel - avatar
2 Answers
0
Your link is correct. Just type that in the head section of your HTML document (within the <head></head> tags of the HTML). As for structure of the stylesheet, just follow a logical flow that makes sense to you and be sure to mind your brackets and semicolons. Edit, actually, your link is missing closing. The content, though, is correct.
14th Aug 2016, 5:16 PM
Jason
0
write between head tags. (y) also your englsh nice. don't woryy peoples.
15th Aug 2016, 12:58 AM
HawkEye
HawkEye - avatar