Where do you place the code to associate a Web page with an external style sheet ?
Answers
Q) Where do keep the code to associate a Web page with an external style sheet?
Ans) Hey buddy here's your answer ............
You should write the style code in the external style sheet and then add it in the HTML document.
For Example:
You have a CSS file named my first css.css. And you wright the following code in it :-
body {
font-family: Arial;
}
.cb {
color: blue;
}
And you have to add this code in your HTML document you should add the following code in your HTML document:-
<link rel="stylesheet" type="text/css" src="C:/user/notepad++/documents/my first css.css">
I have added my own file path. You can add your path by
- Going in in File Manager.
- Opening the file location.
- Right clicking on the file.
- Clicking Properties.
- Copy the file path and then paste it in the src="" attribute of the above link.
Then assign the classes you have made in style sheet file to where you want that style.
And
Done !
Your assigned tags will get styled.
HOPE THIS HELPS YA :)
No SPAMMING❗❕........
Answer:
It's very simple. Under the header section, you've to place the tag between <head> and </head> tag.
then add a Link tag and that's it.
hope this helps and please mark my answer as Brainliest.
thanks