So I just did the following:
<p>"Life is very short and what we have to do must be done in the now." - Audre Lorde</p>
<p>thats is a nice qoute</p>
<p> oh wow</p>
I used another opening and closing tag after the closing body tag
Why did it not show an error after running?
The “oh wow” message still showed when I ran it?
HTML is non-verbose, which is why we depend upon validators and linters to catch errors or omissions.
It still showed the “oh wow” paragraph because the browser is programmed to “move” the closing
</html>) tag(s) placed by the coder, in case there’s more content under these tags, and will place it (or them) at the very end of the code (and so what you wrote after the
</body> tag now ended up as a child of
<body> and therefore it’s displayed if it’s an element that is supposed to be displayed).
Some browsers might not do this and thus some problems might arise, so it’s best to not have anything after the closing
</body> tag (except the closing
</html> tag in case you opened it).