SlideShare a Scribd company logo
1 of 16
Md. Ali Hosssain.
Web Designer.
Jr. Instructor, Graphic Arts Innstitute.
Email:Students.gai@gmail.com
Phone:01731402303
URL - Uniform Resource Locator
Web browsers request pages from web servers by using a URL.
scheme://host.domain:port/path/filename
Explanation:
scheme - defines the type of Internet service. The most common type is http
host - defines the domain host (the default host for http is www)
domain - defines the Internet domain name, like w3schools.com
port - defines the port number at the host (the default port number for http is 80)
path - defines a path at the server (If omitted, the document must be stored at
the root directory of the web site)
filename - defines the name of a document/resource
Color Values
What are forms?
 <form> is just another kind of HTML tag
 HTML forms are used to create (rather primitive) GUIs on Web pages
 Usually the purpose is to ask the user for information
 The information is then sent back to the server
 A form is an area that can contain form elements
 The syntax is: <form parameters> ...form elements... </form>
 A form usually contains a Submit button to send the information in he form elements

to the server
 The form’s parameters tell JavaScript how to send the information to the server (there

are two different ways it could be sent)
HTML Forms:
HTML forms are used to pass data to a server. An HTML form can
contain input elements like
Text fields
 checkboxes
 radio-buttons
submit & reset buttons
select lists
Textarea
fieldset
 legend
 label elements.

<form>
.
input elements
.
</form>
The <form> tag

 The <form arguments> ... </form> tag encloses form elements (and probably

other HTML as well)
 The arguments to form tell what to do with the user input
 action="url"
(required)
 Specifies where to send the data when the Submit button is clicked
 method="get"

(default)
 Form data is sent as a URL with ?form_data info appended to the end
 Can be used only if data is all ASCII and not more than 100 characters
 method="post"
 Form data is sent in the body of the URL request
 Cannot be bookmarked by most browsers
 target="target"
 Tells where to open the page sent as a result of the request
 target= _blank means open in a new window
 target= _top means use the same window
Notes on GET:
Appends form-data into the URL in name/value pairs
The length of a URL is limited (about 3000 characters)
Never use GET to send sensitive data! (will be visible in the URL)
Useful for form submissions where a user want to bookmark the result
GET is better for non-secure data, like query strings in Google
Notes on POST:
Appends form-data inside the body of the HTTP request (data is not shown is
in URL)
Has no size limitations
Form submissions with POST cannot be bookmarked
The <input> tag

 Most, but not all, form elements use the input tag, with a type="..." argument to

tell which kind of element it is
 type can be text, checkbox, radio, password, hidden, submit, reset,

button, file, or image
 Other common input tag arguments include:
 name: the name of the element
 value: the “value” of the element; used in different ways for different values of

type
 readonly: the value cannot be changed
 disabled: the user can’t do anything with this element
 Other arguments are defined for the input tag but have meaning only for certain

values of type
Text input
A text field:
<input type="text" name="textfield" value="with an initial value">

A multi-line text field
<textarea name="textarea" cols="24" rows="2">Hello</textarea>

A password field:
<input type="password" name="textfield3" value="secret">

• Note that two of these use the input tag, but one uses textarea
Buttons

A submit button:
<input type="submit" name="Submit" value="Submit">
 A reset button:
<input type="reset" name="Submit2" value="Reset">
 A plain button:
<input type="button" name="Submit3" value="Push Me">


 submit: send data
 reset: restore all form elements to their initial state
 button: take some action as specified by JavaScript

• Note that the type is input, not “button”
Checkboxes

 A checkbox:

<input type="checkbox" name="checkbox”
value="checkbox" checked>

 type: "checkbox"
 name: used to reference this form element from JavaScript
 value: value to be returned when element is checked
 Note that there is no text associated with the checkbox—you have to

supply text in the surrounding HTML
Radio buttons

Radio buttons:<br>
<input type="radio" name="radiobutton" value="myValue1">
male<br>
<input type="radio" name="radiobutton" value="myValue2" checked>
female

 If two or more radio buttons have the same name, the user can only

select one of them at a time
 This is how you make a radio button “group”

 If you ask for the value of that name, you will get the value specified

