I just saw some site like this:
<!doctype html>
<head>
..
</head>
<body>
</body>
There’s no <html>,is it standard?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you can see from the specs, HTML 4 has long allowed the
html,head, andbodytags to all be optional.The HTML5 spec (whose DOCTYPE you observe in your sample) also says:
So, if by “is it standard?” you mean, “is this legal according to standards?”, the answer is “Yes”.
But if by “is it standard?” you mean, “is it commonplace?”, then the answer is: “No, you will find that most web pages in the vast sea of the Internet tend to be wrapped in
<html>elements.Note that this is not the case for XHTML. From the specs: