SlideShare une entreprise Scribd logo
1  sur  5
TRANSLATE

                                                                                                                             Search w3schools.com            Search


  HOME    HTML     C SS   XML    JAVASC RIPT   ASP   PHP     SQL   MORE...                                   R EFER ENC ES    |   EXAMPLES    |    FO R UM   |   ABO UT




                            HTML5 Form Attributes
HTML5 Tutorial                                                                                                                                    WEB HOSTING

HTML5   Home                                                                                                                                      Best Web Hosting
HTML5   Introduction                                                                                                                          PHP MySQL Hosting
HTML5   New Elements        « Previous                                                                       Next Chapter »
HTML5   Video                                                                                                                                Best Hosting C oupons
HTML5   Audio
HTML5   Canvas              HTML5 New Form Attributes                                                                                         UK Reseller Hosting

HTML5   Web Storage                                                                                                                                C loud Hosting
                            This chapter covers some of the new attributes for <form> and <input>.
                                                                                                                                                  Top Web Hosting
HTML5 Forms                 New form attributes:                                                                                             $7.95/mo SEO Hosting
HTML5 Input Types
HTML5 Form Elements                 autocomplete                                                                                                  WEB BUILDING
HTML5 Form Attributes               novalidate
                                                                                                                                             Download XML Editor
HTML5 Reference             New input attributes:                                                                                        FREE Website BUILDER
HTML5 Tags                          autocomplete                                                                                         Free Website Templates
HTML5 Attributes                    autofocus                                                                                            Free WordPress Themes
HTML5 Events                        form
                                    form overrides (formaction, formenctype, formmethod, formnovalidate, formtarget)                         W3SCHOOLS EXAMS
HTML5 Tags                          height and width                                                                                        Get C ertified in:
<!-->                               list                                                                                                 HTML, C SS, JavaScript,
<!DOCTYPE>                          min, max and step                                                                                      XML, PHP, and ASP
<a>                                 multiple
<abbr>                              pattern (regexp)                                                                                         W3SCHOOLS BOOKS
<acronym>                           placeholder                                                                                                  New Books:
<address>                           required                                                                                                     HTML, C SS
<applet>                                                                                                                                     JavaScript, and Ajax
<area>
<article>                   Browser Support                                                                                                        STATISTICS
<aside>                                                                                                                                        Browser Statistics
<audio>                     Attribute                  IE               Firefox      Opera          Chrome           Safari                       Browser OS
<b>                                                                                                                                             Browser Display
                            autocomplete               8.0              3.5          9.5            3.0              4.0
<base>
<basefont>                  autofocus                  No               4.0          10.0           3.0              4.0                      SHARE THIS PAGE
<bdo>
                            form                       No               4.0          9.5            10.0             No                             Share with »
<big>
<blockquote>                form overrides             No               4.0          10.5           10.0             No
<body>
<br>                        height and width           8.0              3.5          9.5            3.0              4.0
<button>
                            list                       No               4.0          9.5            No               No
<canvas>
<caption>                   min, max and step          No               No           9.5            3.0              No
<center>
                            multiple                   No               3.5          11.0           3.0              4.0
<cite>
<code>                      novalidate                 No               4.0          11.0           10.0             No
<col>
                            pattern                    No               4.0          9.5            3.0              No
<colgroup>
<command>                   placeholder                No               4.0          11.0           3.0              3.0
<datalist>
                            required                   No               4.0          9.5            3.0              No
<dd>
<del>
<details>
<dfn>
<dir>
                            autocomplete Attribute
<div>
                            The autocomplete attribute specifies that the form or input field should have an autocomplete
<dl>
                            function.
<dt>
<em>                        Note: The autocomplete attribute works with <form>, and the following <input> types: text, search,
<embed>                     url, telephone, email, password, datepickers, range, and color.
<fieldset>
<figcaption>                When the user starts to type in an autocomplete field, the browser should display options to fill in
<figure>                    the field:
<font>
<footer>
<form>                          Example
<frame>
<frameset>                      <form action="demo_form.asp" method="get" autocomplete="on">
<h1> - <h6>                     First name: <input type="text" name="fname" /><br />
<head>                          Last name: <input type="text" name="lname" /><br />
<header>
                                E-mail: <input type="email" name="email" autocomplete="off" /><br />
<hgroup>
<hr>
                                <input type="submit" />
<html>                          </form>
<i>
<iframe>
                                 Try it yourself »
<img>
<input>
<ins>                       Note: In some browsers you may need to activate the autocomplete function for this to work.
<keygen>
<kbd>
<label>
<legend>
                            autofocus Attribute
<li>
                            The autofocus attribute specifies that a field should automatically get focus when a page is loaded.
