SlideShare a Scribd company logo
1 of 18
WEB INPUT FORMS
SUBMITTED BY
MRS.R.CHINTHAMANI,
ASSISTANT PROFESSOR,
DEPARTMENT OF COMPUTER SCIENCE
E.M.G.YADAVA WOMEN’S COLLEGE
THE INPUT (FORM INPUT)
The <input> HTML element is used to create
interactive controls for web-based forms in order to
accept data from the user; a wide variety of types of
input data and control widgets are available,
depending on the device and user agent. The
<input> element is one of the most powerful and
complex in all of HTML due to the sheer number of
combinations of input types and attributes.
<INPUT> TYPES
How an <input> works varies considerably
depending on the value of its type attribute,
hence the different types are covered in their
own separate reference pages. If this attribute is
not specified, the default type adopted is text.
THE AVAILABLE TYPES ARE AS
FOLLOWS:
Button:
A push button with no default behavior displaying the value of the value
attribute, empty by default.
Check box:
A check box allowing single values to be selected/deselected
Color:
A control for specifying a color; opening a color when active in
supporting browsers.
Date:
A control for entering a date (year, month, and day, with
no time). Opens a date picker or numeric wheels for year,
month, day when active in supporting browsers.
Datetime-local:
A control for entering a date and time, with no time zone.
Opens a date picker or numeric wheels for date- and
time-components when active in supporting browsers.
Reset:
A button that resets the contents of the form to default
values. Not recommended.
Email:
A field for editing an email address. Looks like a text input, but has
validation parameters and relevant keyboard in supporting browsers
and devices with dynamic keyboards
File:
A control that lets the user select a file. Use the accept attribute to
define the types of files that the control can select.
Range:
A control for entering a number whose exact value is not
important. Displays as a range widget defaulting to the middle
value. Used in conjunction min and max to define the range of
acceptable values.
Hidden:
A control that is not displayed but whose value is
submitted to the server. There is an example in the next
column, but it’s hidden!
Image:
A graphical submit button. Displays an image defined by
the src attribute. The alt attribute displays if the image src
is missing.
Radio:
A radio button, allowing a single value to be selected out
of multiple choices with the same name value.
Month:
A control for entering a month and year, with no time
zone.
Number:
A control for entering a number. Displays a spinner and
adds default validation. Displays a numeric keypad in
some devices with dynamic keypads
Password:
A single-line text field whose value is obscured. Will alert
user if site is not secure.
Search:
A single-line text field for entering search strings.
Line-breaks are automatically removed from the
input value
Submit:
A button that submits the form.
Tel:
A control for entering a telephone number. Displays
a telephone keypad in some devices with dynamic
keypads
Time:
entering a time value with no time zone.
URL:
A field for entering a URL. Looks like a text input,
but has validation parameters and relevant
keyboard in supporting browsers and devices with
dynamic keyboards
Week:
A control for entering a date consisting of a week-
year number and a week number with no time zone.
<INPUT TYPE=“TEXT”>:
Example:
<form>
<label for=“fname”>First
name:</label><br>
<input type=“text” id=“fname”
name=“fname”><br>
<label for=“lname”>Last
name:</label><br>
Output:
This is how the HTML code above will
be displayed in a browser:
First name:
Last name:
<INPUT TYPE=“PASSWORD”>:
<form>
<label for=“username”>Username:</label><br>
<input type=“text” id=“username”
name=“username”><br>
<label for=“pwd”>Password:</label><br>
<input type=“password” id=“pwd” name=“pwd”>
</form>
Output:
This is how the Html codebove will bE displayed in a
browser:
User name:
Password:
<INPUT TYPE RADIO>
<form>
<input type=“radio” id=“html” name=“fav_language” value=“HTML”>
<label for=“html”>HTML</label><br>
<input type=“radio” id=“css” name=“fav_language” value=“CSS”>
<label for=“css”>CSS</label><br>
<input type=“radio” id=“javascript” name=“fav_language”
value=“JavaScript”>
<label for=“javascript”>JavaScript</label>
</form>
Output:
This is how the HTML code above will be displayed in
a browser:
HTML
CSS
JavaScript
<INPUT TYPE CHECK BOX>
<form>
<input type=“checkbox” id=“vehicle1” name=“vehicle1” value=“Bike”>
<label for=“vehicle1”> I have a bike</label><br>
<input type=“checkbox” id=“vehicle2” name=“vehicle2” value=“Car”>
<label for=“vehicle2”> I have a car</label><br>
<input type=“checkbox” id=“vehicle3” name=“vehicle3” value=“Boat”>
<label for=“vehicle3”> I have a boat</label>
</form>
Output:
This is how the HTML code above will be displayed in a browser:
I have a bike
I have a car
I have a boat

