Title: Unknown Syntax errors
Last modified: August 31, 2016

---

# Unknown Syntax errors

 *  [webmasterglf](https://wordpress.org/support/users/webmasterglf/)
 * (@webmasterglf)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/unknown-syntax-errors-1/)
 * Thanks again in advance for any comments or help on this issue
 * Getting an error on google amp pages etc. and was wondering if it may be coming
   from this plugin –
 * 1. The attribute ‘type’ may not appear in tag ‘style amp-custom’. (see [https://www.ampproject.org/docs/reference/spec.html#stylesheets](https://www.ampproject.org/docs/reference/spec.html#stylesheets))”
 * 2. The tag ‘head > style : boilerplate’ is missing or incorrect, but required
   by ‘noscript > style : boilerplate’. (see [https://www.ampproject.org/docs/reference/spec.html#required-markup](https://www.ampproject.org/docs/reference/spec.html#required-markup))”
   validator.js:330:298
 * 3. The mandatory tag ‘head > style : boilerplate’ is missing or incorrect. (see
   [https://www.ampproject.org/docs/reference/spec.html#required-markup](https://www.ampproject.org/docs/reference/spec.html#required-markup))”
 * Just wondering if this is coming from this plugin or from the AMP plugin from
   automattic or if you have any thoughts on how to fix it.
 * We used the format proscribed by the AMP project page –
    The AMP HTML format 
   Sample document
 *     ```
       <!doctype html>
       <html ⚡>
         <head>
           <meta charset="utf-8">
           <title>Sample document</title>
           <link rel="canonical" href="./regular-html-version.html">
           <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
           <style amp-custom>
             h1 {color: red}
           </style>
           <script type="application/ld+json">
           {
             "@context": "http://schema.org",
             "@type": "NewsArticle",
             "headline": "Article headline",
             "image": [
               "thumbnail1.jpg"
             ],
             "datePublished": "2015-02-05T08:00:00+08:00"
           }
           </script>
           <script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script>
           <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
           <script async src="https://cdn.ampproject.org/v0.js"></script>
         </head>
         <body>
           <h1>Sample document</h1>
           <p>
             Some text
             <amp-img src=sample.jpg width=300 height=300></amp-img>
           </p>
           <amp-ad width=300 height=250
               type="a9"
               data-aax_size="300x250"
               data-aax_pubname="test123"
               data-aax_src="302">
           </amp-ad>
         </body>
       </html>
       ```
   
 * [https://wordpress.org/plugins/glue-for-yoast-seo-amp/](https://wordpress.org/plugins/glue-for-yoast-seo-amp/)

Viewing 1 replies (of 1 total)

 *  [antlavant](https://wordpress.org/support/users/antlavant/)
 * (@antlavant)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/unknown-syntax-errors-1/#post-8174657)
 * Just a quick response but your canonical tag has to be absolute, e.g.:
 * <link rel=”canonical” href=”[http://www.example.com/regular-html-version.html”&gt](http://www.example.com/regular-html-version.html”&gt);

Viewing 1 replies (of 1 total)

The topic ‘Unknown Syntax errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/glue-for-yoast-seo-amp_ddbb3a.svg)
 * [Glue for Yoast SEO & AMP](https://wordpress.org/plugins/glue-for-yoast-seo-amp/)
 * [Support Threads](https://wordpress.org/support/plugin/glue-for-yoast-seo-amp/)
 * [Active Topics](https://wordpress.org/support/plugin/glue-for-yoast-seo-amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/glue-for-yoast-seo-amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/glue-for-yoast-seo-amp/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [antlavant](https://wordpress.org/support/users/antlavant/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/unknown-syntax-errors-1/#post-8174657)
 * Status: not resolved