donaricano-btn

8. Form and input


1. <Form> 

- HTML forms are used for collect user input

- The element defines an HTML form


2. <input>

This element is the most important form element

- The element has many variations, depending on the type attribute

- text, email, password, radio, submit,number, range, color, time, week..

Attribute

1) value : This attribute specifies the initial value for an input field

2) readonly : It specifies that the input field is read only

 

3) disable : This disabled attribute specifies that the input field is disabled

4) Size : This attribute specifies the size for input field

5) maxlength :  The attribute specifies the maximum allowed length for the input field

6) autofocus : The autofocus attribute is a boolean attribute

 

7) required : When present, it specifies that an input field must be filled out before submitting the form

 

3. <fieldset> and <legend>

- The fieldset element groups related data in a form

- legend element defines a caption for the fieldset


4. <label>

- The tag defines a label for an <input> element

- It provides a usability improvement for mouse users

- If the user clicks on the text within the <label> element, it toggles the control

 



'Front-End > HTML5 + CSS' 카테고리의 다른 글

[HTML5] <meta> 메타태그란?  (3) 2016.11.27
[CSS] Font  (0) 2016.08.05
[HTML5] 7. Multimedia_video  (0) 2016.08.04
[HTML5] 6. ImageMap  (0) 2016.08.04
[HTML5] 5. Image  (0) 2016.08.04
블로그 이미지

리딩리드

,