Learning outcome
The <script> tag let's us link to JavaScript files. We can link to our own JavaScript files and we can link JavaScript files that others have made. We're going to do both of these things in our lesson today.
To do
- Step by step instructions on creating an HTML file
- If a student has taken the HTML class already this will just be a refresher
- Quick recap on some of the basic tags needed to create a web page
- Step by step on using
<script>
- Linking to someone else's JavaScript files e.g., P5.js
- Linking to their own JavaScript files e.g., sketch.js
- Explain what linking a JavaScript file means. It let's us write JavaScript code which runs in the HTML page we've just created
Learning outcome
The
<script>tag let's us link to JavaScript files. We can link to our own JavaScript files and we can link JavaScript files that others have made. We're going to do both of these things in our lesson today.To do
<html>,<head>,<body><script>