I write something after ending HTML just to check type of errors but I found the same thing is in output. Any explanation? | SoloLearn: Learn to code for FREE!

0

I write something after ending HTML just to check type of errors but I found the same thing is in output. Any explanation?

Run program in solo-learn app

5/10/2017 11:23:08 AM

Manoj Mudgal

2 Answers

New Answer

+3

Html is permissive: interpreters ( browsers, app... ) are expected to output a malformed document... So, internally, your </html> is ignored and reported at the end. But you cannot be sure that every browsers will correct it as this... It's also logical to consider to ignore what is after the </html> :P

+1

You will get output too if you rename any text file (without any tags) to html and open it in browser.