Creating same file destination | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Creating same file destination

How can you put html, css and JavaScript in the same file for easy linking?

15th Apr 2019, 9:12 AM
ely
ely - avatar
2 Answers
+ 9
Inside <head> tag put your css code between <style></style>. After </body> tag put your javascript code between tags <script></script>
15th Apr 2019, 9:29 AM
Javier Felipe Toribio
Javier Felipe Toribio - avatar
+ 5
<html> <style> body {}... </style> <script> document.write("..."); </script> </html>
15th Apr 2019, 2:01 PM
I‘m Sarah🌹
I‘m Sarah🌹 - avatar