Creates a radio button : radio « Form « HTML / CSS






Creates a radio button

  
<HTML>
<HEAD>
<TITLE>Forms</TITLE>
</HEAD>

<BODY>
<H2>Feedback Form</H2>
<FORM METHOD = "POST" ACTION = "">

<P><STRONG>How did you get to our site?:</STRONG><BR>
Search engine 
<INPUT NAME = "how get to site" TYPE = "radio"
   VALUE = "search engine" CHECKED>
Links from another site 
<INPUT NAME = "how get to site" TYPE = "radio" 
   VALUE = "link">
Deitel.com Web site 
<INPUT NAME = "how get to site" TYPE = "radio" 
   VALUE = "deitel.com">
Reference in a book 
<INPUT NAME = "how get to site" TYPE = "radio" 
   VALUE = "book">
Other 
<INPUT NAME = "how get to site" TYPE = "radio" 
   VALUE = "other">
</P>

<INPUT TYPE = "submit" VALUE = "Submit Your Entries"> 
<INPUT TYPE = "reset" VALUE = "Clear Your Entries">
</FORM>

</BODY>
</HTML>

   
  








Related examples in the same category

1.input type = "radio" creates a radio button
2.radio button
3.Set input radio button background color and color
4.Labelling Radio Buttons
5.Use table to layout the radio buttons
6.Radio Button
7.Preselected Radio Example