Hello! Which is more correct: put the css on the head of an html document using the style tag or do it in other page? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Hello! Which is more correct: put the css on the head of an html document using the style tag or do it in other page?

13th May 2019, 12:34 PM
Joana Casais
Joana Casais - avatar
4 Answers
+ 20
the two ways are correct and possible but it is better to put the css in it is own file to make your code clearer, easy for reading ,understanding and reusable too!
15th May 2019, 8:49 AM
Nour Abu Assaf
Nour Abu Assaf - avatar
+ 9
The better way is to put it in a file ,to make things cleaner
13th May 2019, 12:42 PM
Why So Serious ?
Why So Serious ? - avatar
+ 4
The two can be external and internal but the exterior is better only in the view of the page and the view of the code will be good and the interior is also good and not waste time and better than the exterior
14th May 2019, 4:02 PM
Abduo Saber
Abduo Saber - avatar
+ 3
If you are making multiple pages website then it is better to use external css by making another file. So you can use that file multiple times and for other projects also.
14th May 2019, 11:15 AM
Talha Mansoor
Talha Mansoor - avatar