<link>
<map>                       Note: The autofocus attribute works with all <input> types.
<mark>
<menu>
              Example
<meta>
<meter>
<nav>          User name: <input type="text" name="user_name"                      autofocus="autofocus" />
<noframes>
<noscript>      Try it yourself »
<object>
<ol>
<optgroup>
<option>
<output>     form Attribute
<p>
<param>      The form attribute specifies one or more forms the input field belongs to.
<pre>
<progress>   Note: The form attribute works with all <input> types.
<q>
<rp>         The form attribute must refer to the id of the form it belongs to:
<rt>
<ruby>        Example
<s>
<samp>
<script>
               <form action="demo_form.asp" method="get" id="user_form">
<section>      First name:<input type="text" name="fname" />
<select>       <input type="submit" />
<small>        </form>
<source>       Last name: <input type="text" name="lname" form="user_form" />
<span>
<strike>
<strong>        Try it yourself »
<style>
<sub>
<summary>    Note: To refer to more than one form, use a space-separated list.
<sup>
<table>
<tbody>      Form Override Attributes
<td>
<textarea>   The form override attributes allow you to override some of the attributes set for the form element.
<tfoot>
<th>         The form override attributes are:
<thead>
                    formaction - Overrides the form action attribute
<time>
                    formenctype - Overrides the form enctype attribute
<title>
                    formmethod - Overrides the form method attribute
<tr>
<tt>                formnovalidate - Overrides the form novalidate attribute
<u>                 formtarget - Overrides the form target attribute
<ul>
             Note: The form override attributes works with the following <input> types: submit and image.
<var>
<video>
<wbr>         Example
<xmp>
               <form action="demo_form.asp" method="get" id="user_form">
               E-mail: <input type="email" name="userid" /><br />
               <input type="submit" value="Submit" />
               <br />
               <input type="submit" formaction="demo_admin.asp" value="Submit as admin" />
               <br />
               <input type="submit" formnovalidate="true"
               value="Submit without validation" />
               <br />
               </form>

                Try it yourself »


             Note: These attributes are helpful for creating different submit buttons.


             height and width Attributes
             The height and width attributes specifies the height and width of the image used for the input type
             image.

             Note: The height and width attributes only works with <input> type: image.


              Example

               <input type="image" src="img_submit.gif" width="24" height="24" />

                Try it yourself »




             list Attribute
             The list attribute specifies a datalist for an input field. A datalist is a list of options for an input field.

             Note: The list attribute works with the following <input> types: text, search, url, telephone, email,
             date pickers, number, range, and color.


              Example

               Webpage: <input type="url" list="url_list" name="link" />
               <datalist id="url_list">
               <option label="W3Schools" value="http://www.w3schools.com" />
               <option label="Google" value="http://www.google.com" />
               <option label="Microsoft" value="http://www.microsoft.com" />
               </datalist>
Try it yourself »



min, max and step Attributes
The min, max and step attributes are used to specify restrictions for input types containing numbers
or dates.

The max attribute specifies the maximum value allowed for the input field.

The min attribute specifies the minimum value allowed for the input field.

The step attribute specifies the legal number intervals for the input field (if step="3", legal numbers
could be -3,0,3,6, etc).

Note: The min, max, and step attributes works with the following <input> types: date pickers,
number, and range.

The example below shows a numeric field that accepts values between 0 and 10, with a step of 3
(legal numbers are 0, 3, 6 and 9):


 Example

  Points: <input type="number" name="points" min="0" max="10" step="3" />

   Try it yourself »




multiple Attribute
The multiple attribute specifies that multiple values can be selected for an input field.

Note: The multiple attribute works with the following <input> types: email, and file.


 Example

  Select images: <input type="file" name="img" multiple="multiple" />

   Try it yourself »




novalidate Attribute
The novalidate attribute specifies that the form or input field should not be validated when
submitted.

If this attribute is present the form will not validate form input.

Note: The novalidate attribute works with: <form> and the following <input> types: text, search,
url, telephone, email, password, date pickers, range, and color.


 Example

  <form action="demo_form.asp" novalidate="novalidate">
  E-mail: <input type="email" name="user_email" />
  <input type="submit" />
  </form>

   Try it yourself »




pattern Attribute
The pattern attribute specifies a pattern used to validate an input field.

The pattern is a regular expression. You can read about this in our JavaScript tutorial.

Note: The pattern attribute works with the following <input> types: text, search, url, telephone,
email, and password

The example below shows a text field that can only contain three letters (no numbers or special
characters):


 Example

  Country code: <input type="text" name="country_code"
  pattern="[A-z]{3}" title="Three letter country code" />

   Try it yourself »




placeholder Attribute
The placeholder attribute provides a hint that describes the expected value of an input field.

