25-HTML Radiobutton

0
240

This tutorial is all about HTML Radiobutton.
Radio form elements are similar  to the  “Scan-Tron” sheets that is used when taking a test in school.  This simply allows the user to choose one selection in each question.

 

Radiobutton used <input> tag and the type attribute was set to  “radio” .

 

Example:

<h3>Please select your civil status.</h3>
<input type="radio" name="status" /> Single<br />
<input type="radio" name="status" /> Married<br />
<input type="radio" name="status" /> Widow<br />

 

 

Example on how to set a radiobutton with a default checked every time the HTML page is loaded:

<h3>Please select your civil status.</h3>
<input type="radio" name="status" checked="true" /> Single<br />
<input type="radio" name="status" />  Married<br />
<input type="radio" name="status" />  Widow<br />

 

Readers might read also:

Facebook Comments
(Visited 20 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here