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

jclaurent2
seal-mask
.a{fill-rule:evenodd;}techdegree
jclaurent2
Front End Web Development Techdegree Student 10,898 Points

Did you supply the argument "Student <span>Profile</span>" to the "html" method call on the jQuery object with a selecto

Hi,

Get this msg. Any idea to crack it?

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>');

2 Answers

Martin Sole
Martin Sole
80,262 Points

Hi

Looks like you just need to add a space between 'Student' and the opening span tag.