Note: The placeholder attribute works with the following <input> types: text, search, url, telephone,
email, and password

The hint is displayed in the input field when it is empty, and disappears when the field gets focus:
Example

  <input type="search" name="user_search"               placeholder="Search W3Schools" />

  Try it yourself »




required Attribute
The required attribute specifies that an input field must be filled out before submitting.

Note: The required attribute works with the following <input> types: text, search, url, telephone,
email, password, date pickers, number, checkbox, radio, and file.


 Example

  Name: <input type="text" name="usr_name" required="required" />

  Try it yourself »




« Previous                                                                        Next Chapter »

Free Online Website Builder - No Downloading Needed
Create a free Flash website with our simple, online web design editing platform. Stunning templates
and user-friendly tools make website building easy and fun.

Start Creating your free website now!


Stylus Studio® XML Development Environment



Stylus Studio® 2011 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive
and intuitive XML toolset to tackle today's advanced XML data transformation and aggregation
challenges.

                                           XML Pipeline Editor, Debugger and Code Generator
                                           DataDirect XML Converters
                                           XQuery Mapper, Editor, Debugger, and Profiler
                                           XSLT Mapper, Editor, Debugger, Designer, and
                                           Profiler
                                           Java and C# for .Net Code Generation
                                           XML Schema Designer With Documentation
                                           Generator
                                           XML Editor With Full XPath Integration


                                         Download a free trial now




                                    W3Schools' Online Certification
                                    The perfect solution for professionals who need to balance
                                    work, family, and career building.

                                    More than 6000 certificates already issued!

                                        Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).



                                                                                  RE P O RT   E RRO R   |   HO ME   |   TO P   |   P RI N T   |   FO RU M   |   A BO U T


W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding.
 Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content.
                   While using this site, you agree to have read and accepted our terms of use and privacy policy.
                                      C opyright 1999-2011 by Refsnes Data. All Rights Reserved.

Contenu connexe

Tendances

Adaptive Web Design Workshop [Iceweb 2011]
Adaptive Web Design Workshop [Iceweb 2011]Adaptive Web Design Workshop [Iceweb 2011]
Adaptive Web Design Workshop [Iceweb 2011]Aaron Gustafson
 
HTML5 & CSS3 Workshop [FoWD NYC 2011]
HTML5 & CSS3 Workshop [FoWD NYC 2011]HTML5 & CSS3 Workshop [FoWD NYC 2011]
HTML5 & CSS3 Workshop [FoWD NYC 2011]Aaron Gustafson
 
HTL(Sightly) - All you need to know
HTL(Sightly) - All you need to knowHTL(Sightly) - All you need to know
HTL(Sightly) - All you need to knowPrabhdeep Singh
 
Web Apps atop a Content Repository
Web Apps atop a Content RepositoryWeb Apps atop a Content Repository
Web Apps atop a Content RepositoryGabriel Walt
 
Killing the Angle Bracket
Killing the Angle BracketKilling the Angle Bracket
Killing the Angle Bracketjnewmanux
 
ePub 3, HTML 5 & CSS 3 (+ Fixed-Layout)
ePub 3, HTML 5 & CSS 3 (+ Fixed-Layout)ePub 3, HTML 5 & CSS 3 (+ Fixed-Layout)
ePub 3, HTML 5 & CSS 3 (+ Fixed-Layout)Clément Wehrung
 
Single API for library services (poster)
Single API for library services (poster)Single API for library services (poster)
Single API for library services (poster)Milan Janíček
 
Html xhtml tag-sheet
Html xhtml tag-sheetHtml xhtml tag-sheet
Html xhtml tag-sheetwihrbt
 
AEM Sightly Template Language
AEM Sightly Template LanguageAEM Sightly Template Language
AEM Sightly Template LanguageGabriel Walt
 
Extreme Ria Using Dnn
Extreme Ria Using DnnExtreme Ria Using Dnn
Extreme Ria Using Dnnschafer_brad
 
Developer’s intro to the alfresco platform
Developer’s intro to the alfresco platformDeveloper’s intro to the alfresco platform
Developer’s intro to the alfresco platformAlfresco Software
 
Building Silverlight Applications Using .NET (Part 2 of 2)
Building Silverlight Applications Using .NET (Part 2 of 2)Building Silverlight Applications Using .NET (Part 2 of 2)
Building Silverlight Applications Using .NET (Part 2 of 2)goodfriday
 
Presenter manual php and mysql with cms (specially for summer interns)
Presenter manual php and mysql with cms (specially for summer interns)Presenter manual php and mysql with cms (specially for summer interns)
Presenter manual php and mysql with cms (specially for summer interns)XPERT INFOTECH
 
