+ 3
Can the <html>, the<body> and the <head> be omitted in HTML5?
Omitting <html>, <body> and <head>?
2 Réponses
+ 6
Omitting the html, head, and body tags is certainly allowed by the HTML specs. The reason is that browsers have always sought to be consistent with existing web pages, and the very early versions of HTML didn't define those elements. When HTML 2.0 first did, it was done in a way that the tags would be inferred when missing. See this code :-
https://code.sololearn.com/WNf8OOQgTzcu/#html
+ 2
Thanky you very much