Empty <p>

This is my code

<!DOCTYPE html> 
<title> trial run </title>
<p><h1> John </h1> </p>
<p>this has been broken for a while</p>
<p>this is not empty</p>
<p> this is not working</p>

It says there is empty p tags but I have checked and asked other people but I have no clue. thx

You shouldn’t not nest headings (h1) into paragraphs, and vice versa

1 Like

Thx m8 it fixed it! I’ll definitely remember this for the future

I have a similar problem!
Error; Oops, try again. No empty p tags! Make sure to write a bit about yourself in all three paragraphs.

Well, what do you want me to say? I write specific solutions for a problem. Which means, this solution might not work for you. Please create your own topic with code, error message and question