+ 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??

20th Sep 2018, 3:27 AM
Prince Verma
Prince Verma - avatar
4 Respuestas
+ 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.
20th Sep 2018, 3:31 AM
Akib
Akib - avatar
+ 2
thanks bro but how to link them in windows or online blogging
20th Sep 2018, 3:34 AM
Prince Verma
Prince Verma - avatar
0
<link href="link" rel="stylesheet"> <script src="link"></script>
20th Sep 2018, 4:41 AM
Akib
Akib - avatar