Futm-cpt112 - HTML 2
Futm-cpt112 - HTML 2
<form >
User ID : <input type = "text" name = "user_id" /> <br>
Password: <input type = "password" name =
"password" />
</form>
Attributes: -Following is the list of attributes for
<input> tag for creating password field.
This is used when the user is required to give details that may be
longer than a single sentence. They are created using HTML
<textarea> tag. Here is a basic example of a multi-line text input
used to take item description.
<!DOCTYPE html>
<html>
<head> <title>Multiple-Line Input Control</title> </head>
<body>
<form>
Description : <br />
<textarea rows = "5" cols = "50" name = "description">
Enter description here...
</textarea>
</form>
Attributes: -Following is the list of attributes
for <textarea> tag.
S/N Attribut Description
e
1 Name Used to give a name to the control which is
sent to the server to be recognized and get the
value.
2 Rows Indicates the number of rows of text area box
<form>
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. Here is
example HTML code for a form with two radio buttons
<!DOCTYPE html>
<html>
<form>
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. Here is example HTML code
for a form with one drop down box
<!DOCTYPE html>
<html>
<head> <title>Select Box Control</title> </head>
<body>
<form>
<select name = "dropdown">
<option value = "Maths" selected>Maths</option>
<option value = "Physics">Physics</option>
</select>
</form> </body> </html>
Attributes: -Following is the list of important
attributes of <select> tag
S/ Attribut Description
N e
<form>
Attributes: -Following is the list of important
attributes of file upload box
S/ Attribut Description
N e
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. The type attribute can take the following values
S/ Attribute Description
N
<form>
<form>