The style and graphic design of an AMP page serve a single purpose, which is to load quickly, which is why they are subject to so much control.
Style and layout issues aren't as pervasive as HTML issues, but if you ignore them you risk having your page disappear from the SERP entirely.
AMP styling is based on CSS but here again you face the problem of restricted and disallowed styles and the prohibition of external stylesheets.
In addition to this, you are required to include height and width attributes for each tag that is displayed, making your page easy to scroll.
Can you imagine how many hours it would take to insert these manually?... And then find out that you didn't have to do this since the AMP validator assumes values for various layouts.
Isn't it easier to focus on the ones that actually affect your page's performance?
Image of style and design issues
Missing height attribute on 'amp-frame' tag
Other issues may be related to using regular indonesian phone numbers HTML attributes instead of custom AMP ones, or simply occasional errors in the path.
Image of other style and design issues
There are no tips on how to fix errors on AMP pages reporting style and layout errors, as the solution to the problem usually stems from the nature of the error itself.
C - Remove unsupported template syntax
AMP Validation Errors - Template Issues
In the AMP format, dynamic content can be rendered using templates defined in the AMP document, but these must conform to tags specially designed for this purpose.
The AMP validator checks the syntax of the template language to protect AMP documents against all types of vulnerabilities commonly found on the web.
Mustache error without template leak
An attribute in a tag is found in a URL that contains the Mustache syntax without leaking
In reality, problems with templates are rare and the only recommendation we can give you here is to avoid banned or incomplete templates.
AMP Validation Errors - Style and Layout Issues
-
- Posts: 4
- Joined: Sun Dec 22, 2024 3:49 am