The following validates but with a warning that there is no language attribute (Bob Tabor,
"Understanding the HTML5 You Wrote" video)
<!DOCTYPE html>
<title>mysite</title>
<meta charset="utf-8">
Warning: Consider adding a lang attribute to the html start tag to declare the language
of this document.
The following validates
with no warnings
<!DOCTYPE html>
<html lang="en">
<title>mysite</title>
<meta charset="utf-8">
</html>
If a html page (
expt.html
) contains
only the following line of code
<p>hello there</p>
what is seen by the browser (
inspect element
) is
<html>
<head></head>
<body>
<p>hello there</p>
</body>
</html>