+ 1
In sololearn we have given different files for html , css, js but in real life does different files exist??
i mean does we have to write our website in aingle file or we can link many different files for different purposes on window or online??
4 Answers
+ 2
You can write all of it one page but its not recommend if you're developing a big website. Keeping JS and CSS seperate helps to manage code better.
Linking is better idea.
CSS files have (.css) JS have (.js) file extension in real life.
+ 2
thanks bro
but how to link them in windows or online blogging
0
<link href="link" rel="stylesheet">
<script src="link"></script>