How To Solve Every AMP Errors In PHP Website Testing

Only 3 error type left from AMP test

Custom JavaScript is not allowed. (23 instances)

<script src=""></script>
<script src=""></script>
<script src=""></script> 

The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value. (10 instances)

<link rel="stylesheet" target="_blank" rel="nofollow noreferrer" href="">
<link target="_blank" rel="nofollow noreferrer" href="" rel="stylesheet"> 
<link rel="stylesheet" target="_blank" rel="nofollow noreferrer" href="" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />

The tag 'img' may only appear as a descendant of tag 'noscript'. Did you mean 'amp-img'? (50 instances)

For event `<img>` tag it is showing error. I have even used alt, width, height attributes properly.

I cannot solve these errors. Please someone tell me how to go through this.

Cannot open website in internet explorer also.

I am using



AMP has strict rules you have to abide by.

You can't just load js. You need to use allowed scripts and components:

You can't use <img> tag, you need to use <amp-img>

You can't load fonts the regular way, you need to use amp-font: