2.4 Summary
In this chapter, you learned how to create JavaScript files and embed them in HTML. You now have the basic knowledge for executing the examples in the next chapters. The following key points were presented in this chapter:
-
Three languages are important for frontend development: HTML as a markup language to define the structure of a web page, CSS as a style language to define design and layout, and JavaScript as a programming language to add additional behavior and interactivity to a web page.
-
You can specify JavaScript directly using the <script> element or can embed a separate JavaScript file using the src attribute of the <script> element. We recommend the latter, as it ensures a clean separation between the structure (HTML) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access