Password, Drop Down Menu, Button


Password, Button, Drop Down Menu in HTML The <form> tag is used to create an HTML form for user Input
<input>tag is used where the user can enter data.

<input type = "password"> defines a  password field
Password in HTML
<html>
<body>
<form>
Username:<input type = "text" name ="user"><br>
 Password:<input type = "password" name = "password">
</form>
<body>
</html> 
OUTPUT:-

Username:
Password:
Note:- The Character in a password field are masked or circle.

Drop down Menu in HTML
<html>
<body>
<form> 
Select any Fruit you want to like
<select> <option value = "apple"> Apple</option>  

<option value = "mango"> Mango</option> 
<option value = "orange">Orange</option>   
</select>
</form> 
</body>
<html> 
OUTPUT

Select any Fruit you want to like
<input type="button"> defines a button

Button Example in HTML
<html>
<body>
<form>
<input type = button" value = " You Like my Examples Please share with friends" >
</form>
</body>
</html> 

OUTPUT
 The <input> Element

The <input> element is the most important form element.

Note:-  you also Learn C, C++ Tutorial Please Click this link for C, C++ Tutorial

No comments:

Post a Comment