Add Document Elements with D3 help

Tell us what’s happening:

Your code so far


<body>
  <script>
    // Add your code below this line

<h1>

Learning D3
    
</h1>

    d3.select ("h1")
      .append ("h1")
      .text("Learning D3")
  

    
    // Add your code above this line
  </script>
</body>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:

It looks as if you’ve selected h1 and then also appended h1. In fact, you need to select something different. Check the instructions carefully.

Hope that helps!

1 Like

Also, this part of your code is not necessary. You are using d3 to add that code, so typing it in separately to start is redundant.

1 Like