Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Google's AMP Project (Accelerated Mobile Pages) ban form and input tags?

Tags:

amp-html

According to the specs the AMP project bans HTML tags like form, input, textarea, select and option.

However, Google's AMP Search Page uses a form and input tag.

What's the reason for banning input elements?

like image 368
Marc Anthony Avatar asked Oct 09 '15 08:10

Marc Anthony


1 Answers

Per Malte Ubl's comment on 1/11/2017, form support has been launched. See http://ampproject.org/docs/reference/components/amp-form.

Previous answers that I provided are now outdated, but preserved below. Thanks.

========================================

See the answer provided by @nickh for more recent developments with AMP. Google's "Intent to Implement: AMP Forms Support" will supersede my old answer. My answer below was provided in October 2015, and is now outdated. Thanks!

========================================

Since the focus of AMP is static web pages, form elements would seem to be out of scope.

Per the GitHub proof of concept: "AMP HTML is a way to build web pages for static content that render with reliable, fast performance." https://github.com/ampproject/amphtml

And the October 7, 2015 announcement states, "We decided to focus entirely on static content as it lends itself to more radical optimization approaches that are easier to apply across the board." https://www.ampproject.org/how-it-works/

Essentially Google is addressing low hanging fruit in web technology.

like image 131
Ken Palmer Avatar answered Sep 21 '22 17:09

Ken Palmer