0
What if we don't close a tag?
If we don't close the tag, would it works, or the browser is going to give errors?
2 ответов
+ 2
Tags like
<br> <IMG> <hr> <li> , etc
doesn't need an end tag
But tags like <head> <html> <body> <p> <ol> <ul> , etc needs an end tag
Not writing an end tag would not bring an error but it would not show the content inside that tag
So, it's better to follow the rules😎