Upload
rimaoka
View
255
Download
1
Embed Size (px)
Citation preview
1 Minute HTML
<input> textbox and <label>
Form with an input
textbox
An input textbox accepts
a free text
A label describes what the
textbox is for
Pressing the submit button…
You jump to another page
The URL part after “?”
has the input from the textbox
The URL part after “?”
... is called “query string”
Let’s see how an
<input> textbox works
<input> tag with type=“text”
becomes a textbox
“name” is the parameter
name in query string
<input> tag doesn’t have
</input>
You enter a text
Press the button
as in “action”,
you jumped to action.html
Your input is in query string
How <label> works with
an <input> textbox
Enclose <input> in
<label> </label>
If <label> </label> encloses <input>,
then clicking on the label…
put the focus to the input textbox