0
Hey guy do you need like a separate file for the CSS code if you are doing html? Or do you just put it at the top or something
3 Réponses
+ 3
Its good practice to keep it separate and link it in head tag.
Because as your code becomes bigger and bigger it will be difficult to find an small error also , if you keep all together.
Hope this helps☺️☺️.
+ 2
PUTTING YOUR CSS IN AN EXTERNAL FILE IS MORE BETTER THAN OTHERS.
IT MAKES YOUR CODE BETTER FOR FIND ERRORS IN BOTH HTML & CSS.
• If you put your css in external file add a link in head tag like 👇
<link rel="stylesheet" type="text/css" href="file_path"/>
It is good practice to keep css in external.
Some times It will improve the loading speed of your file in browser....
Happy CODING.......
+ 1
Both options are available. For css styles inside html , use the styel tag. Otherwise refer to an external css file in the head tag using the link tag. You can also inline the styles for each element