(Oleg zhurakousky)spring integration-scala-intro
(Oleg zhurakousky)spring integration-scala-intro(Oleg zhurakousky)spring integration-scala-intro
(Oleg zhurakousky)spring integration-scala-introSkills Matter Talks
 
Presenter manual RIA technology (specially for summer interns)
Presenter manual RIA technology (specially for summer interns)Presenter manual RIA technology (specially for summer interns)
Presenter manual RIA technology (specially for summer interns)XPERT INFOTECH
 
jmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstartjmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services JumpstartBill Buchan
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginnersSingsys Pte Ltd
 

Tendances (19)

Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3
 
Adaptive Web Design Workshop [Iceweb 2011]
Adaptive Web Design Workshop [Iceweb 2011]Adaptive Web Design Workshop [Iceweb 2011]
Adaptive Web Design Workshop [Iceweb 2011]
 
HTML5 & CSS3 Workshop [FoWD NYC 2011]
HTML5 & CSS3 Workshop [FoWD NYC 2011]HTML5 & CSS3 Workshop [FoWD NYC 2011]
HTML5 & CSS3 Workshop [FoWD NYC 2011]
 
HTL(Sightly) - All you need to know
HTL(Sightly) - All you need to knowHTL(Sightly) - All you need to know
HTL(Sightly) - All you need to know
 
Web Apps atop a Content Repository
Web Apps atop a Content RepositoryWeb Apps atop a Content Repository
Web Apps atop a Content Repository
 
Killing the Angle Bracket
Killing the Angle BracketKilling the Angle Bracket
Killing the Angle Bracket
 
ePub 3, HTML 5 & CSS 3 (+ Fixed-Layout)
ePub 3, HTML 5 & CSS 3 (+ Fixed-Layout)ePub 3, HTML 5 & CSS 3 (+ Fixed-Layout)
ePub 3, HTML 5 & CSS 3 (+ Fixed-Layout)
 
Single API for library services (poster)
Single API for library services (poster)Single API for library services (poster)
Single API for library services (poster)
 
Html xhtml tag-sheet
Html xhtml tag-sheetHtml xhtml tag-sheet
Html xhtml tag-sheet
 
AEM Sightly Template Language
AEM Sightly Template LanguageAEM Sightly Template Language
AEM Sightly Template Language
 
Extreme Ria Using Dnn
Extreme Ria Using DnnExtreme Ria Using Dnn
Extreme Ria Using Dnn
 
Developer’s intro to the alfresco platform
Developer’s intro to the alfresco platformDeveloper’s intro to the alfresco platform
Developer’s intro to the alfresco platform
 
Building Silverlight Applications Using .NET (Part 2 of 2)
Building Silverlight Applications Using .NET (Part 2 of 2)Building Silverlight Applications Using .NET (Part 2 of 2)
Building Silverlight Applications Using .NET (Part 2 of 2)
 
Presenter manual php and mysql with cms (specially for summer interns)
Presenter manual php and mysql with cms (specially for summer interns)Presenter manual php and mysql with cms (specially for summer interns)
Presenter manual php and mysql with cms (specially for summer interns)
 
(Oleg zhurakousky)spring integration-scala-intro
(Oleg zhurakousky)spring integration-scala-intro(Oleg zhurakousky)spring integration-scala-intro
(Oleg zhurakousky)spring integration-scala-intro
 
Presenter manual RIA technology (specially for summer interns)
Presenter manual RIA technology (specially for summer interns)Presenter manual RIA technology (specially for summer interns)
Presenter manual RIA technology (specially for summer interns)
 
jmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstartjmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstart
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 

Similaire à Html5 form attributes

WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)Shumpei Shiraishi
 
Adaptive Web Design Workshop [inspire 2011]
Adaptive Web Design Workshop [inspire 2011]Adaptive Web Design Workshop [inspire 2011]
Adaptive Web Design Workshop [inspire 2011]Aaron Gustafson
 
Adaptive Web Design [WebVisions Portland 2012]
Adaptive Web Design [WebVisions Portland 2012]Adaptive Web Design [WebVisions Portland 2012]
Adaptive Web Design [WebVisions Portland 2012]Aaron Gustafson
 
Intro to Rails Give Camp Atlanta
Intro to Rails Give Camp AtlantaIntro to Rails Give Camp Atlanta
Intro to Rails Give Camp AtlantaJason Noble
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Peter Lubbers
 
A Snapshot of the Mobile HTML5 Revolution
A Snapshot of the Mobile HTML5 RevolutionA Snapshot of the Mobile HTML5 Revolution
A Snapshot of the Mobile HTML5 RevolutionJames Pearce
 
