+ 1

In html everything goes between open and close tags..but when i run by removing close tag then also it works fine.why??

means why it doesn't effect when there is a concept/rule that everything goes b/w tags..eg:: <html> <head> </head> <body> <p>paragraph 1 <p>paragraph 2</p> </body> </html> see I hav removed close tag in paragraph 1,but still it works fine as it works with close tag??

25th Jan 2017, 5:52 PM
ayush
4 odpowiedzi
+ 7
A web browser will always display HTML pages as best it can even if there are errors, but it might not assume correctly. Even if it does work as you want, though, be sure to fix it.
25th Jan 2017, 6:00 PM
Tamra
Tamra - avatar
+ 6
There's webpage validators that can check over your scripts for errors. I think some webscript-writing software can highlight errors, too.
25th Jan 2017, 6:30 PM
Tamra
Tamra - avatar
+ 1
yes, but if by mistake we miss something like this then how come we know about that, as error is not shown..it continues to work fine.
25th Jan 2017, 6:09 PM
ayush
+ 1
ok.. thanks alot
25th Jan 2017, 6:33 PM
ayush