Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Introducing JavaScript Write Another Program

what does opening and closing script look like

in my first job in script I'm asked to make a opening and closing script I need to be shown where to add the opening and closing scripts at

index.html
<!DOCTYPE HTML>"welcome to my "site
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>

</body>
</html>

2 Answers

Brian Arredondo
Brian Arredondo
1,530 Points

Here is what it should look like. You should put the file name of your JavaScript file in the quotations. For example if you file name is scripts.js this is how it would be inputed

<body>
  <script src="scripts.js"></script>
</body>

The challenge is to put a 'script tag' in between the Body tags.

so it should be

<body>
  <script> = tag with a closing tag.
</body>