SlideShare a Scribd company logo
1 of 34
2
3
• HTML tags are the
hidden keywords within a web
page that define how the browser
must format and display the
content.
• Most tags must have two parts, an
opening and a closing part. For
example, <html> is the opening
tag and </html> is the closing tag.
4
HTML tags follow a simple but strict
syntax:
• Opening angle bracket (<)
• Tag Name
• Attributes (optional): First a space, then the
attribute name, an equal sign (=), and a value
enclosed in double quotes ("").
• Closing angle bracket (>)
5
Form allow you to type
information into fields on a
browser screen and submit that
information to a web server.
6
Html form tags are used to create html
forms.
Syntax:
<form action=“script URL” method= get |
post>form elements like input , text area
etc.</form>
7
• Action :
background script ready to process or
passed data
• Target:
Specify target window or frame where the
result of script will be displayed.
8
Method:
GET -- this is the default method and causes
the fill-out form contents to be appended to
the URL. Use only when submit has no
effect. e.g. pure query.
POST -- this method causes the fill-out form
contents to be sent to the server in a data
body rather than as part of the URL.
9
•Enctype:
Specifies how the browser
encodes data before it send it to
server
10
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
• Hidden Controls
• Clickable Buttons
• Submit and Reset Button
11
Text Input Controls
There are three types of text input used on
forms:
• Single-line text input controls - This control is used for items
that require only one line of user input, such as search boxes
or names. They are created using HTML<input> tag.
• Password input controls - This is also a single-line text input
but it masks the character as soon as a user enters it. They are
also created using HTML <input> tag.
• Multi-line text input controls - This is used when the user is
required to give details that may be longer than a single
sentence. Multi-line input controls are created using
HTML <text area> tag.
12
• Basic example of a single-line text input used
to take first name and last
name
13
output
14
Password input controls
This is also a single-line text input but it masks the
character as soon as a user enters it. They are
also created using HTML <input> tag but type
attribute is set to password.
Attributes :
• Types
• Name
• Value
• Size
• Max length
15
16
• basic example of a single-line password
input used to take user password:
output
17
Checkbox Control
• Checkboxes are used when more than one
option is required to be selected. They are
also created using HTML <input> tag but type
attribute is set to checkbox.
• Attributes:
• Type
• Name
• Value
• check
18
• an example HTML code for a form with two
checkboxes:
19
Output
20
Radio Button Control
Radio buttons are used when out of many
options, just one option is required to be
selected. They are also created using HTML
<input> tag but type attribute is set to radio.
• Attributes
• Type
• Name
• Value
• checked
21
Select Box Control
• A select box, also called drop down box which
provides option to list down various options in
the form of drop down list, from where a user
can select one or more options.
• attributes
• Name.
• Size.
• Multiple.
22
23
example HTML code for a form with one drop down box
output
24
File Upload Box
If you want to allow a user to upload a file to
your web site, you will need to use a file
upload box, also known as a file select box.
This is also created using the <input> element
but type attribute is set to file.
Attributes:
• Name
• accept
25
Example HTML code for a form with one file upload box:
26
output
27
Button Controls
• There are various ways in HTML to create
clickable buttons. You can also create a
clickable button using <input> tag by setting
its type attribute to button.
• Attributes:
• Submit
• Reset
• Button
• image 28
example HTML code for a form with three types of
buttons:
29
output
30
Registration form using main form tags:
31
Contd….
32
output
33
34

More Related Content

What's hot (20)

Html4
Html4Html4
Html4
 
Web design - Working with forms in HTML
Web design - Working with forms in HTMLWeb design - Working with forms in HTML
Web design - Working with forms in HTML
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
2. HTML forms
2. HTML forms2. HTML forms
2. HTML forms
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML Form
 
[Basic HTML/CSS] 4. html - form tags
[Basic HTML/CSS] 4. html - form tags[Basic HTML/CSS] 4. html - form tags
[Basic HTML/CSS] 4. html - form tags
 
