0
The beginning of HTML structure
I have seen alot of HTML structure starting..lemme explain: At first we type <!DOCTYPE> right? Some html programs have <!DOCTYPE HTML> or <!DOCTYPE> or nothing at all just starting straight with <html> Sooo can someone help me to understand wats going on?
4 Réponses
+ 1
The doctype html tag is for saying the compiler/browser wich version of html we use (used for the declaration of html5).
Like doctype I think, as far I know, is not a tag, it's a nonsense tag or only an error of this declaration.
Html tag is the root tag of any Html document.
It defines the whole document.
It's always present in a html document.
Hope it helps :)
+ 1
More about this:
https://www.sololearn.com/learning/2211/?ref=app
:)
+ 1
Major
doctype is a special tag, wich is not an element.
html is the root tag element, but not the only childnode of document...
0
don't worry about oldest doctypes, just remember that html5 should start with <!DOCTYPE html> ;)