+ 6
HTML5 Doc type
Is there a reason for making this `<!DOCTYPE HTML> ` uppercase because I've seen a lot of people use lowercase in their source code and it works fine.
10 Respuestas
+ 9
Both are valid 👍
+ 7
HTML is case insensitive, so writing
<!DOCTYPE HTML>
in uppercase or lowercase doesn't affect your web page. It will work same.
+ 5
It's the same
+ 4
It's the same because HTML was created case insensitive, and they've always wanted to change it, but never have from what I've heard so they could standardize it. Usually though, tags are lowercase, and DOCTYPE is uppercase.
+ 2
If your using vscode, (not sure if it works on other text editors), and struggling to remember the layout for HTML. Do this on an empty HTML file:
!
Then tab button
And marvel at the magic of vscode!
It doesn't specifically answer your question, but is useful.
I would recommend learning the layout though, practice, practice, practice.
+ 1
No diffrences
0
It is just a matter of follow an arbitrary standard doesn't make a difference in the overall output
0
yes in upper case or lower cAse the output will be same
0
Html is a case sensitive,so we can use upper or lower cases.
their is no effect in the output .
0
Upper or lower Both are valid