How does SoloLearn connect HTML with external CSS & JS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How does SoloLearn connect HTML with external CSS & JS?

Hey friends! I am very confused while using JAVASCRIPT in external file of Sololearn, because I am unable to use DOM in external file of JS, how can I control position script in HTML.

12th Apr 2021, 10:47 AM
Coder-Rohit[{(∞)}] - avatar
3 Answers
+ 7
Show as your code attempt
12th Apr 2021, 10:54 AM
Matias - avatar
22nd Aug 2023, 3:03 PM
YouTube Arabe
YouTube Arabe - avatar
To connect HTML with external CSS and JavaScript in SoloLearn: 1. External CSS: Link using `<link>` tag in HTML's `<head>` section. 2. External JavaScript: Include using `<script>` tag, preferably at the end of HTML's `<body>` section. 3. Regarding DOM manipulation: Ensure JS code is wrapped within a function that executes after the DOM has loaded, using `DOMContentLoaded` event listener. Here are the best HTML online learning platforms: 1. 2. 3.
6th Mar 2024, 9:58 AM
Zain Khan
Zain Khan - avatar