Alaska under the moon in the starry night
Statue of Liberty in Liberty Island in New York Harbor
USA stars Eye in the sky

Main (Home) page. USA 2017 .com "Lesson 14." - Forms: radio buttons.


Somebody think about future. We make future today. USA2017.com. Peace, freedom, happiness for everyone in USA and everywhere on the Earth in 2017.

USA2017 :: "Lesson 14." - Forms: radio buttons.

I searched all day along and finally found out all I need on USA2017.
/From the "Feedback collection on USA2017.com", USA2017.com./

HTML tutorial on USA 2017 Forms: radio buttons. Lesson 14. Radio button input is for selecting one of many choices. Radio buttons let a user select one and only one of a limited number of choices. To set a radio button use type="radio" of element input. Attribute name must be the same for all radio button's elements of a current group. Attribute value="yes", value="no" must be different for all radio button's elements of a current group. Attribute checked="checked" set default radio button.
First publication rights USA 2017 com



Forms: radio buttons.

Radio button input is for selecting one of many choices. Radio buttons let a user select one and only one of a limited number of choices.

To set a radio button use type="radio" of element input (in the same way as for texts and passwords). Radio buttons have some special rules:
  1. type="radio" - attribute type must be set as type="radio", this way we make browser understand that we set a group of radio buttons.
  2. name="love_america" - Attribute name must be the same for all radio button's elements of a current group. Here this is a name of the current group name="love_america", not for one single button.
  3. value="yes" - Attribute value="yes", value="no" must be different for all radio button's elements of a current group. Attribute value sets a value that would be passed to a form-handler.
  4. checked="checked" - Attribute checked="checked" set default radio button. According HTML5 standards we can use simple way to show checked button: checked
Tag <label> defines a label for an <input> element. Tag <label> provides useful effect: a mouse click activates required input field.

Description of whole buttons group must be outside first <label> tag for radio button and before first radio button.

Codes to set into the test page:
<form action="formdata.php" method="POST" name="form1">
<p><label>Name (max 32 chars): <input type="text" name="name1" size="32" maxlength="32" /></label></p>
<p><label>Password (max 6 chars): <input type="password" name="pas1" size="10" maxlength="6" /></label></p>
<p>Do you love America? ::::: 
<label>Yes<input type="radio" name="love_america" value="yes" checked="checked" /></label> ... or ... 
<label>No<input type="radio" name="love_america" value="no" /></label>
</p>
</form>

So we have placed mentioned above things on our test webpage:
article_014.html ← click to view, how it looks on this website...
article_014.zip ← download this webpage in zip archive to set on your website.

To visit more lessons use navigation bar below ↓,


More Info about "HTML and Internet basics" → ↓

"1&1" - one of the largest web hosts in the world.

Register with one of the largest web hosts in the world.

Our broad product portfolio of domains, website packages, web hosting packages and high-end server solutions gives you plenty of choice.

Click Here → ↓


Happy new searching to you!

What to do and where to go?

If you plan to come back later...
Please remember this page -
URL: http://usa2017.com/html/p014.html
Basket is empty

Love Me Do portal. Miss USA 2017.
"Love Me Do"

Keep pornography out & protect your family. Content watch :: Stop Internet Porno. Free computer scan.
Content watch :: Stop Internet Porno.

Adobe Macromedia.
Adobe Macromedia.

"Love Me Do" portal on USA 2017.
"Love Me Do" portal on USA 2017.

Hosting Observer.
Hosting Observer.

Music portal on USA2017.com
Music portal on USA2017.com

USA2017.com Attention! Thank you for visit! I wish you great success in present and future!
Pleeeeeeease, don't forget to vote for me in 2017! Thanks for your support.
© CopyRight(R), CopyLeft(L), CopyCat(C) 2017, President of USA. USA2017.com.
We make future today. Join us now! Peace, freedom, happiness, for everyone in USA and everywhere on the Earth in 2017.
Our very special thanks for support to: Team of the hosting company.
News from USA 2017. Sign up!
Close and hide in basket
Account Now. Free direct deposit. Visa card. 100% Approval. $25 Bonus when you set up direct deposit. Sign Up in 60 seconds.
Close and hide in basket
Butlers Bubbly Game. Snow and skiing - the perfect holiday! Until Billy the Butler gets a thirst for your bubbly! Stop Billy before he polishes off ALL the champagne 'Moet et chandon' and stand in line to win incredible prizes!
Close and hide in basket
eToro. While markets plummet... You profit.