XHTML/ CSS - Check Boxes & Radio Buttons

Radio buttons and check boxes are used on sites all the time. They can be limiters and can help searches. By deselecting and selecting these buttons and boxes you can make your site more useful. 

radio buttons:

<form action="">
  <input type="radio" name="gender" value="male"> Male<br>
  <input type="radio" name="gender" value="female"> Female<br>
  <input type="radio" name="gender" value="other"> Other
</form>

Check Boxes:

<form action="">
<input type="checkbox" name="vehicle" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle" value="Car">I have a car
</form>

The form action tag sends the information to wherever you want the form/ data to be sent.

https://www.w3schools.com/howto/howto_css_custom_checkbox.asp

https://www.youtube.com/watch?v=veKHw125UJs&index=23&list=PLC1322B5A0180C946

Comments

Popular posts from this blog

Python 3.4 - Caesar Cipher

UML - Use Case Diagram