0% found this document useful (0 votes)
36 views5 pages

Form

The document describes three <select> elements with different attributes. The first <select> element allows multiple selections and has the option for "English" selected by default. The second <select> element has a size of 5 and the same options. The third <select> element has a name attribute of "sub" and assigns values to each option.

Uploaded by

Aim sheihk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views5 pages

Form

The document describes three <select> elements with different attributes. The first <select> element allows multiple selections and has the option for "English" selected by default. The second <select> element has a size of 5 and the same options. The third <select> element has a name attribute of "sub" and assigns values to each option.

Uploaded by

Aim sheihk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

<form>

<select multiple>
<option>Subjects</option> It can
<option selected>English</option> scroll
<option>Urdu</option>
<option>Science</option>
<option>Math</option>
</select>
</form>

<form>
<select size="5">
<option>Subjects</option>
<option selected>English</option>
<option>Urdu</option>
<option>Science</option>
<option>Math</option>
</select>
</form>

<form>
<select name="sub">
<option value="subjects">Subjects</option>
<option>English</option>
<option>Urdu</option>
<option>Science</option>
<option>Math</option>
</select>
</form>
Attributes Value Description
type "text" use input text value.
"button" use to input button
"password" use to text is convert password type.
"file" use to browse file.
"checkbox" use to select option checkbox.
"radio" use to select in radio type.
"reset" use to input reset data.
"submit" use to input submit data.
value "value" Specify the default value of element.
name "value" Specify unique name for the input
element.
size "number" Define width of numbered(character) size
input box.
maxlength "number" Define maximum number(character)
allow to enter input box.
checked Specify input element to be checked
when it is first time loaded.
align "left" Define input type align in HTML
"right" document.
"center"

HTML Form Tag


Tag Description

<form> Defines a form for user input.


<input> Defines an input field data.
<button> Defines a push button
<textarea> Defines a text-area (a multi-line text input box).
<select> Defines a drop-down select list box.
<option> Defines an option value in the drop-down box.

You might also like