Empty <p>


#1

This is my code

<!DOCTYPE html> 
<html>
<head>
<title> trial run </title>
</head>
<body> 
<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>
</body>
</html>

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


#2

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


#4

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


#5

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.


#6

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


#7