+ 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 Antworten
+ 7
Show as your code attempt
12th Apr 2021, 10:54 AM
Matias
Matias - avatar
22nd Aug 2023, 3:03 PM
YouTube Arabe
YouTube Arabe - 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