+ 2

why "<html>" is red in colour ?? in "view source"

<html> <head> <title> Hello</title> </head> <body> Hello World </body> </html>

13th Apr 2017, 5:00 PM
Ashiesh Watts
Ashiesh Watts - avatar
3 Réponses
+ 5
Red is the color they use for HTML. Its normal.
13th Apr 2017, 5:35 PM
Louis
+ 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.
15th Apr 2017, 4:05 PM
Louis
+ 1
But if I write <!DOCTYPE html> then <html> become blue in colour in "view source" ? Reason behind this ?
15th Apr 2017, 1:04 PM
Ashiesh Watts
Ashiesh Watts - avatar