SlideShare a Scribd company logo
전승호  @nzin4x
autocomplete autofocus list multiple max, min, step pattern placeholder required form form overrides form formaction formenctype formmethod formnovalidate formtarget
on off If "on" browsers can store the form's input values, to auto-fill the form if the user returns to the page.
autofocus=“autofocus” Makes the input field focused on page load Note:  Cannot be used with type="hidden"
list=“id of datalist” Reference to a datalist element. If defined, a suggestion list (drop down list?) should be displayed, with predefined opions
<input type=email multiple name=cc list=contacts> If present the user is allowed more than one value. datalist  와 호환해서 추가 선택을 가능하게 해줌 .
max=“10” min=“0” step=“2” <input name=bday type=date max=&quot;1979-12-31&quot;> The input field's maximum / minimum value. Allowed when type=date,datetime,datetime-local,month,week,time,number, or range
placeholder=“jonathan@example.com” Defines a hint to help users fill out the input field.
<input name=“name” required> Defines if the input field's value is required in order to submit the form Note:  Cannot be used with type: hidden, image, button, submit, reset
<input name=“cardnumber” pattern=“[0-9]*”> Defines a pattern or format for the input field's value. Example: pattern=&quot;[0-9]&quot; means that the input value must be a number between 0 an 9. Use the standard &quot;title&quot; attribute to describe the pattern.
pattern  attribute is specified and the attribute's value, when compiled as a JavaScript regular expression with the global, ignoreCase, and multiline flags  disabled Example [0-9][A-Z]{3} :  숫자한자리와  3 자리의 대문자 [-0-9]+: -  와 숫자로만 이루어진 문자 ([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9}) : Email
< form  action=&quot;demo_form.asp&quot; method=&quot;get&quot; id=&quot; user_form &quot;> First name:<input type=&quot;text&quot; name=&quot;fname&quot; /> <input type=&quot;submit&quot; /> </form> Last name: <input type=&quot;text&quot; name=&quot;lname&quot;  form =&quot;user_form&quot; /> Defines one ore more forms the input field belongs to. Last name  은  form tag  밖에 있지만  form attribute  를 이용해서 해당 폼에 귀속된다 .
<form action=&quot;demo_form.asp&quot; method=&quot;get&quot; id=&quot;user_form&quot;> E-mail: <input type=&quot;email&quot; name=&quot;userid&quot; /><br /> <input type=&quot;submit&quot; value=&quot;Submit&quot; /> <br /> <input type=&quot;submit&quot;  formaction=&quot;demo_admin.asp&quot;  value=&quot;Submit as admin&quot; /> <br /> <input type=&quot;submit&quot;  formnovalidate=&quot;true&quot; value=&quot;Submit without validation&quot; /> <br /> </form> Overrides the form's * attribute. Must be a valid URL that defines where to send the data when the form is submitted.
http://www.w3schools.com/html5/html5_form_attributes.asp
HTML5 form Ref http://www.w3schools.com/html5/html5_form_attributes.asp HTML5 input Ref http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html http://www.w3schools.com/html5/tag_input.asp HTML5 input tester ( 브라우저  Tester) http://miketaylr.com/code/input-type-attr.html Pattern  이용한 가상 키보드와 보안 http://bit.ly/bdzqaD JavaScript  정규표현식  (RegExp, pattern attribute) http://www.w3schools.com/js/js_obj_regexp.asp

More Related Content

PPT
Form validation client side
PPTX
Form Validation in JavaScript
PPTX
Php Form
ODP
Form Processing In Php
PDF
phptut2
PPT
Form validation server side
PPTX
Message Box in JS
RTF
Html basics 11 form validation
 
Form validation client side
Form Validation in JavaScript
Php Form
Form Processing In Php
phptut2
Form validation server side
Message Box in JS
Html basics 11 form validation
 

What's hot (18)

PPTX
HTML5 Web Forms
PPTX
WP7 HUB_Diseño del interfaz con Silverlight
PPT
Chapter 07 php forms handling
RTF
Earn money with banner and text ads for clickbank
PPTX
Form using html and java script validation
PPT
Symfony2
PDF
Earn money with banner and text ads for Clickbank
PPTX
Javascript validating form
PPTX
10 useful WordPress functions (and maybe more)
PPTX
Forms in html5
PDF
HTML5 Forms - KISS time - Fronteers
PPTX
Html forms
PDF
logincode carasen12
PDF
The Django Book - Chapter 7 forms
PPT
DOCX
Add row in asp.net Gridview on button click using C# and vb.net
HTML5 Web Forms
WP7 HUB_Diseño del interfaz con Silverlight
Chapter 07 php forms handling
Earn money with banner and text ads for clickbank
Form using html and java script validation
Symfony2
Earn money with banner and text ads for Clickbank
Javascript validating form
10 useful WordPress functions (and maybe more)
Forms in html5
HTML5 Forms - KISS time - Fronteers
Html forms
logincode carasen12
The Django Book - Chapter 7 forms
Add row in asp.net Gridview on button click using C# and vb.net
Ad

