AMP Validation Errors - HTML Problems

Dive into business data optimization and best practices.
Post Reply
masud.ibne8800
Posts: 4
Joined: Sun Dec 22, 2024 3:49 am

AMP Validation Errors - HTML Problems

Post by masud.ibne8800 »

The AMP audit comprises over 40 checks and the results are divided into 3 groups that you are probably used to using:

HTML problems.

Style and design issues.

Problems with templates.

AMP Validation Error Sample
This is an example of how AMP error validation is displayed

The best thing to do is to take a brief look at AMP validation errors and the options we have to solve them.

A - Adapt your HTML
To improve HTML with AMP's new properties, the format's creators had to limit it.

All these restrictions that a webmaster is not indonesian phone numbers used to dealing with make HTML errors the absolute leaders of AMP problems.

Unfortunately, these are very serious as they deprive your site of all the AMP benefits you would like to benefit from.

For example, when it comes to checking tags and attributes, you have to dig through a long log, which ones are whitelisted, and wrestle with a huge volume of information regarding which ones are not allowed.

Image

In addition, there are new AMP-specific tags and other custom elements that make the webmaster's job more complicated, especially if the site is large.

Here we show you some real-life cases
Script tag not allowed
There is an illegal "script" tag on line 1 of the page code, which may mean that custom Javascript was used or some AMP component was implemented incorrectly.

Because using Javascript can seriously slow down your page load speed, the AMP profile prohibits the use of that tag unless the script is of type application/ld+json or if we are looking for a required script tag to load AMP runtime/extended components.
Post Reply