JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

luckius kajoka
luckius kajoka
1,695 Points

how to add src atribute in a script tag?

help me

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

1 Answer

Steven Parker
Steven Parker
150,084 Points

You have a typo: you wrote "scr" instead of "src".

Also, you have "script.js" but the file name is "shout.js".