filmov
tv
How to link external JavaScript to HTML/Beginner Level:Lesson 2

Показать описание
It this video is explained how to link JS to HTML and why it should be linked in the body and not in the head section.
In short:
CSS should be linked in the head because our style has to run first in order for our page to look great.
JS should be linked right before closing body tag because this improves the loading speed of the page.
In short:
CSS should be linked in the head because our style has to run first in order for our page to look great.
JS should be linked right before closing body tag because this improves the loading speed of the page.