← CodePrimer
HTML
Beginner
Basics
Include JS with defer
How do I add JavaScript to a page?
script src with defer.
<script src="/js/app.js" defer></script>
Notes
defer runs after HTML is parsed and keeps script order.
Keywords: script · javascript · defer · src
Related
HTML
HTML headings h1–h6
How do I create page headings?
CSS
Three ways to apply CSS
What are inline, internal, and external CSS?
JavaScript
document.getElementById
How do I select one element by id?
PHP
Embed PHP inside HTML
How do I mix PHP and HTML?
HTML
Paragraphs and line breaks
How do I break text into paragraphs?
CSS
CSS box model
Why is my element wider than expected?