SlideShare a Scribd company logo
HTML Forms
HTML Frames
HTML Forms
HTML Forms are required when you want
to collect some data from the site visitor.
 The HTML <form> tag is used to create an HTML
form and it has following syntax:
<form action="Script URL" method="GET|POST">
form elements like input, textarea etc.
</form>
Web Development I
HTML Frames
Form Attributes
 Following are important attributes of <form> tag:
Web Development I
Attribute Description
action Backend script ready to process your passed data.
method Method to be used to upload data. The most frequently
used are GET and POST methods.
target Specify the target window or frame where the result of
the script will be displayed. It takes values like _blank,
_self, _parent etc.
HTML Frames
HTML Form Controls
 There are different types of form controls that
you can use to collect data using HTML form:
Text Input Controls
Checkboxes Controls
Radio Box Controls
Select Box Controls
File Select boxes
Clickable Buttons
Submit and Reset Button
Web Development I
HTML Frames
Example
<body>
<form >
First name: <input type="text" name="first_name" /> <br>
Last name: <input type="text" name="last_name" /> <br>
Email: <input type="text" name=“email" /> <br>
Password: <input type="password" name="password" />
Description:<textarea rows="5" cols="50"
name="description"> Enter description here... </textarea>
<input type=“radio" name=“Gender" value=“Male"> Male
<input type=“radio" name=“Gender" value=“Female">
Female <br>
<input type=“submit" name=“submit" value=“Submit">
<input type=“reset" name=“reset" value=“Reset">
</form>
</body>
Web Development I
HTML Forms.pptx ( web development html / css)

More Related Content

PPTX
HTML frames and HTML forms
PPTX
Presentation1
PPTX
Html Forms
PPTX
HTML Forms
PPTX
Html forms
PPTX
uptu web technology unit 2 html
PPTX
lecture9-10-160807085530.pptx dgdg fdgdfv ds
PPTX
Forms in html5
HTML frames and HTML forms
Presentation1
Html Forms
HTML Forms
Html forms
uptu web technology unit 2 html
lecture9-10-160807085530.pptx dgdg fdgdfv ds
Forms in html5

Similar to HTML Forms.pptx ( web development html / css) (20)

PPTX
Forms
PPTX
Gitika html ppt
PPTX
Html forms
PPTX
HTML Forms
PPT
HTML_Forms_.ppt
PPSX
Computer language - Html forms
PPTX
html forms
PPTX
1. Lecture 1 WT- Forms.pptxl;kjhgfdsfghj
PPTX
Html forms
PDF
Web app development_html_02
PDF
5. Frames & Forms.pdf
PPTX
Html form tag
PPTX
04. session 04 working withformsandframes
PPT
Forms,Frames.ppt
PPT
Forms,Frames.ppt
PPT
WEB DEVELOPMENT EXERCISE-2 LAB NAIDU.ppt
PPTX
HTML Form
Forms
Gitika html ppt
Html forms
HTML Forms
HTML_Forms_.ppt
Computer language - Html forms
html forms
1. Lecture 1 WT- Forms.pptxl;kjhgfdsfghj
Html forms
Web app development_html_02
5. Frames & Forms.pdf
Html form tag
04. session 04 working withformsandframes
Forms,Frames.ppt
Forms,Frames.ppt
WEB DEVELOPMENT EXERCISE-2 LAB NAIDU.ppt
HTML Form
Ad

Recently uploaded (20)

PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Pre independence Education in Inndia.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
master seminar digital applications in india
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Types and Its function , kingdom of life
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
RMMM.pdf make it easy to upload and study
human mycosis Human fungal infections are called human mycosis..pptx
Complications of Minimal Access Surgery at WLH
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Pre independence Education in Inndia.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Sports Quiz easy sports quiz sports quiz
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial diseases, their pathogenesis and prophylaxis
master seminar digital applications in india
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Types and Its function , kingdom of life
2.FourierTransform-ShortQuestionswithAnswers.pdf
GDM (1) (1).pptx small presentation for students
TR - Agricultural Crops Production NC III.pdf
Renaissance Architecture: A Journey from Faith to Humanism
RMMM.pdf make it easy to upload and study
Ad

HTML Forms.pptx ( web development html / css)

  • 2. HTML Frames HTML Forms HTML Forms are required when you want to collect some data from the site visitor.  The HTML <form> tag is used to create an HTML form and it has following syntax: <form action="Script URL" method="GET|POST"> form elements like input, textarea etc. </form> Web Development I
  • 3. HTML Frames Form Attributes  Following are important attributes of <form> tag: Web Development I Attribute Description action Backend script ready to process your passed data. method Method to be used to upload data. The most frequently used are GET and POST methods. target Specify the target window or frame where the result of the script will be displayed. It takes values like _blank, _self, _parent etc.
  • 4. HTML Frames HTML Form Controls  There are different types of form controls that you can use to collect data using HTML form: Text Input Controls Checkboxes Controls Radio Box Controls Select Box Controls File Select boxes Clickable Buttons Submit and Reset Button Web Development I
  • 5. HTML Frames Example <body> <form > First name: <input type="text" name="first_name" /> <br> Last name: <input type="text" name="last_name" /> <br> Email: <input type="text" name=“email" /> <br> Password: <input type="password" name="password" /> Description:<textarea rows="5" cols="50" name="description"> Enter description here... </textarea> <input type=“radio" name=“Gender" value=“Male"> Male <input type=“radio" name=“Gender" value=“Female"> Female <br> <input type=“submit" name=“submit" value=“Submit"> <input type=“reset" name=“reset" value=“Reset"> </form> </body> Web Development I

Editor's Notes

  • #6: Tabindex attribute Placeholder attribute autofocus Adding it to an input automatically focuses that field when the page is rendered.