You are on page 1of 3

HTML (Hyper Text Markup Language)

4 Radio button
<input type=”radio” Name=”name” checked> name
.. Name, defines the attribute name that will be used by the script for
required processing
.. type, defines the type of control, it is Radio button
.. checked, selects this radio button, fill-in, inside the radio
 Note:-
While more than one check box can be selected in the check box, only one
radio button is only allowed to be selected in radio button.
5 Password field
<input type=”password” Name=”name” size=n1 value=”value”>
.. Name, defines the attribute name that will be used by the script for
required processing
.. type, defines the type of control, it is a password area, and appears as a
string of asterisks
.. value, defines the default value
.. size, defines the size of the area assigned to contain the password in pixels
6 File selection dialogue box
<input type=”file” Name=”name” size=n1 value=”value”>
.. Name, defines the attribute name that will be used by the script for
required processing
.. type, defines the type of control, it is a file browsing
.. value, defines the default value
.. size, defines the size of the area assigned to contain the password in pixels
7 Pop-down menu
<select name=”name”>
<option> Statement 1 </option>
<option> Statement 2 </option>
……………
……………
<option> Statement n </option>
</select>
.. Name, defines the attribute name that will be used by the script for
required processing
.. option tag, is used to defines the set of menu items
Example (22):

Write HTML program that display the following page

Answer:

<HTML>
<Head>
<TITLE> MY WEBPAGE </TITLE>
</HEAD>
<BODY>
<form>
Enter your Name: <input type="text" name="n1" size=40 value="Enter your
Name"> <br>
Enter Your Password:<input type="password" name="n3" size=20
value="1234"> <br>
Enter your Address: <textarea name="n2" rows=3 cols=50> Enter your
Adrress</textarea><br>
Select Gender:
<select name="abc">
<option> Choose </option>
<option> Male </option>
<option> Female </option>
</select>
<HR width=100% size=2>
<input type="checkbox" name="a">check 1
<input type="checkbox" name="b" checked>check 2
<input type="checkbox" name="c" checked>check 3 <br>
<HR width=100% size=2>
<input type="radio" name="x" checked>radio 1
<input type="radio" name="y">radio 2
<input type="radio" name="z">radio 3 <br>
<HR width=100% size=2>
Browse a file: <input type="file" name="browse" size=40> <br>
<input type="submit" name="sub" value="Ok">
<input type="reset" name="reset" value="Cancel">
</form>
</BODY>
</HTML>

You might also like