What does link do?

i have always wanted to know what does do. been 8 weeks since i completed the course

he <link> tag links to external files, like CSS files, JS file, or certain other assets.

To correct you, JS files actually have their own tags - <script></script>

The <link> tag is used to link to any file that doesn’t have its own tag - CSS, a favicon, etc.

The link tag links to external files like CSS File
The Script tag can be used to write JavaScript in the Script tag or just link an external file

Eg:

<link rel="stylesheet" href="styles.css">

This link to an external CSS file


<script src="script.js"></script>

This links to an external JavaScript file.

You can always refer to this documentation.

https://www.w3schools.com/tags/tag_link.asp