+ 1

why does the < /p> closing tag is error ?

<p align="center">This is a text <br /> <hr width="10%" align="right" /> This is also a text. </p> the third line (closing p tag) is an error, it says "Unexpected end tag (p). ignored what does it mean? pardon me for my very bad English

4th Sep 2019, 8:00 PM
Mawang Munarwan
Mawang Munarwan - avatar
5 Respostas
+ 2
<hr> is a block element. And inline element like <p> can’t contain a block element. if you want a line between two paragraph, you use two <p> and the border-bottom of the first <p> can be the line. <hr>is used to define a change in content. for example, between two <section> good luck!! 💪
5th Sep 2019, 1:26 AM
Eze
+ 3
Do you have a link to your code? I do not see anything wrong with what you posted here.
4th Sep 2019, 11:06 PM
M J
M J - avatar
+ 2
Hi, Im not sure, but may be, you can not insert <hr> inside a <p>
4th Sep 2019, 8:38 PM
Benjamin Alejandro Luna
Benjamin Alejandro Luna - avatar
+ 1
Thanks
6th Sep 2019, 1:08 AM
Mawang Munarwan
Mawang Munarwan - avatar
+ 1
😜😜 Bla Master
6th Sep 2019, 1:09 AM
Eze