-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<meta charset="utf-8">
missing from intro example
#8726
Comments
If we were to make this change, we would also need to update the DOM tree representation later in the section. I would be glad to make a pull request if these changes are appropriate. |
A character encoding declaration is not required for conformant HTML. What is required is that if you include one, its contents be |
Thank you for your reply. If I understand the spec correctly, the character encoding declaration is required in a certain circumstance:
This is quoted from the relevant section of the specification. Are we assuming that, for the purposes of the examples, there is either a byte-order marker or Content-Type metadata specified for the document? |
I was actioned by the I18N WG with looking into this issue and it's friend #8728. Our tendency as a WG is to agree that it would be nice to have a |
The example from the introduction does not have a character encoding declaration. Although the character encoding declaration is not necessary in all circumstances, it would be helpful to include it here to better illustrate a strictly conforming HTML document.
<!DOCTYPE html> <html lang="en"> <head> + <meta charset="utf-8"> <title>Sample page</title> </head> <body> <h1>Sample page</h1> <p>This is a <a href="demo.html">simple</a> sample.</p> <!-- this is a comment --> </body> </html>
The text was updated successfully, but these errors were encountered: