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

$('.profile-text').text('I am a web developer'); $('.profile-header').html("Student <span> Profile </span>");

it won't accept my answer!!!!!!!!!!!!!!!!!!!!

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

Steven Parker
Steven Parker
204,004 Points

The string the instructions ask for in task 3 does not have any spaces inside the <span>.