Death_of_Pathos wrote:
...
Haven't met a browser yet that gets upset when you don't close <P>.
...
In HTML, the closing tags are often optional. The </p> is such an optional close.
In XHTML, all close tags are required.
One common mistake, when transitioning between HTML to XHTML is to get all confused about the break tag.
In HTML, there is no closing tag, and you just use <br>
In XHTML, the closing tag is required, and hence you (on the face of it) need <br> </br>
However, the shorthand form is permitted: <br/>
But then people start using this shorthand form in HTML, which is an error.
The problem with not following the strict rules is that each browser is then making a guess at what broken [X]HTML is attempting to do, and each browser is likely to differ in what guess it makes.
It is unfortunate that most browsers are incapable of showing you what "helpful corrections" they are making to website code, before they merrily display it, with whatever fudges they have applied to hide the bugs.
_________________
"Striking up conversations with strangers is an autistic person's version of extreme sports."
Kamran Nazeer