More Related Content

Similar to Web input forms.pptx (20)

20-html-forms.ppt
20-html-forms.ppt20-html-forms.ppt
20-html-forms.ppt
 
html forms
html formshtml forms
html forms
 
Tm 1st quarter - 2nd meeting
Tm   1st quarter - 2nd meetingTm   1st quarter - 2nd meeting
Tm 1st quarter - 2nd meeting
 
2. HTML forms
2. HTML forms2. HTML forms
2. HTML forms
 
Web Development 5
Web Development 5 Web Development 5
Web Development 5
 
Html class-04
Html class-04Html class-04
Html class-04
 
Html forms
Html formsHtml forms
Html forms
 
Html Xhtml And Xml 3e Tutorial 6
Html Xhtml And Xml 3e Tutorial 6Html Xhtml And Xml 3e Tutorial 6
Html Xhtml And Xml 3e Tutorial 6
 
Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
HTML Form
HTML FormHTML Form
HTML Form
 
html 5 new form attribute
html 5 new form attributehtml 5 new form attribute
html 5 new form attribute
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
 
Html forms
Html formsHtml forms
Html forms
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Html4
Html4Html4
Html4
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Html4
Html4Html4
Html4
 
HTML
HTML HTML
HTML
 
Chapter 9: Forms
Chapter 9: FormsChapter 9: Forms
Chapter 9: Forms
 

More from SindhuVelmukull

More from SindhuVelmukull (12)

Web protocol.pptx
Web protocol.pptxWeb protocol.pptx
Web protocol.pptx
 
Web technology.pptx
Web technology.pptxWeb technology.pptx
Web technology.pptx
 
YIQ by R.Chinthamani.pptx
YIQ by R.Chinthamani.pptxYIQ by R.Chinthamani.pptx
YIQ by R.Chinthamani.pptx
 
PROPERTIES OF LIGHT by R.Chinthamani.pptx
PROPERTIES OF LIGHT by R.Chinthamani.pptxPROPERTIES OF LIGHT by R.Chinthamani.pptx
PROPERTIES OF LIGHT by R.Chinthamani.pptx
 
Overview of CG by R.Chinthamani.pptx
Overview of CG by R.Chinthamani.pptxOverview of CG by R.Chinthamani.pptx
Overview of CG by R.Chinthamani.pptx
 
Bundled Attributes by R.Chinthamani.pptx
Bundled Attributes by R.Chinthamani.pptxBundled Attributes by R.Chinthamani.pptx
Bundled Attributes by R.Chinthamani.pptx
 
RGB Color.pptx
RGB Color.pptxRGB Color.pptx
RGB Color.pptx
 
Projection.pptx
Projection.pptxProjection.pptx
Projection.pptx
 
Jsp
JspJsp
Jsp
 
c++
 c++  c++
c++
 
Introduction to artificial intelligence
Introduction to artificial intelligenceIntroduction to artificial intelligence
Introduction to artificial intelligence
 
COMPUTER NETWORK
COMPUTER NETWORKCOMPUTER NETWORK
COMPUTER NETWORK
 

Recently uploaded

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
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
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
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
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
“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
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
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
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
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
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
“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...
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 

