I get lots of validation errors because of <br /> inside <p>. If I remove the br tags then it works fine.
Why is it creating a problem?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not that the
bris inside thep, but rather you’re not ending thebrwith the/character. You have<br>in the code, when it should be<br/>. Which is why the validation error is “end tag for “br” omitted”, it’s telling you that you’ve not ended the tag correctly with a /.Note that in HTML4 it’s not required to close the
brtag with a final slash, but in XHTML it is required as it’s a singleton tag.