HTML5 Doc type | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

26th Jul 2019, 11:12 AM
[H•e•a•t•h•e•n]
[H•e•a•t•h•e•n] - avatar
10 Answers
+ 9
Both are valid 👍
27th Jul 2019, 4:10 AM
F A R I A
+ 7
HTML is case insensitive, so writing <!DOCTYPE HTML> in uppercase or lowercase doesn't affect your web page. It will work same.
26th Jul 2019, 1:58 PM
Chetali Shah
Chetali Shah - avatar
+ 5
It's the same
26th Jul 2019, 11:38 AM
Manuel
+ 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.
26th Jul 2019, 5:41 PM
HTML Master
HTML Master - avatar
+ 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.
26th Aug 2019, 6:29 PM
Daniel Lister
Daniel Lister - avatar
+ 1
No diffrences
5th Aug 2019, 4:40 PM
‎‏‪Shlomi Raz‬‏‎
‎‏‪Shlomi Raz‬‏‎ - avatar
0
It is just a matter of follow an arbitrary standard doesn't make a difference in the overall output
26th Jul 2019, 6:11 PM
Emmanuel
Emmanuel - avatar
0
yes in upper case or lower cAse the output will be same
27th Jul 2019, 10:20 AM
Sai Teju
Sai Teju - avatar
0
Html is a case sensitive,so we can use upper or lower cases. their is no effect in the output .
27th Jul 2019, 5:21 PM
PRAKASH BANDI
PRAKASH BANDI - avatar
0
Upper or lower Both are valid
3rd Aug 2019, 5:21 PM
Sujay Khara
Sujay Khara - avatar