Key Concepts

Review core concepts you need to learn to master this subject

HTML script element src attribute

<!-- Using a relative path --> <script src="./script.js"></script> <!-- Using an absolute path --> <script src=""></script>

The src attribute of a <script> element is used to point to the location of a script file.

The file referenced can be local (using a relative path) or hosted elsewhere (using an absolute path).

The Script Element
Lesson 1 of 3

What you'll create

Portfolio projects that showcase your new skills

Pro Logo