Alrighty, well I hope you learn something from my example then
Try this one:
Basically, I'm getting the elements by the tag name (div and p). This will return all the elements in an array, so then I need to tell it which one I want in the square brackets. After I've found the fourthP, I can modify the HTML.