I am trying get pass this excerise and I don’t know what is wrong with the way I am writing this.
Prompt: Go ahead and add a
<p> tag .after() the
<div> with the ID #one. You can place any text you like in your
My Inputed Code:
Before and After
We can specify where in the DOM we insert an element with the .before() and .after() functions. The syntax looks like this:
Where ‘target’ is the element after which you want to add something and the bit between
<tag>s is the HTML element you want to add. You can add
<div>s, or any other valid HTML you like.