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

Why won't my code alert hello?

This is the HTML

<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>RSVP App</title> <link href="https://fonts.googleapis.com/css?family=Courgette" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> </head> <body> <div class="wrapper"> <header> <h1>RSVP</h1> <p>A Treehouse App</p> <form id="registrar"> <input type="text" name="name" placeholder="Invite Someone"> <button type="submit" name="submit" value="submit">Submit</button> </form> </header>

<div class="main">  
  <h2>Invitees</h2>
  <ul id="invitedList"></ul>    
</div>

</div> <srcipt type="text/javascript" src="app.js"></srcipt> </body> </html>

This is the javascript

alert("hello")

1 Answer

Steven Parker
Steven Parker
243,228 Points

It's just a spelling error (or typo). You have "srcipt" instead of "script".

For future questions, use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area. :arrow_heading_down:   Or watch this video on code formatting.