HTML5 Doc type | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 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 Respostas
+ 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