Jazoon2010 - Edgar Silva - Open source SOA on Steroids
Jazoon2010 - Edgar Silva - Open source SOA on SteroidsJazoon2010 - Edgar Silva - Open source SOA on Steroids
Jazoon2010 - Edgar Silva - Open source SOA on SteroidsEdgar Silva
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebGeorge Kanellopoulos
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5Manav Prasad
 
Reusing Existing Java EE Applications from SOA Suite 11g
Reusing Existing Java EE Applications from SOA Suite 11gReusing Existing Java EE Applications from SOA Suite 11g
Reusing Existing Java EE Applications from SOA Suite 11gGuido Schmutz
 

Similaire à Html5 form attributes (20)

WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)WHAT IS HTML5? (at CSS Nite Osaka)
WHAT IS HTML5? (at CSS Nite Osaka)
 
WHAT IS HTML5?(20100510)
WHAT IS HTML5?(20100510)WHAT IS HTML5?(20100510)
WHAT IS HTML5?(20100510)
 
What is HTML5
What is HTML5What is HTML5
What is HTML5
 
Adaptive Web Design Workshop [inspire 2011]
Adaptive Web Design Workshop [inspire 2011]Adaptive Web Design Workshop [inspire 2011]
Adaptive Web Design Workshop [inspire 2011]
 
Adaptive Web Design [WebVisions Portland 2012]
Adaptive Web Design [WebVisions Portland 2012]Adaptive Web Design [WebVisions Portland 2012]
Adaptive Web Design [WebVisions Portland 2012]
 
Visual resume
Visual resumeVisual resume
Visual resume
 
Intro to Rails Give Camp Atlanta
Intro to Rails Give Camp AtlantaIntro to Rails Give Camp Atlanta
Intro to Rails Give Camp Atlanta
 
web designing course bangalore
web designing course bangaloreweb designing course bangalore
web designing course bangalore
 
Word camp nextweb
Word camp nextwebWord camp nextweb
Word camp nextweb
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Wa html5-pdf
Wa html5-pdfWa html5-pdf
Wa html5-pdf
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
 
A Snapshot of the Mobile HTML5 Revolution
A Snapshot of the Mobile HTML5 RevolutionA Snapshot of the Mobile HTML5 Revolution
A Snapshot of the Mobile HTML5 Revolution
 
Jazoon2010 - Edgar Silva - Open source SOA on Steroids
Jazoon2010 - Edgar Silva - Open source SOA on SteroidsJazoon2010 - Edgar Silva - Open source SOA on Steroids
Jazoon2010 - Edgar Silva - Open source SOA on Steroids
 
WordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWebWordCamp Thessaloniki2011 The NextWeb
WordCamp Thessaloniki2011 The NextWeb
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
 
Obiee 11 g
Obiee 11 gObiee 11 g
Obiee 11 g
 
Reusing Existing Java EE Applications from SOA Suite 11g
Reusing Existing Java EE Applications from SOA Suite 11gReusing Existing Java EE Applications from SOA Suite 11g
Reusing Existing Java EE Applications from SOA Suite 11g
 

Plus de OPENLANE

MTA Certificate Path Microsoft
MTA Certificate Path MicrosoftMTA Certificate Path Microsoft
MTA Certificate Path MicrosoftOPENLANE
 
Visual studio 2008 overview
Visual studio 2008 overviewVisual studio 2008 overview
Visual studio 2008 overviewOPENLANE
 
Complete inet-phi-book-vol-1-2003-secure
Complete inet-phi-book-vol-1-2003-secureComplete inet-phi-book-vol-1-2003-secure
Complete inet-phi-book-vol-1-2003-secureOPENLANE
 
Struts tutorial
Struts tutorialStruts tutorial
Struts tutorialOPENLANE
 
6_Issues in accented speech recognition for Gujarati and its role in E_Teachingx
6_Issues in accented speech recognition for Gujarati and its role in E_Teachingx6_Issues in accented speech recognition for Gujarati and its role in E_Teachingx
6_Issues in accented speech recognition for Gujarati and its role in E_TeachingxOPENLANE
 
Software Quality Managementx
Software Quality ManagementxSoftware Quality Managementx
Software Quality ManagementxOPENLANE
 
Oracle 10gx
Oracle 10gxOracle 10gx
Oracle 10gxOPENLANE
 
About .netx
About .netxAbout .netx
About .netxOPENLANE
 
dotnet_remoting
dotnet_remotingdotnet_remoting
dotnet_remotingOPENLANE
 
WML-Tutorial
WML-TutorialWML-Tutorial
WML-TutorialOPENLANE
 
Naive Baysianx
Naive BaysianxNaive Baysianx
Naive BaysianxOPENLANE
 
