WEBAPP Lesson 4
WEBAPP Lesson 4
FORMS
AND VIDEOS)
Chapter Objectives
At the end of the chapter, students are expected to:
a. Learn how tables are created in HTML and what they are
useful for.
• A form will take input from the site visitor and then will
post it to a back-end application such as CGI, ASP Script
or PHP script etc.
Syntax:
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.
HTML Forms
Example: Output:
HTML Forms
1 type
Indicates the type of input control and for text input control it will be set to text.
2 name
Used to give a name to the control which is sent to the server to be recognized and get
the value.
3 value
4 size
5 maxlength
Allows to specify the maximum number of characters a user can enter into the text box.
HTML Forms
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 <textarea> tag.
Example Output
HTML Forms
Multiple-Line Text Input Controls
Example Output
HTML Forms
Checkbox Control
Sr.No Attribute & Description
1 type
Indicates the type of input control and for checkbox input control it will be set
to checkbox..
2 name
Used to give a name to the control which is sent to the server to be recognized
and get the value.
3 value
4 checked
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.
Example Output
HTML Forms
Radio Button Control
Sr.No Attribute & Description
1 type
Indicates the type of input control and for checkbox input control it will be set to
radio.
2 name
Used to give a name to the control which is sent to the server to be recognized and
get the value.
3 value
4 checked
Example Output
HTML Forms
1 name
Used to give a name to the control which is sent to the server to be recognized
and get the value.
2 accept
Example
Output
HTML Forms
Button Controls
Hidden form controls are used to hide data inside the page
which later on can be pushed to the server. This control hides
inside the code and does not appear on the actual page. For
example, following hidden form is being used to keep current
page number.
HTML Forms
Example Output
HTML Video
The HTML <video> tag is used to embed video into your web
page, it has several video sources.
Example Output
HTML Video
loop loop Specifies that the video will start again every time after finish.
poster URL Specifies the image to be shown while the video is downloading.
preload auto Specifies what author thinks will lead to user experience at its
metadata best.
none