JavaScript jQuery Basics Introducing jQuery Using text() and html()

Alexandre Zagame
Alexandre Zagame
5,813 Points

Is this exercise broken?

$('.profile-header').html("Student <span>profile</span>");

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("Student <span>profile</span>");

1 Answer

Rick Gleitz
Rick Gleitz
41,160 Points

No, it's not broken. You got it soooo close. Just capitalize profile. Hope this helps!