Welcome to the mobile web
Validate: https://www.ampproject.org/docs/fundamentals/validate
1. add #development=1 to URL and debug in DevTools
2. Paste code to https://validator.ampproject.org
3. Chrome Extension: AMP Validator
4. gulp-amphtml-validator
5. Command line: amphtml-validator
Conditional comment is not allowed
Don't use -amp- for CSS class and ID and i-amp- for tag names and tag attribute
Attribute onclick, onmouseover not allowed
Use on attribute to install event handlers on elements
eventName:targetId[.methodName[(arg1=value, arg2=value)]]
e.g on="tap:fooId.showLightbox"
on="submit-success:lightbox1;submit-error:lightbox2"
Load extended components:
https://cdn.ampproject.org/$RUNTIME_VERSION/$ELEMENT_NAME-$ELEMENT_VERSION.js
Extended template
Hello {{you}}!
Hello!
Big, bold article quote goes here.
And the Raven, never flitting, still is sitting, still is sitting. On the pallid bust of Pallas just above my chamber door; And his eyes have all the seeming of a demon’s that is dreaming, And the lamp-light o’er him streaming throws his shadow on the floor; And my soul from out that shadow that lies floating on the floor. Shall be lifted—nevermore!
Big, bold article quote goes here.