HTML5 forms commonly used by HTML5 mobile devices-4

Source: Internet
Author: User

% H2 = "Chapter 5 HTML5 form elements commonly used by mobile devices"
% Form

% P = "1. Add the prompt content to the text box by using the placeholder attribute"

% Input {: TYPE => 'text',: placeholder => "Enter content "}

% P = "2. autofocus attribute automatically obtains Focus"

% Input {: autofocus => true}

% P = "3. List datalist attribute list data is provided by datalist"

% Input {: List => true,: datalist => ['1', '2', '3']}

% P = "4. AutoComplete attribute automatically completes input on turn off close"

% Input {: AutoComplete => 'on '}

% P = "5. The required attribute cannot be submitted if it is null"

% Input {: required => true}

% P = "6. Search attributes safari & Chrome"

% Input {: TYPE =>: Search}

% P = "7. Email attributes safari"

% Input {: TYPE =>: email}

% P = "8. Number attribute safari"

% Input {: TYPE =>: Number}

% P = "9. Range attribute safari"

% Input {: TYPE =>: range}

% P = "10. Tel property safari"

% Input {: TYPE =>: Tel}

% P = "11. url attribute safari"

% Input {: TYPE = >:url}

% P = "12. datetime attribute safari"

% Input {: TYPE =>: datetime}

% P = "13. datetime-local property safari"

% Input {: TYPE =>: datetime}

% P = "14. time attribute safari"

% Input {: TYPE =>: time}

% P = "15. Date property safari"

% Input {: TYPE =>: date}

% P = "16. Week attribute safari"

% Input {: TYPE =>: week}

% P = "17. month property safari"

% Input {: TYPE =>: month}

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.