for the selected radio button
 As with checkboxes, radio buttons do not contain any text
Drop-down menu or list

 A menu or list:

<select name="select">
<option value="red">red</option>
<option value="green">green</option>
<option value="BLUE">blue</option>
</select>

Additional arguments:

size: the number of items visible in the list (default is "1")
multiple: if set to "true", any number of items may be

selected (default is "false")
Hidden fields

 <input type="hidden" name="hiddenField" value="nyah">

&lt;-- right there, don't you see it?

 What good is this?
 All input fields are sent back to the server, including hidden fields
 This is a way to include information that the user doesn’t need to see (or that you

don’t want her to see)
 The value of a hidden field can be set programmatically (by JavaScript) before
the form is submitted
HTML Forms:
Text Fields
<input type="text"> defines a one-line input field that a user can enter text into:
<form>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
</form>
First name:
Last name:
Html class-04

More Related Content

What's hot (18)

Forms Part 1
Forms Part 1Forms Part 1
Forms Part 1
 
Web app development_html_02
Web app development_html_02Web app development_html_02
Web app development_html_02
 
Html & Css #6 : formulaires
Html & Css #6 : formulairesHtml & Css #6 : formulaires
Html & Css #6 : formulaires
 
Html
HtmlHtml
Html
 
Html basics
Html basicsHtml basics
Html basics
 
Lectures-web
Lectures-webLectures-web
Lectures-web
 
Form Handling using PHP
Form Handling using PHPForm Handling using PHP
Form Handling using PHP
 
Database Management System - SQL beginner Training
Database Management System - SQL beginner Training Database Management System - SQL beginner Training
Database Management System - SQL beginner Training
 
Making web forms using php
Making web forms using phpMaking web forms using php
Making web forms using php
 
F# Console class
F# Console classF# Console class
F# Console class
 
Html Table
Html TableHtml Table
Html Table
 
Web Application and HTML Summary
Web Application and HTML SummaryWeb Application and HTML Summary
Web Application and HTML Summary
 
Content Providers in Android
Content Providers in AndroidContent Providers in Android
Content Providers in Android
 
Simple xml in .net
Simple xml in .netSimple xml in .net
Simple xml in .net
 
Automating Ievb
Automating IevbAutomating Ievb
Automating Ievb
 
HTML
HTML HTML
HTML
 
Html tags
Html tagsHtml tags
Html tags
 
User define data type In Visual Basic
User define data type In Visual Basic User define data type In Visual Basic
User define data type In Visual Basic
 

Viewers also liked

Organic Alternatives for Late Blight Control in Potatoes
Organic Alternatives for Late Blight Control in PotatoesOrganic Alternatives for Late Blight Control in Potatoes
Organic Alternatives for Late Blight Control in PotatoesGardening
 
Grazing Contracts for Livestock
Grazing Contracts for LivestockGrazing Contracts for Livestock
Grazing Contracts for LivestockGardening
 
Fatigue and sleep_disturbance_following_traumatic.9
Fatigue and sleep_disturbance_following_traumatic.9Fatigue and sleep_disturbance_following_traumatic.9
Fatigue and sleep_disturbance_following_traumatic.9Richard Radecki
 
For Sidney Bechet
For Sidney BechetFor Sidney Bechet
For Sidney Bechet30335
 
The diary of anne frank (1) 2
The diary of anne frank (1) 2The diary of anne frank (1) 2
The diary of anne frank (1) 2Moneycar
 
Seed Production and Variety Development for Organic Systems
Seed Production and Variety Development for Organic SystemsSeed Production and Variety Development for Organic Systems
Seed Production and Variety Development for Organic SystemsGardening
 
Beyond Basic Compensation
Beyond Basic CompensationBeyond Basic Compensation
Beyond Basic CompensationGardening
 
Media Evaluation Question 4
Media Evaluation Question 4Media Evaluation Question 4
Media Evaluation Question 4SusC
 
Ferrari exhaust systems
Ferrari exhaust systemsFerrari exhaust systems
Ferrari exhaust systemsPaul Busby
 
