And you know that a truly valid HTML document does not require the tags <HTML>, <BODY>, <HEAD>, which many consider to be mandatory attributes of the HTML document. And here is a document:
<!DOCTYPE html> <title> HTML-</title>
<!DOCTYPE html> <title> HTML-</title>
with a bang will pass validation. Although it is desirable to add <meta http-equiv = "Content-Type" content = "text / html; charset = utf-8 ">, so there are fewer warnings, but also optional.
So, if you are too lazy to type extra letters or you save every byte, taking care of the user and reducing the amount of traffic they consume, you can use this HTML document template (already HTML5 document):
<!DOCTYPE html> <meta charset="utf-8"> <title> HTML-</title>
<!DOCTYPE html> <meta charset="utf-8"> <title> HTML-</title>
And further, observing the semantics of the elements
PS I decided to write a note after reading the HTML5
post . One comment mentioned that BODY is optional, but for some reason it was not recommended to use it. I see no reason. By the way, in the Yandex page code, the mentioned tags are missing)
UPD: one of the most compelling reasons for writing posts on Habré for me is the opportunity to learn new things in the process of discussion. It seems to be a simple post, and here in the comments there are pearls for me.