Viewers also liked (7)

PDF
Learn svg
PPT
Html5, css3, canvas, svg and webgl
PDF
Html5 canvas & svg 2012 dcc
PDF
Predikcija volitev 2011
PDF
SVG For Web Designers (and Developers)
PDF
Dive into HTML5: SVG and Canvas
PDF
Next generation Graphics: SVG
Learn svg
Html5, css3, canvas, svg and webgl
Html5 canvas & svg 2012 dcc
Predikcija volitev 2011
SVG For Web Designers (and Developers)
Dive into HTML5: SVG and Canvas
Next generation Graphics: SVG
Ad

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Electronic commerce courselecture one. Pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Empathic Computing: Creating Shared Understanding
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Big Data Technologies - Introduction.pptx
Programs and apps: productivity, graphics, security and other tools
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
sap open course for s4hana steps from ECC to s4
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Assigned Numbers - 2025 - Bluetooth® Document
Electronic commerce courselecture one. Pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Empathic Computing: Creating Shared Understanding
The AUB Centre for AI in Media Proposal.docx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Big Data Technologies - Introduction.pptx

Html5 new input attributes (@nzin4x)

  • 2. autocomplete autofocus list multiple max, min, step pattern placeholder required form form overrides form formaction formenctype formmethod formnovalidate formtarget
  • 3. on off If &quot;on&quot; browsers can store the form's input values, to auto-fill the form if the user returns to the page.
  • 4. autofocus=“autofocus” Makes the input field focused on page load Note: Cannot be used with type=&quot;hidden&quot;
  • 5. list=“id of datalist” Reference to a datalist element. If defined, a suggestion list (drop down list?) should be displayed, with predefined opions
  • 6. <input type=email multiple name=cc list=contacts> If present the user is allowed more than one value. datalist 와 호환해서 추가 선택을 가능하게 해줌 .
  • 7. max=“10” min=“0” step=“2” <input name=bday type=date max=&quot;1979-12-31&quot;> The input field's maximum / minimum value. Allowed when type=date,datetime,datetime-local,month,week,time,number, or range
  • 8. placeholder=“jonathan@example.com” Defines a hint to help users fill out the input field.
  • 9. <input name=“name” required> Defines if the input field's value is required in order to submit the form Note: Cannot be used with type: hidden, image, button, submit, reset
  • 10. <input name=“cardnumber” pattern=“[0-9]*”> Defines a pattern or format for the input field's value. Example: pattern=&quot;[0-9]&quot; means that the input value must be a number between 0 an 9. Use the standard &quot;title&quot; attribute to describe the pattern.
  • 11. pattern attribute is specified and the attribute's value, when compiled as a JavaScript regular expression with the global, ignoreCase, and multiline flags disabled Example [0-9][A-Z]{3} : 숫자한자리와 3 자리의 대문자 [-0-9]+: - 와 숫자로만 이루어진 문자 ([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9}) : Email
  • 12. < form action=&quot;demo_form.asp&quot; method=&quot;get&quot; id=&quot; user_form &quot;> First name:<input type=&quot;text&quot; name=&quot;fname&quot; /> <input type=&quot;submit&quot; /> </form> Last name: <input type=&quot;text&quot; name=&quot;lname&quot; form =&quot;user_form&quot; /> Defines one ore more forms the input field belongs to. Last name 은 form tag 밖에 있지만 form attribute 를 이용해서 해당 폼에 귀속된다 .
  • 13. <form action=&quot;demo_form.asp&quot; method=&quot;get&quot; id=&quot;user_form&quot;> E-mail: <input type=&quot;email&quot; name=&quot;userid&quot; /><br /> <input type=&quot;submit&quot; value=&quot;Submit&quot; /> <br /> <input type=&quot;submit&quot; formaction=&quot;demo_admin.asp&quot; value=&quot;Submit as admin&quot; /> <br /> <input type=&quot;submit&quot; formnovalidate=&quot;true&quot; value=&quot;Submit without validation&quot; /> <br /> </form> Overrides the form's * attribute. Must be a valid URL that defines where to send the data when the form is submitted.
  • 15. HTML5 form Ref http://www.w3schools.com/html5/html5_form_attributes.asp HTML5 input Ref http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html http://www.w3schools.com/html5/tag_input.asp HTML5 input tester ( 브라우저 Tester) http://miketaylr.com/code/input-type-attr.html Pattern 이용한 가상 키보드와 보안 http://bit.ly/bdzqaD JavaScript 정규표현식 (RegExp, pattern attribute) http://www.w3schools.com/js/js_obj_regexp.asp