Organic Orchard, Vineyard, and Berry Crop Documentation Forms
Organic Orchard, Vineyard, and Berry Crop Documentation FormsOrganic Orchard, Vineyard, and Berry Crop Documentation Forms
Organic Orchard, Vineyard, and Berry Crop Documentation FormsGardening
 
Sustainable Corn and Soybean Production
Sustainable Corn and Soybean ProductionSustainable Corn and Soybean Production
Sustainable Corn and Soybean ProductionGardening
 
Organic Soybean Production
Organic Soybean ProductionOrganic Soybean Production
Organic Soybean ProductionGardening
 
An Illustrated Guide to Sheep and Goat Production
An Illustrated Guide to Sheep and Goat ProductionAn Illustrated Guide to Sheep and Goat Production
An Illustrated Guide to Sheep and Goat ProductionGardening
 
Arsenic in Poultry Litter: Organic Regulations
Arsenic in Poultry Litter: Organic RegulationsArsenic in Poultry Litter: Organic Regulations
Arsenic in Poultry Litter: Organic RegulationsGardening
 
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...Gautham Reddy
 
Sustainable Turf Care
Sustainable Turf CareSustainable Turf Care
Sustainable Turf CareGardening
 

Viewers also liked (20)

Organic Alternatives for Late Blight Control in Potatoes
Organic Alternatives for Late Blight Control in PotatoesOrganic Alternatives for Late Blight Control in Potatoes
Organic Alternatives for Late Blight Control in Potatoes
 
Grazing Contracts for Livestock
Grazing Contracts for LivestockGrazing Contracts for Livestock
Grazing Contracts for Livestock
 
Fatigue and sleep_disturbance_following_traumatic.9
Fatigue and sleep_disturbance_following_traumatic.9Fatigue and sleep_disturbance_following_traumatic.9
Fatigue and sleep_disturbance_following_traumatic.9
 
For Sidney Bechet
For Sidney BechetFor Sidney Bechet
For Sidney Bechet
 
The diary of anne frank (1) 2
The diary of anne frank (1) 2The diary of anne frank (1) 2
The diary of anne frank (1) 2
 
B c f section 2
B c f section 2B c f section 2
B c f section 2
 
Seed Production and Variety Development for Organic Systems
Seed Production and Variety Development for Organic SystemsSeed Production and Variety Development for Organic Systems
Seed Production and Variety Development for Organic Systems
 
Konferenc15
Konferenc15Konferenc15
Konferenc15
 
Beyond Basic Compensation
Beyond Basic CompensationBeyond Basic Compensation
Beyond Basic Compensation
 
Media Evaluation Question 4
Media Evaluation Question 4Media Evaluation Question 4
Media Evaluation Question 4
 
Ferrari exhaust systems
Ferrari exhaust systemsFerrari exhaust systems
Ferrari exhaust systems
 
Organic Orchard, Vineyard, and Berry Crop Documentation Forms
Organic Orchard, Vineyard, and Berry Crop Documentation FormsOrganic Orchard, Vineyard, and Berry Crop Documentation Forms
Organic Orchard, Vineyard, and Berry Crop Documentation Forms
 
Sustainable Corn and Soybean Production
Sustainable Corn and Soybean ProductionSustainable Corn and Soybean Production
Sustainable Corn and Soybean Production
 
The Prestige
The PrestigeThe Prestige
The Prestige
 
B c f section 3
B c f section 3B c f section 3
B c f section 3
 
Organic Soybean Production
Organic Soybean ProductionOrganic Soybean Production
Organic Soybean Production
 
An Illustrated Guide to Sheep and Goat Production
An Illustrated Guide to Sheep and Goat ProductionAn Illustrated Guide to Sheep and Goat Production
An Illustrated Guide to Sheep and Goat Production
 
Arsenic in Poultry Litter: Organic Regulations
Arsenic in Poultry Litter: Organic RegulationsArsenic in Poultry Litter: Organic Regulations
Arsenic in Poultry Litter: Organic Regulations
 
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
 
Sustainable Turf Care
Sustainable Turf CareSustainable Turf Care
Sustainable Turf Care
 

Similar to Html class-04 (20)

HTML
HTML HTML
HTML
 