Introduction to Protégéx
Introduction to ProtégéxIntroduction to Protégéx
Introduction to ProtégéxOPENLANE
 
Introduction to Protégé
Introduction to ProtégéIntroduction to Protégé
Introduction to ProtégéOPENLANE
 
E_commerce and trends in ICT_9thfebx
E_commerce and trends in ICT_9thfebxE_commerce and trends in ICT_9thfebx
E_commerce and trends in ICT_9thfebxOPENLANE
 
Unrestricted Simplex Protocolx
Unrestricted Simplex ProtocolxUnrestricted Simplex Protocolx
Unrestricted Simplex ProtocolxOPENLANE
 
3_Enhancing and Measuring students IQ and EQ levels using AIx
3_Enhancing and Measuring students IQ and EQ levels using AIx3_Enhancing and Measuring students IQ and EQ levels using AIx
3_Enhancing and Measuring students IQ and EQ levels using AIxOPENLANE
 
Asignment MCA - 640005 DWADM
Asignment MCA - 640005 DWADMAsignment MCA - 640005 DWADM
Asignment MCA - 640005 DWADMOPENLANE
 
Data Link Layer Protocolsx
Data Link Layer ProtocolsxData Link Layer Protocolsx
Data Link Layer ProtocolsxOPENLANE
 
ISTAR Abstractx
ISTAR AbstractxISTAR Abstractx
ISTAR AbstractxOPENLANE
 

Plus de OPENLANE (20)

MTA Certificate Path Microsoft
MTA Certificate Path MicrosoftMTA Certificate Path Microsoft
MTA Certificate Path Microsoft
 
Visual studio 2008 overview
Visual studio 2008 overviewVisual studio 2008 overview
Visual studio 2008 overview
 
Complete inet-phi-book-vol-1-2003-secure
Complete inet-phi-book-vol-1-2003-secureComplete inet-phi-book-vol-1-2003-secure
Complete inet-phi-book-vol-1-2003-secure
 
Struts tutorial
Struts tutorialStruts tutorial
Struts tutorial
 
6_Issues in accented speech recognition for Gujarati and its role in E_Teachingx
6_Issues in accented speech recognition for Gujarati and its role in E_Teachingx6_Issues in accented speech recognition for Gujarati and its role in E_Teachingx
6_Issues in accented speech recognition for Gujarati and its role in E_Teachingx
 
Software Quality Managementx
Software Quality ManagementxSoftware Quality Managementx
Software Quality Managementx
 
Oracle 10gx
Oracle 10gxOracle 10gx
Oracle 10gx
 
About .netx
About .netxAbout .netx
About .netx
 
Doc1x
Doc1xDoc1x
Doc1x
 
dotnet_remoting
dotnet_remotingdotnet_remoting
dotnet_remoting
 
WML-Tutorial
WML-TutorialWML-Tutorial
WML-Tutorial
 
Naive Baysianx
Naive BaysianxNaive Baysianx
Naive Baysianx
 
Introduction to Protégéx
Introduction to ProtégéxIntroduction to Protégéx
Introduction to Protégéx
 
Introduction to Protégé
Introduction to ProtégéIntroduction to Protégé
Introduction to Protégé
 
E_commerce and trends in ICT_9thfebx
E_commerce and trends in ICT_9thfebxE_commerce and trends in ICT_9thfebx
E_commerce and trends in ICT_9thfebx
 
Unrestricted Simplex Protocolx
Unrestricted Simplex ProtocolxUnrestricted Simplex Protocolx
Unrestricted Simplex Protocolx
 
3_Enhancing and Measuring students IQ and EQ levels using AIx
3_Enhancing and Measuring students IQ and EQ levels using AIx3_Enhancing and Measuring students IQ and EQ levels using AIx
3_Enhancing and Measuring students IQ and EQ levels using AIx
 
Asignment MCA - 640005 DWADM
Asignment MCA - 640005 DWADMAsignment MCA - 640005 DWADM
Asignment MCA - 640005 DWADM
 
Data Link Layer Protocolsx
Data Link Layer ProtocolsxData Link Layer Protocolsx
Data Link Layer Protocolsx
 
ISTAR Abstractx
ISTAR AbstractxISTAR Abstractx
ISTAR Abstractx
 

