0

Why Can't I Put List Tags (<ul> and <ol>) within a <p> Tag?

Why is the code down below counted as an error. I get a red X beside my </p> below that says," Unexpected end tag (p). Ignored." -------------------------------------------------------------------------------------------------------------- <p class="overview"> My name is Steve. Today is going to be a good day I assure you. Well have a nice day, I'm off to go shopping. <br> Down below is a nifty list of things I found in the store. <ul> <li> Cheese </li> <li> Crackers </li> <li> Eggs </li> <li> Milk </li> </ul> </p>

12th Dec 2016, 7:11 PM
BrightAsTheStars
1 Odpowiedź
0
Can you give your full html code? it could be that somewhere else you have forgotten another <p> tag so you would have 2 closing </p> tags, for one <p>. For me that part works as it is on the code playground: <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <p class="overview"> My name is Steve. Today is going to be a good day I assure you. Well have a nice day, I'm off to go shopping. <br> Down below is a nifty list of things I found in the store. <ul> <li> Cheese </li> <li> Crackers </li> <li> Eggs </li> <li> Milk </li> </ul> </p> </body> </html>
12th Dec 2016, 9:03 PM
Suizo
Suizo - avatar