Entering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML FormsEntering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML Forms
 
Html forms
Html formsHtml forms
Html forms
 
Tut 06 (forms)
Tut 06 (forms)Tut 06 (forms)
Tut 06 (forms)
 
Html tables, forms and audio video
Html tables, forms and audio videoHtml tables, forms and audio video
Html tables, forms and audio video
 
Html forms
Html formsHtml forms
Html forms
 
Html forms
Html formsHtml forms
Html forms
 
Html 5 Forms
Html 5 FormsHtml 5 Forms
Html 5 Forms
 
Lesson 2 Starting with the basics
Lesson 2 Starting with the basicsLesson 2 Starting with the basics
Lesson 2 Starting with the basics
 
MTA html5 organization, input, and validation
MTA html5 organization, input, and validationMTA html5 organization, input, and validation
MTA html5 organization, input, and validation
 
Php and web forms
Php and web formsPhp and web forms
Php and web forms
 
Html forms
Html formsHtml forms
Html forms
 
Lesson 15
Lesson 15Lesson 15
Lesson 15
 
Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
HTML frames and HTML forms
HTML frames and HTML formsHTML frames and HTML forms
HTML frames and HTML forms
 

Similar to Gitika html ppt

Similar to Gitika html ppt (20)

Web forms and html (lect 4)
Web forms and html (lect 4)Web forms and html (lect 4)
Web forms and html (lect 4)
 
Html5
Html5 Html5
Html5
 
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZer
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZerStd 12 Computer Chapter 1 Creating Html Forms Using KompoZer
Std 12 Computer Chapter 1 Creating Html Forms Using KompoZer
 
Html form
Html formHtml form
Html form
 
The Complete HTML
The Complete HTMLThe Complete HTML
The Complete HTML
 
Html Forms
Html FormsHtml Forms
Html Forms
 
Presentation1
Presentation1Presentation1
Presentation1
 
HTML Comprehensive Overview
HTML Comprehensive OverviewHTML Comprehensive Overview
HTML Comprehensive Overview
 
CSS_Forms.pdf
CSS_Forms.pdfCSS_Forms.pdf
CSS_Forms.pdf
 
Forms Part 1
Forms Part 1Forms Part 1
Forms Part 1
 
HTML-Forms
HTML-FormsHTML-Forms
HTML-Forms
 
HTML 5 Basics Part Three
HTML 5 Basics Part ThreeHTML 5 Basics Part Three
HTML 5 Basics Part Three
 
3. HTML Forms.ppt
3. HTML Forms.ppt3. HTML Forms.ppt
3. HTML Forms.ppt
 
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
 
5. Frames & Forms.pdf
5. Frames & Forms.pdf5. Frames & Forms.pdf
5. Frames & Forms.pdf
 
Forms
FormsForms
Forms
 
Html basic
Html basicHtml basic
Html basic
 
Chapter 9: Forms
Chapter 9: FormsChapter 9: Forms
Chapter 9: Forms
 
Html5ppt
Html5pptHtml5ppt
Html5ppt
 
Web forms and html lecture Number 4
Web forms and html lecture Number 4Web forms and html lecture Number 4
Web forms and html lecture Number 4
 

More from gitika -

Programming tools
Programming toolsProgramming tools
Programming toolsgitika -
 
management
management management
management gitika -
 
Women empowerment
Women empowermentWomen empowerment
Women empowermentgitika -
 
Representation of Entity relationship diagram in data base managemnet system
Representation of Entity relationship diagram in data base managemnet systemRepresentation of Entity relationship diagram in data base managemnet system
Representation of Entity relationship diagram in data base managemnet systemgitika -
 
Online furniture
Online furnitureOnline furniture
Online furnituregitika -
 
Introduction to queue
Introduction to queueIntroduction to queue
Introduction to queuegitika -
 

More from gitika - (6)

Programming tools
Programming toolsProgramming tools
Programming tools
 
management
management management
management
 
