Tuesday 29 November 2011

HTML Tutorial - 3

How to create Check boxes in Html script ?


Solution :
Step 1: Go to Notepad.
Step 2: Copy the HTML script below to the notepad.

 

<html>
<body>

<form action="">
<input type="checkbox" name="mobile" value="Nokia" /> I have a Nokia<br />
<input type="checkbox" name="mobile" value="Samsung" /> I have a Samsung
</form>

</body>
</html>
 

Step 3: Now save the file with .html format.
Step 4: Close the notepad and now open the saved file in your default browser .

That's it ! 
You will see as like the below picture.

When you select any one option you will see like this in your browser !

No comments:

Post a Comment

Newest