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 jQuery Basics Introducing jQuery Using text() and html()

Why is this not passing?

I believe I have the code written correctly and have the Jquery method calling the profile-header to html?

index.html
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <h1 class="profile-header"></h1>
    <p class="profile-text"></p>

    <script
    src="jquery-3.2.1.min.js"></script>
    <script src="app.js"></script>
</body>
</html>
app.js
$('.profile-text').text("I am a web developer");
$(".profile-header").html("Sudent <span>Profile</span>");

4 Answers

Steven Parker
Steven Parker
231,269 Points

It's just a typo. You have "Sudent" instead of "Student".

Otherwise, your code is good! :+1:

Oh my thanks so much! It can just be the smallest thing huh?

Steven Parker
Steven Parker
231,269 Points

Computers are notoriously persnickety! :wink:

LOL I can see where spelling is critical but I must say it gets frustrating when it is something that simple and I don't notice it. Ugh!!!!

love Bugs
love Bugs
2,121 Points

looks like you spelt 'Student' wrong

$(".profile-header").html("Sudent <span>Profile</span>");