+ 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[{(∞)}]
Coder-Rohit[{(∞)}] - avatar
3 odpowiedzi
+ 7
Show as your code attempt
12th Apr 2021, 10:54 AM
Matias
Matias - avatar
0
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. https://www.w3schools.com/html/default.asp 2. https://iqratechnology.com/academy/html-training/ 3. https://www.javatpoint.com/html-tutorial
6th Mar 2024, 9:58 AM
Zain Khan
Zain Khan - avatar
OSZAR »