Web input forms.pptx

  • 1. WEB INPUT FORMS SUBMITTED BY MRS.R.CHINTHAMANI, ASSISTANT PROFESSOR, DEPARTMENT OF COMPUTER SCIENCE E.M.G.YADAVA WOMEN’S COLLEGE
  • 2. THE INPUT (FORM INPUT) The <input> HTML element is used to create interactive controls for web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are available, depending on the device and user agent. The <input> element is one of the most powerful and complex in all of HTML due to the sheer number of combinations of input types and attributes.
  • 3. <INPUT> TYPES How an <input> works varies considerably depending on the value of its type attribute, hence the different types are covered in their own separate reference pages. If this attribute is not specified, the default type adopted is text.
  • 4. THE AVAILABLE TYPES ARE AS FOLLOWS: Button: A push button with no default behavior displaying the value of the value attribute, empty by default. Check box: A check box allowing single values to be selected/deselected Color: A control for specifying a color; opening a color when active in supporting browsers.
  • 5. Date: A control for entering a date (year, month, and day, with no time). Opens a date picker or numeric wheels for year, month, day when active in supporting browsers. Datetime-local: A control for entering a date and time, with no time zone. Opens a date picker or numeric wheels for date- and time-components when active in supporting browsers. Reset: A button that resets the contents of the form to default values. Not recommended.
  • 6. Email: A field for editing an email address. Looks like a text input, but has validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards File: A control that lets the user select a file. Use the accept attribute to define the types of files that the control can select. Range: A control for entering a number whose exact value is not important. Displays as a range widget defaulting to the middle value. Used in conjunction min and max to define the range of acceptable values.
  • 7. Hidden: A control that is not displayed but whose value is submitted to the server. There is an example in the next column, but it’s hidden! Image: A graphical submit button. Displays an image defined by the src attribute. The alt attribute displays if the image src is missing. Radio: A radio button, allowing a single value to be selected out of multiple choices with the same name value.
  • 8. Month: A control for entering a month and year, with no time zone. Number: A control for entering a number. Displays a spinner and adds default validation. Displays a numeric keypad in some devices with dynamic keypads Password: A single-line text field whose value is obscured. Will alert user if site is not secure.
  • 9. Search: A single-line text field for entering search strings. Line-breaks are automatically removed from the input value Submit: A button that submits the form. Tel: A control for entering a telephone number. Displays a telephone keypad in some devices with dynamic keypads
  • 10. Time: entering a time value with no time zone. URL: A field for entering a URL. Looks like a text input, but has validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards Week: A control for entering a date consisting of a week- year number and a week number with no time zone.
  • 11. <INPUT TYPE=“TEXT”>: Example: <form> <label for=“fname”>First name:</label><br> <input type=“text” id=“fname” name=“fname”><br> <label for=“lname”>Last name:</label><br>
  • 12. Output: This is how the HTML code above will be displayed in a browser: First name: Last name:
  • 13. <INPUT TYPE=“PASSWORD”>: <form> <label for=“username”>Username:</label><br> <input type=“text” id=“username” name=“username”><br> <label for=“pwd”>Password:</label><br> <input type=“password” id=“pwd” name=“pwd”> </form>
  • 14. Output: This is how the Html codebove will bE displayed in a browser: User name: Password:
  • 15. <INPUT TYPE RADIO> <form> <input type=“radio” id=“html” name=“fav_language” value=“HTML”> <label for=“html”>HTML</label><br> <input type=“radio” id=“css” name=“fav_language” value=“CSS”> <label for=“css”>CSS</label><br> <input type=“radio” id=“javascript” name=“fav_language” value=“JavaScript”> <label for=“javascript”>JavaScript</label> </form>
  • 16. Output: This is how the HTML code above will be displayed in a browser: HTML CSS JavaScript
  • 17. <INPUT TYPE CHECK BOX> <form> <input type=“checkbox” id=“vehicle1” name=“vehicle1” value=“Bike”> <label for=“vehicle1”> I have a bike</label><br> <input type=“checkbox” id=“vehicle2” name=“vehicle2” value=“Car”> <label for=“vehicle2”> I have a car</label><br> <input type=“checkbox” id=“vehicle3” name=“vehicle3” value=“Boat”> <label for=“vehicle3”> I have a boat</label> </form>
  • 18. Output: This is how the HTML code above will be displayed in a browser: I have a bike I have a car I have a boat