amphtml: 'amp' in html tag not valid in HTML5?
Had a look through the open and closed issues but couldn’t see this, apologies if it’s a duplicate.
The specifications require:
- start with the doctype <!doctype html>. 🔗
- contain a top-level
<html ⚡> tag or <html amp>
However this:
<!doctype html>
<html amp>
<head><title>title</title></head>
</html>
Does not pass the validator here: https://validator.w3.org/nu/#textarea
It fails with the error:
Error: Attribute amp not allowed on element html at this point.
I’ve been digging around various specs and can’t find any that reference extra bits after ‘html’ apart from things in the style ‘x=y’ where x is one of https://html.spec.whatwg.org/multipage/dom.html#global-attributes
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 2
- Comments: 17 (8 by maintainers)
I believe the continued usage of ⚡is unwise and should be removed from the spec immediately.
It seems the primary reason to have it is that it just looks good. That aside, its not something that is helpful if you’re searching Github, Google, StackOverflow and likely many other search engines.
Its also not something you can easily type. Sure there is “amp” but why have 2 ways to do the same thing?