What is html 5 !DOCTYPE what is it what is meta charset i cant get it all | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

What is html 5 !DOCTYPE what is it what is meta charset i cant get it all

18th Jul 2017, 7:25 PM
Asad Ullah Hashmi
Asad Ullah Hashmi - avatar
2 Antworten
0
(Both are optional, but can make browsers read it better.)
18th Jul 2017, 9:29 PM
James
James - avatar
+ 3
Doctype is a tag to define what will be the content of your file. To understand you have to understand that when you are programming it has an unlimited quantity of file's type. Some types are famous, .jpg, .html, .css, .exe, .dmg, etc... but you also can create your own. So for internet you need to define .html and inside you also need to declare what version of HTML you are using, it has several possibilities and without declaring the version, your web browser will use a default one call "Quirk".. your website will looks awfull! Last version of HTML is #5, the way to say "I'm using HTML5" is "!Doctype", for html, xhtml, that was different. Then about metadatas they are just basics informations like "My website is in english", "My website is talking about programming" (for web motors such as Google, Yahoo, etc...)
18th Jul 2017, 7:38 PM
Geoffrey L
Geoffrey L - avatar