Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+13 votes

Is it better to add the css code inside your Html file or is it better to create a css file separately and make a reference to it in your Html file.

asked in CSC215 by (8 points)

2 Answers

+6 votes
 
Best answer

It depends on what you're going for. For cleaner, more concise code, referencing is the way to go. Otherwise, it doesn't make too much of a difference which route you pick.

answered by (1.1k points)
selected by
+7 votes

It is okay if you put in the same code file or use a link in the html file but they need to be in the same folder

answered by (8 points)
...