Learn HTML by Building a Cat Photo App - Step 1

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


<!-- User Editable Region -->

    <h1 id="heading">Original Heading</h1>

<!-- User Editable Region -->

    <button onclick="changeH1Text()">Click me</button>
      function changeH1Text() {
        var heading = document.getElementById('heading');
        heading.innerHTML = 'CatPhotoApp';

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/113.0.1774.50

Challenge: Learn HTML by Building a Cat Photo App - Step 1

Link to the challenge:

Hello there. Welcome to the FCC forum.

The instructions specified what text to use within the h1 tag. Please, simply replace the text in the h1 with the one given to you, and the test will pass.

Howdy! Thanks for posting your question on the forum.

In order to complete this challenge, change the text, “Original Heading” to “CatPhotoApp”.

Hope this helps!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.