HTML5+CSS3 Authoritative Guide reading notes (iii)---forms and other new and improved elements

Source: Internet
Author: User

First, new elements and attributes

1. Form properties of elements within the forms.

HTML5:

<form id= "Testform" >

<input type=text>

</form>

<textarea form = testform></textarea>

2. FormAction attributes of elements within a form

<form id= "Testform" action= "test.jsp" >

<input type=submit value= "QQQ" formaction= "test1.jsp" > Submit to Test1

<input type=submit value= "AAA" formaction= "test2.jsp" > Submitted to Test2

<input type=submit value= "aaaaaa" formaction= "test3.jsp" > Submit to Test3

</form>

3. The FormMethod attribute of the elements within the form.

It is primarily used to determine if the commit is a post or a get

4. The Formenctype attribute of the elements within the form.

5. The Formtarget attribute of the elements within the form.

6. The autofocus attribute in the form.

7. Required attribute in form

8. The lables attribute in the form.

9, the control property of the label.

10. The placeholder property of the text box.

11. The List property of the text box.

12. The AutoComplete property of the text box.

13. The Pattern property of the text box.

14. The Selectiondirection property of the text box.

15. The Indeterminate property of the check box.

16. The width and Heigh properties of the image submit button.

17. TextArea's maxlength and wrap properties.

Greatly increase and improve the type of the input attribute.

1. Type of URL. 2. Type of email. 3.date type. 4.time type 5, datetime type. 6, datetime-local type. 7.month type. 8.week type. 9.number type. 10, Range type. such as

Use styles for new form elements

Second, form verification

Automatic validation of required pattern

Third, the new page element

Figure Figcaption

Added detail and summary elements.

Mark is highlighted.

The quantity value within the range specified by the meter element. Property value: Max min low value high optimum

Improved OL list. Start reversed

The enhanced SCRIPT element. Async defer

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

HTML5+CSS3 Authoritative Guide reading notes (iii)---forms and other new and improved elements

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.