Women empowerment
Women empowermentWomen empowerment
Women empowerment
 
Representation of Entity relationship diagram in data base managemnet system
Representation of Entity relationship diagram in data base managemnet systemRepresentation of Entity relationship diagram in data base managemnet system
Representation of Entity relationship diagram in data base managemnet system
 
Online furniture
Online furnitureOnline furniture
Online furniture
 
Introduction to queue
Introduction to queueIntroduction to queue
Introduction to queue
 

Recently uploaded

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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
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
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
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
 

Recently uploaded (20)

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"
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
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
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
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
 

Gitika html ppt

  • 1.
  • 2. 2
  • 3. 3
  • 4. • HTML tags are the hidden keywords within a web page that define how the browser must format and display the content. • Most tags must have two parts, an opening and a closing part. For example, <html> is the opening tag and </html> is the closing tag. 4
  • 5. HTML tags follow a simple but strict syntax: • Opening angle bracket (<) • Tag Name • Attributes (optional): First a space, then the attribute name, an equal sign (=), and a value enclosed in double quotes (""). • Closing angle bracket (>) 5
  • 6. Form allow you to type information into fields on a browser screen and submit that information to a web server. 6
  • 7. Html form tags are used to create html forms. Syntax: <form action=“script URL” method= get | post>form elements like input , text area etc.</form> 7
  • 8. • Action : background script ready to process or passed data • Target: Specify target window or frame where the result of script will be displayed. 8
  • 9. Method: GET -- this is the default method and causes the fill-out form contents to be appended to the URL. Use only when submit has no effect. e.g. pure query. POST -- this method causes the fill-out form contents to be sent to the server in a data body rather than as part of the URL. 9
  • 10. •Enctype: Specifies how the browser encodes data before it send it to server 10
  • 11. 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 • Hidden Controls • Clickable Buttons • Submit and Reset Button 11
  • 12. Text Input Controls There are three types of text input used on forms: • Single-line text input controls - This control is used for items that require only one line of user input, such as search boxes or names. They are created using HTML<input> tag. • Password input controls - This is also a single-line text input but it masks the character as soon as a user enters it. They are also created using HTML <input> tag. • Multi-line text input controls - This is used when the user is required to give details that may be longer than a single sentence. Multi-line input controls are created using HTML <text area> tag. 12
  • 13. • Basic example of a single-line text input used to take first name and last name 13
  • 15. Password input controls This is also a single-line text input but it masks the character as soon as a user enters it. They are also created using HTML <input> tag but type attribute is set to password. Attributes : • Types • Name • Value • Size • Max length 15
  • 16. 16 • basic example of a single-line password input used to take user password:
  • 18. Checkbox Control • Checkboxes are used when more than one option is required to be selected. They are also created using HTML <input> tag but type attribute is set to checkbox. • Attributes: • Type • Name • Value • check 18
  • 19. • an example HTML code for a form with two checkboxes: 19
  • 21. Radio Button Control Radio buttons are used when out of many options, just one option is required to be selected. They are also created using HTML <input> tag but type attribute is set to radio. • Attributes • Type • Name • Value • checked 21
  • 22. Select Box Control • A select box, also called drop down box which provides option to list down various options in the form of drop down list, from where a user can select one or more options. • attributes • Name. • Size. • Multiple. 22
  • 23. 23 example HTML code for a form with one drop down box
  • 25. File Upload Box If you want to allow a user to upload a file to your web site, you will need to use a file upload box, also known as a file select box. This is also created using the <input> element but type attribute is set to file. Attributes: • Name • accept 25
  • 26. Example HTML code for a form with one file upload box: 26
  • 28. Button Controls • There are various ways in HTML to create clickable buttons. You can also create a clickable button using <input> tag by setting its type attribute to button. • Attributes: • Submit • Reset • Button • image 28
  • 29. example HTML code for a form with three types of buttons: 29
  • 31. Registration form using main form tags: 31
  • 34. 34