It’s obvious that you copy/pasted here, so I’m just gonna say please don’t, for your learning’s sake. You won’t learn as well if you don’t do it yourself.
And you don’t need to nest your h2's inside paragraphs. Replace each closing p tag with </h2>.
And again, I must emphasize, please DO NOT copy and paste from the example, because if you don’t understand how it works, and mindlessly paste it in without thinking about it, you won’t learn.