+ 11

Why the text still can be displayed even when not inside the tags?

21st Dec 2017, 3:43 PM
Nilavarasan
Nilavarasan  - avatar
5 Answers
+ 11
<html> <head> </head> <body> This is a line of text. </body> </html> The text can be placed anywhere...
21st Dec 2017, 4:36 PM
Nilavarasan
Nilavarasan  - avatar
+ 1
That’s true, but it’s not standard.
21st Dec 2017, 4:40 PM
Iman Jamaatlou
Iman Jamaatlou - avatar
+ 1
its because this text is not a tag, and browser have to output these words as text
21st Dec 2017, 8:13 PM
BodyaBuilder
BodyaBuilder - avatar
0
Can u give an example?
21st Dec 2017, 4:33 PM
Iman Jamaatlou
Iman Jamaatlou - avatar
0
I think it's because of html. In html 4 and previous versions even if you don't close the tags it works. But when you come to xhtml... Rules are strict. Should open and close tags properly. Shouldn't miss the quotation marks....
3rd Dec 2018, 2:33 PM
Me&You
Me&You - avatar