CJCoding With Joseph
15free / daySign inCreate account

A container with id="para-list" holds three <p> elements. Select all of the paragraphs inside it and add the class 'highlight' to every one.

Platform-Provided HTML (READ-ONLY):

<div id="para-list">
  <p>One</p>
  <p>Two</p>
  <p>Three</p>
</div>

Expected output

All three <p> elements gain class="highlight"

= newline. No newline after the last line.

Hints3 available
Topics
HTML DOM
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (clog, fn, fori)

Your output

Run your code to see the output here...

Test cases

Run your code to see test case results.