JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

Hello! what do i enter to load the external JavaScript file into the web page. Did i learn this in a task or video?

I am drawing a blank for what exactly to enter for this challenge. Thanks, dallas

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
<script src= 'index.html' </script> 
</body>
</'index.html'>
shout.js

1 Answer

Edgar Gil
Edgar Gil
866 Points

Everything is looks good. But your <script> tag is a tag for javascript and you inserting an html.file.

You also missing a ending > <script src= 'index.html' </script>

Try <script src= 'index.html'> </script>

Also to make this even better <script src= 'script.js> </script>

See what I did there.