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 15." - Forms: checkboxes.


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 15." - Forms: checkboxes.

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: checkboxes. Lesson 15. input type="checkbox" defines a checkbox. Checkboxes are similar to radio buttons but have special features. Checkboxes let a user select zero or more options of a limited number of choices. To set a checkbox use type="checkbox" of element input. Attribute names must be different for all checkboxes's elements of a current group. Attribute checked="checked" set checked sign for every single checkbox.
First publication rights USA 2017 com



Forms: checkboxes.

input type="checkbox" defines a checkbox. Checkboxes are similar to radio buttons but have special features. Checkboxes let a user select zero or more options of a limited number of choices.

To set a checkbox use type="checkbox" of element input (in the same way as for radio buttons). Checkboxes have some special rules:
  1. type="checkbox" - attribute type must be set as checkbox, this way we make browser understand that we set a checkbox.
  2. name="ez", name="hr", name="sv" - Attribute names must be different for all checkboxes's elements of a current group.
  3. value="" - attribute value is not required here. We can omit it or make empty.
  4. checked="checked" - attribute checked set if a checkbox is checked.
Tag <label> defines a label for an <input> element. Tag <label> provides useful effect: a mouse click activates or disactivates a checkbox of required input field.

Description of whole group of checkboxes must be outside first <label> tag for a checkbox and before first checkbox.

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>

<p>What states of US do you like?</p>
<p>
<label><input type="checkbox" name="ny" value="" />New York</label>  &nbsp; &nbsp; &nbsp; 
<label><input type="checkbox" name="florida" value="" checked="checked" />Florida</label>  &nbsp; &nbsp; &nbsp; 
<label><input type="checkbox" name="texas" value="" />Texas</label>  &nbsp; &nbsp; &nbsp; 
</p>
</form>

So we have placed mentioned above things on our test webpage:
article_015.html ← click to view, how it looks on this website...
article_015.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/p015.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.