Skip to content
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

Make all metadata optional in AMP. #593

Merged
merged 1 commit into from
Oct 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 3 additions & 23 deletions spec/amp-html-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,29 +102,9 @@ AMP HTML documents MUST

### Metadata

#### Schema.org
It is encouraged that AMP HTML documents are annotated with standardized metadata: [Open Graph Protocol](http://ogp.me/), [Twitter Cards](https://dev.twitter.com/cards/overview), etc.

AMP HTML documents MUST be marked up with [schema.org/CreativeWork](https://schema.org/CreativeWork) or any of its more specific types such as [schema.org/NewsArticle](https://schema.org/NewsArticle) or [schema.org/BlogPosting](https://schema.org/BlogPosting). More types may be added in the future.

Both JSON-LD and microdata serializations of schema.org are supported.

The following properties of `CreativeWork` must be present:

- headline
- datePublished

The following properties are recommended:

- image
- description
- articleBody
- alternativeHeadline
- author
- publisher

#### Open Graph Protocol, Twitter Cards and similar metadata

It is encouraged that AMP HTML documents are annotated with standardized metadata: Open Graph Protocol, Twitter Cards, etc.
We also recommend that AMP HTML documents are marked up with [schema.org/CreativeWork](https://schema.org/CreativeWork) or any of its more specific types such as [schema.org/NewsArticle](https://schema.org/NewsArticle) or [schema.org/BlogPosting](https://schema.org/BlogPosting).

### HTML Tags

Expand All @@ -151,7 +131,7 @@ HTML tags can be used unchanged in AMP HTML. Certain tags have equivalent custom
| link | Allowed for certain values of rel: `canonical`. `stylesheet` is generally disallowed, but some values may be whitelisted for font providers. |
| meta | The `http-equiv` attribute is banned. Otherwise allowed. |
| <a name="ancr"></a>a | The `href` attribute value must not begin with `javascript:`. If set, the `target` attribute value must be `_blank`. Otherwise allowed. [🔗](#ancr) |
| svg | Most SVG elements are allowed |
| svg | Most SVG elements are allowed |

Validator implementations should use a whitelist based on the HTML5 specification with the above tags removed. See [AMP Tag Addendum](amp-tag-addendum.md).

Expand Down