html forms
html formshtml forms
html forms
 
HtmlForms- basic HTML forms description.
HtmlForms- basic HTML forms description.HtmlForms- basic HTML forms description.
HtmlForms- basic HTML forms description.
 
2. HTML forms
2. HTML forms2. HTML forms
2. HTML forms
 
11-html-forms.ppt
11-html-forms.ppt11-html-forms.ppt
11-html-forms.ppt
 
HTML Tables and Forms
HTML Tables and Forms HTML Tables and Forms
HTML Tables and Forms
 
20-html-forms.ppt
20-html-forms.ppt20-html-forms.ppt
20-html-forms.ppt
 
20 html-forms
20 html-forms20 html-forms
20 html-forms
 
Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
05 html-forms
05 html-forms05 html-forms
05 html-forms
 
Designing web pages html forms and input
Designing web pages html  forms and inputDesigning web pages html  forms and input
Designing web pages html forms and input
 
HTML and CSS part 2
HTML and CSS part 2HTML and CSS part 2
HTML and CSS part 2
 
Forms.pptx
Forms.pptxForms.pptx
Forms.pptx
 
Chapter 9: Forms
Chapter 9: FormsChapter 9: Forms
Chapter 9: Forms
 
Html forms
Html formsHtml forms
Html forms
 
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
 
Building html forms
Building html formsBuilding html forms
Building html forms
 
Html Forms.ppt
Html Forms.pptHtml Forms.ppt
Html Forms.ppt
 
Html,Css and Javascript Forms using different tags
Html,Css and Javascript Forms using different tagsHtml,Css and Javascript Forms using different tags
Html,Css and Javascript Forms using different tags
 
Html forms
Html formsHtml forms
Html forms
 

More from Md Ali Hossain (20)

Job environment (for new employee)
Job  environment (for new employee) Job  environment (for new employee)
Job environment (for new employee)
 
Web offset presses
Web offset pressesWeb offset presses
Web offset presses
 
Modern printing technologies
Modern printing technologiesModern printing technologies
Modern printing technologies
 
Screen printing
Screen printingScreen printing
Screen printing
 
Color
ColorColor
Color
 
Flexography
FlexographyFlexography
Flexography
 
Offset printing platon press
Offset printing platon pressOffset printing platon press
Offset printing platon press
 
Flexographic printing 1(9551)
Flexographic printing 1(9551)Flexographic printing 1(9551)
Flexographic printing 1(9551)
 
Press mentainense(9553)
Press mentainense(9553)Press mentainense(9553)
Press mentainense(9553)
 
Flexographic printing 1(9551)
Flexographic printing 1(9551)Flexographic printing 1(9551)
Flexographic printing 1(9551)
 
Special printing
Special printingSpecial printing
Special printing
 
142
142142
142
 
Web authoring design-basics
Web authoring design-basicsWeb authoring design-basics
Web authoring design-basics
 
Site designer
Site designerSite designer
Site designer
 
Webdesign
WebdesignWebdesign
Webdesign
 
Httml flash
Httml flashHttml flash
Httml flash
 
Html class-07
Html class-07Html class-07
Html class-07
 
Html class-02
Html class-02Html class-02
Html class-02
 
Css class-01
Css class-01Css class-01
Css class-01
 
Html class-01
Html class-01Html class-01
Html class-01
 