Dernier

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Dernier (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Html5 form attributes

  • 1. TRANSLATE Search w3schools.com Search HOME HTML C SS XML JAVASC RIPT ASP PHP SQL MORE... R EFER ENC ES | EXAMPLES | FO R UM | ABO UT HTML5 Form Attributes HTML5 Tutorial WEB HOSTING HTML5 Home Best Web Hosting HTML5 Introduction PHP MySQL Hosting HTML5 New Elements « Previous Next Chapter » HTML5 Video Best Hosting C oupons HTML5 Audio HTML5 Canvas HTML5 New Form Attributes UK Reseller Hosting HTML5 Web Storage C loud Hosting This chapter covers some of the new attributes for <form> and <input>. Top Web Hosting HTML5 Forms New form attributes: $7.95/mo SEO Hosting HTML5 Input Types HTML5 Form Elements autocomplete WEB BUILDING HTML5 Form Attributes novalidate Download XML Editor HTML5 Reference New input attributes: FREE Website BUILDER HTML5 Tags autocomplete Free Website Templates HTML5 Attributes autofocus Free WordPress Themes HTML5 Events form form overrides (formaction, formenctype, formmethod, formnovalidate, formtarget) W3SCHOOLS EXAMS HTML5 Tags height and width Get C ertified in: <!--> list HTML, C SS, JavaScript, <!DOCTYPE> min, max and step XML, PHP, and ASP <a> multiple <abbr> pattern (regexp) W3SCHOOLS BOOKS <acronym> placeholder New Books: <address> required HTML, C SS <applet> JavaScript, and Ajax <area> <article> Browser Support STATISTICS <aside> Browser Statistics <audio> Attribute IE Firefox Opera Chrome Safari Browser OS <b> Browser Display autocomplete 8.0 3.5 9.5 3.0 4.0 <base> <basefont> autofocus No 4.0 10.0 3.0 4.0 SHARE THIS PAGE <bdo> form No 4.0 9.5 10.0 No Share with » <big> <blockquote> form overrides No 4.0 10.5 10.0 No <body> <br> height and width 8.0 3.5 9.5 3.0 4.0 <button> list No 4.0 9.5 No No <canvas> <caption> min, max and step No No 9.5 3.0 No <center> multiple No 3.5 11.0 3.0 4.0 <cite> <code> novalidate No 4.0 11.0 10.0 No <col> pattern No 4.0 9.5 3.0 No <colgroup> <command> placeholder No 4.0 11.0 3.0 3.0 <datalist> required No 4.0 9.5 3.0 No <dd> <del> <details> <dfn> <dir> autocomplete Attribute <div> The autocomplete attribute specifies that the form or input field should have an autocomplete <dl> function. <dt> <em> Note: The autocomplete attribute works with <form>, and the following <input> types: text, search, <embed> url, telephone, email, password, datepickers, range, and color. <fieldset> <figcaption> When the user starts to type in an autocomplete field, the browser should display options to fill in <figure> the field: <font> <footer> <form> Example <frame> <frameset> <form action="demo_form.asp" method="get" autocomplete="on"> <h1> - <h6> First name: <input type="text" name="fname" /><br /> <head> Last name: <input type="text" name="lname" /><br /> <header> E-mail: <input type="email" name="email" autocomplete="off" /><br /> <hgroup> <hr> <input type="submit" /> <html> </form> <i> <iframe> Try it yourself » <img> <input> <ins> Note: In some browsers you may need to activate the autocomplete function for this to work. <keygen> <kbd> <label> <legend> autofocus Attribute <li> The autofocus attribute specifies that a field should automatically get focus when a page is loaded. <link> <map> Note: The autofocus attribute works with all <input> types. <mark>
  • 2. <menu> Example <meta> <meter> <nav> User name: <input type="text" name="user_name" autofocus="autofocus" /> <noframes> <noscript> Try it yourself » <object> <ol> <optgroup> <option> <output> form Attribute <p> <param> The form attribute specifies one or more forms the input field belongs to. <pre> <progress> Note: The form attribute works with all <input> types. <q> <rp> The form attribute must refer to the id of the form it belongs to: <rt> <ruby> Example <s> <samp> <script> <form action="demo_form.asp" method="get" id="user_form"> <section> First name:<input type="text" name="fname" /> <select> <input type="submit" /> <small> </form> <source> Last name: <input type="text" name="lname" form="user_form" /> <span> <strike> <strong> Try it yourself » <style> <sub> <summary> Note: To refer to more than one form, use a space-separated list. <sup> <table> <tbody> Form Override Attributes <td> <textarea> The form override attributes allow you to override some of the attributes set for the form element. <tfoot> <th> The form override attributes are: <thead> formaction - Overrides the form action attribute <time> formenctype - Overrides the form enctype attribute <title> formmethod - Overrides the form method attribute <tr> <tt> formnovalidate - Overrides the form novalidate attribute <u> formtarget - Overrides the form target attribute <ul> Note: The form override attributes works with the following <input> types: submit and image. <var> <video> <wbr> Example <xmp> <form action="demo_form.asp" method="get" id="user_form"> E-mail: <input type="email" name="userid" /><br /> <input type="submit" value="Submit" /> <br /> <input type="submit" formaction="demo_admin.asp" value="Submit as admin" /> <br /> <input type="submit" formnovalidate="true" value="Submit without validation" /> <br /> </form> Try it yourself » Note: These attributes are helpful for creating different submit buttons. height and width Attributes The height and width attributes specifies the height and width of the image used for the input type image. Note: The height and width attributes only works with <input> type: image. Example <input type="image" src="img_submit.gif" width="24" height="24" /> Try it yourself » list Attribute The list attribute specifies a datalist for an input field. A datalist is a list of options for an input field. Note: The list attribute works with the following <input> types: text, search, url, telephone, email, date pickers, number, range, and color. Example Webpage: <input type="url" list="url_list" name="link" /> <datalist id="url_list"> <option label="W3Schools" value="http://www.w3schools.com" /> <option label="Google" value="http://www.google.com" /> <option label="Microsoft" value="http://www.microsoft.com" /> </datalist>
  • 3. Try it yourself » min, max and step Attributes The min, max and step attributes are used to specify restrictions for input types containing numbers or dates. The max attribute specifies the maximum value allowed for the input field. The min attribute specifies the minimum value allowed for the input field. The step attribute specifies the legal number intervals for the input field (if step="3", legal numbers could be -3,0,3,6, etc). Note: The min, max, and step attributes works with the following <input> types: date pickers, number, and range. The example below shows a numeric field that accepts values between 0 and 10, with a step of 3 (legal numbers are 0, 3, 6 and 9): Example Points: <input type="number" name="points" min="0" max="10" step="3" /> Try it yourself » multiple Attribute The multiple attribute specifies that multiple values can be selected for an input field. Note: The multiple attribute works with the following <input> types: email, and file. Example Select images: <input type="file" name="img" multiple="multiple" /> Try it yourself » novalidate Attribute The novalidate attribute specifies that the form or input field should not be validated when submitted. If this attribute is present the form will not validate form input. Note: The novalidate attribute works with: <form> and the following <input> types: text, search, url, telephone, email, password, date pickers, range, and color. Example <form action="demo_form.asp" novalidate="novalidate"> E-mail: <input type="email" name="user_email" /> <input type="submit" /> </form> Try it yourself » pattern Attribute The pattern attribute specifies a pattern used to validate an input field. The pattern is a regular expression. You can read about this in our JavaScript tutorial. Note: The pattern attribute works with the following <input> types: text, search, url, telephone, email, and password The example below shows a text field that can only contain three letters (no numbers or special characters): Example Country code: <input type="text" name="country_code" pattern="[A-z]{3}" title="Three letter country code" /> Try it yourself » placeholder Attribute The placeholder attribute provides a hint that describes the expected value of an input field. Note: The placeholder attribute works with the following <input> types: text, search, url, telephone, email, and password The hint is displayed in the input field when it is empty, and disappears when the field gets focus:
  • 4. Example <input type="search" name="user_search" placeholder="Search W3Schools" /> Try it yourself » required Attribute The required attribute specifies that an input field must be filled out before submitting. Note: The required attribute works with the following <input> types: text, search, url, telephone, email, password, date pickers, number, checkbox, radio, and file. Example Name: <input type="text" name="usr_name" required="required" /> Try it yourself » « Previous Next Chapter » Free Online Website Builder - No Downloading Needed Create a free Flash website with our simple, online web design editing platform. Stunning templates and user-friendly tools make website building easy and fun. Start Creating your free website now! Stylus Studio® XML Development Environment Stylus Studio® 2011 XML Enterprise Suite raises the bar for productivity in XML development tools. Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive XML toolset to tackle today's advanced XML data transformation and aggregation challenges. XML Pipeline Editor, Debugger and Code Generator DataDirect XML Converters XQuery Mapper, Editor, Debugger, and Profiler XSLT Mapper, Editor, Debugger, Designer, and Profiler Java and C# for .Net Code Generation XML Schema Designer With Documentation Generator XML Editor With Full XPath Integration Download a free trial now W3Schools' Online Certification The perfect solution for professionals who need to balance work, family, and career building. More than 6000 certificates already issued! Get Your Certificate » The HTML Certificate documents your knowledge of HTML. The CSS Certificate documents your knowledge of advanced CSS. The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM. The jQuery Certificate documents your knowledge of jQuery. The XML Certificate documents your knowledge of XML, XML DOM and XSLT. The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
  • 5. The PHP Certificate documents your knowledge of PHP and SQL (MySQL). RE P O RT E RRO R | HO ME | TO P | P RI N T | FO RU M | A BO U T W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use and privacy policy. C opyright 1999-2011 by Refsnes Data. All Rights Reserved.