+ 2
why "<html>" is red in colour ?? in "view source"
<html> <head> <title> Hello</title> </head> <body> Hello World </body> </html>
3 odpowiedzi
+ 5
Red is the color they use for HTML. Its normal.
+ 5
Because the tags change color to indicate if things are the way they are supposed to be. Make sure all opening tags have closing tags. In the middle of typing, things may change color to indicate that you are missing closing tags until you type them or if you have a typo.
+ 1
But if I write <!DOCTYPE html> then <html> become blue in colour in "view source" ? Reason behind this ?