Recently uploaded

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Recently uploaded (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

Html class-04

  • 1. Md. Ali Hosssain. Web Designer. Jr. Instructor, Graphic Arts Innstitute. Email:Students.gai@gmail.com Phone:01731402303
  • 2. URL - Uniform Resource Locator Web browsers request pages from web servers by using a URL. scheme://host.domain:port/path/filename Explanation: scheme - defines the type of Internet service. The most common type is http host - defines the domain host (the default host for http is www) domain - defines the Internet domain name, like w3schools.com port - defines the port number at the host (the default port number for http is 80) path - defines a path at the server (If omitted, the document must be stored at the root directory of the web site) filename - defines the name of a document/resource
  • 4. What are forms?  <form> is just another kind of HTML tag  HTML forms are used to create (rather primitive) GUIs on Web pages  Usually the purpose is to ask the user for information  The information is then sent back to the server  A form is an area that can contain form elements  The syntax is: <form parameters> ...form elements... </form>  A form usually contains a Submit button to send the information in he form elements to the server  The form’s parameters tell JavaScript how to send the information to the server (there are two different ways it could be sent)
  • 5. HTML Forms: HTML forms are used to pass data to a server. An HTML form can contain input elements like Text fields  checkboxes  radio-buttons submit & reset buttons select lists Textarea fieldset  legend  label elements. <form> . input elements . </form>
  • 6. The <form> tag  The <form arguments> ... </form> tag encloses form elements (and probably other HTML as well)  The arguments to form tell what to do with the user input  action="url" (required)  Specifies where to send the data when the Submit button is clicked  method="get" (default)  Form data is sent as a URL with ?form_data info appended to the end  Can be used only if data is all ASCII and not more than 100 characters  method="post"  Form data is sent in the body of the URL request  Cannot be bookmarked by most browsers  target="target"  Tells where to open the page sent as a result of the request  target= _blank means open in a new window  target= _top means use the same window
  • 7. Notes on GET: Appends form-data into the URL in name/value pairs The length of a URL is limited (about 3000 characters) Never use GET to send sensitive data! (will be visible in the URL) Useful for form submissions where a user want to bookmark the result GET is better for non-secure data, like query strings in Google Notes on POST: Appends form-data inside the body of the HTTP request (data is not shown is in URL) Has no size limitations Form submissions with POST cannot be bookmarked
  • 8. The <input> tag  Most, but not all, form elements use the input tag, with a type="..." argument to tell which kind of element it is  type can be text, checkbox, radio, password, hidden, submit, reset, button, file, or image  Other common input tag arguments include:  name: the name of the element  value: the “value” of the element; used in different ways for different values of type  readonly: the value cannot be changed  disabled: the user can’t do anything with this element  Other arguments are defined for the input tag but have meaning only for certain values of type
  • 9. Text input A text field: <input type="text" name="textfield" value="with an initial value"> A multi-line text field <textarea name="textarea" cols="24" rows="2">Hello</textarea> A password field: <input type="password" name="textfield3" value="secret"> • Note that two of these use the input tag, but one uses textarea
  • 10. Buttons A submit button: <input type="submit" name="Submit" value="Submit">  A reset button: <input type="reset" name="Submit2" value="Reset">  A plain button: <input type="button" name="Submit3" value="Push Me">   submit: send data  reset: restore all form elements to their initial state  button: take some action as specified by JavaScript • Note that the type is input, not “button”
  • 11. Checkboxes  A checkbox: <input type="checkbox" name="checkbox” value="checkbox" checked>  type: "checkbox"  name: used to reference this form element from JavaScript  value: value to be returned when element is checked  Note that there is no text associated with the checkbox—you have to supply text in the surrounding HTML
  • 12. Radio buttons Radio buttons:<br> <input type="radio" name="radiobutton" value="myValue1"> male<br> <input type="radio" name="radiobutton" value="myValue2" checked> female  If two or more radio buttons have the same name, the user can only select one of them at a time  This is how you make a radio button “group”  If you ask for the value of that name, you will get the value specified for the selected radio button  As with checkboxes, radio buttons do not contain any text
  • 13. Drop-down menu or list  A menu or list: <select name="select"> <option value="red">red</option> <option value="green">green</option> <option value="BLUE">blue</option> </select> Additional arguments: size: the number of items visible in the list (default is "1") multiple: if set to "true", any number of items may be selected (default is "false")
  • 14. Hidden fields  <input type="hidden" name="hiddenField" value="nyah"> &lt;-- right there, don't you see it?  What good is this?  All input fields are sent back to the server, including hidden fields  This is a way to include information that the user doesn’t need to see (or that you don’t want her to see)  The value of a hidden field can be set programmatically (by JavaScript) before the form is submitted
  • 15. HTML Forms: Text Fields <input type="text"> defines a one-line input field that a user can enter text into: <form> First name: <input type="text" name="firstname"><br> Last name: <input type="text" name="lastname"> </form> First name: Last name: