0

Can anyone give me an example of a document such that css styles the html meaning they are related

28th May 2020, 6:31 PM
Edith Chebet Tum
Edith  Chebet Tum - avatar
3 odpowiedzi
+ 1
Thanks
30th May 2020, 6:13 PM
Edith Chebet Tum
Edith  Chebet Tum - avatar
0
Edith Chebet Tum hi, If I understand what you ask, this would be for an external CSS file and would be as such: <link rel="stylesheet" type="text/css" href="style.css"> This link tag is to be placed within the <head></head> tag of your html file. The href attribute will call your CSS file, here it is style.css but you can give the name you want. This is the way to do if you have a folder on your computer. You create a folder with your html file and your css file in it. If you decide to put your CSS file elsewhere (a subfolder or another folder) in the href you will have to indicate the relative path leading to it. Ex: you have a folder call Mycode, Inside you have your html file + a subfolder called Mystyles with a style.css in it, the href will be: href="Mystyles/style.css" (On sololearn code playground you don't have to put that link tag)
29th May 2020, 10:43 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
In addition, you can check that page which will be more complete, and the whole site is a good support to learn... https://www.tutorialrepublic.com/css-tutorial/css-get-started.php
30th May 2020, 6:19 PM
EmmanueLZ.
EmmanueLZ. - avatar