FIX The mandatory attribute 'target' is missing in tag 'FORM [method=GET]'. & Custom JavaScript AMP ERROR

Im getting The mandatory attribute ‘target’ is missing in tag ‘FORM [method=GET]’ below error

<form action="https://web1expert.com" method="get">
<label class="screen-reader-text" for="cat">Our Portfolio</label>
<select name="cat" id="cat" class="postform">
<option value="-1">Select Category</option>
<option class="level-0" value="11">All Articles Samples</option>
<option class="level-0" value="1">All Graphics Project</option>
<option class="level-0" value="16">Blog</option><option class="level-0" value="5">Brochure</option>
<option class="level-0" value="212">Business Articles Samples</option>
<option class="level-0" value="22">Cryptocurrency</option>
<option class="level-0" value="23">Digital Packet</option>
<option class="level-0" value="24">Flyers</option>
<option class="level-0" value="17">Google QnA</option>
<option class="level-0" value="203">Health Articles Samples</option>
<option class="level-0" value="6">Logo</option>
<option class="level-0" value="210">Our Hindi Articles Samples</option>
<option class="level-0" value="204">Our Media Articles Samples</option>
<option class="level-0" value="12">Our Review Articles Samples</option>
<option class="level-0" value="13">Our Social Media Articles Samples</option>
<option class="level-0" value="26">Our Videos Project</option>
<option class="level-0" value="10">Our Website Project</option>
<option class="level-0" value="53">SEO</option>
<option class="level-0" value="8">Social Media</option>
<option class="level-0" value="4">Standee</option>
<option class="level-0" value="15">Tech Articles Samples</option>
<option class="level-0" value="74">Tech QnA</option>
<option class="level-0" value="73">Technology Guide</option>
<option class="level-0" value="72">Webdesign QnA</option>
<option class="level-0" value="46">Wordpress</option>
</select>
</form>
<script type="text/javascript">

Custom JavaScript is not allowed ERROR BELOW FOR https://web1expert.com/amp/

<script type="text/javascript">

Crawl issue ERROR  FOR http://share-ask.com/

The advantage of using AMP is that it is very fast at rendering “above the fold” text, images, videos, etc. This is achieved by restricting JavaScript so that only proprietary tried and tested routines may be used.

Your JavaScript fails AmpProject validation and prevent the use of Google’s Free CDN caching and their preferential treatment for mobile SEO.

Checkout AmpByExample.com to see if there are any suitable tried and tested scripts available which satisfy your requirements.

And what exactly is your question?

1 Like

amp validator is giving error he mandatory attribute ‘target’ is missing in tag ‘FORM [method=GET]’.

<form action="https://web1expert.com" method="get">
<label class="screen-reader-text" for="cat">Our Portfolio</label>
<select name="cat" id="cat" class="postform">
 <option value="-1">Select Category</option>
 <option class="level-0" value="11">All Articles Samples</option>
 <option class="level-0" value="1">All Graphics Project</option>
 <option class="level-0" value="16">Blog</option>
 <option class="level-0" value="5">Brochure</option> 
 <option class="level-0" value="212">Business Articles Samples</option>
 <option class="level-0" value="22">Cryptocurrency</option>
 <option class="level-0" value="23">Digital Packet</option>
 <option class="level-0" value="24">Flyers</option>
 <option class="level-0" value="17">Google QnA</option>
 <option class="level-0" value="203">Health Articles Samples</option>
 <option class="level-0" value="6">Logo</option>
 <option class="level-0" value="210">Our Hindi Articles Samples</option>
 <option class="level-0" value="204">Our Media Articles Samples</option>
 <option class="level-0" value="12">Our Review Articles Samples</option>
 <option class="level-0" value="13">Our Social Media Articles Samples</option>
 <option class="level-0" value="26">Our Videos Project</option>
 <option class="level-0" value="10">Our Website Project</option>
 <option class="level-0" value="53">SEO</option>
 <option class="level-0" value="8">Social Media</option>
 <option class="level-0" value="4">Standee</option>
 <option class="level-0" value="15">Tech Articles Samples</option>
 <option class="level-0" value="74">Tech QnA</option>
 <option class="level-0" value="73">Technology Guide</option>
 <option class="level-0" value="72">Webdesign QnA</option>
 <option class="level-0" value="46">Wordpress</option>
 </select>
 </form>
 <script type="text/javascript">

Custom JavaScript is not allowed ERROR BELOW FOR https://web1expert.com/amp/

<script type="text/javascript">


Crawl issue ERROR BELOW FOR http://share-ask.com/amp/ 

Give this page a read

target

A name or keyword indicating where to display the response that is received after submitting the form. …

1 Like

Yes, you said so. And it’s missing alright.
But that’s not a question. What is your question? What is it you don’t understand about that error message?

I need better AMP plugin to fix this error

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.