Html toggle checkbox without javascript

HTML
Copy to clipboard
fablecode
  1. <!-- Robust and accessible using the label element to wrap the area you want clickable -->
  2. <label for="cb">
  3.     <div style="padding: 2em; border: 1px solid">
  4.         <input name="cb" id="cb" type="checkbox">
  5.     </div>

    Leave a comment

     
    Visual verification
     

    Related books

    More InfoHTML & CSS For Beginners: Your Step by Step Guide to Easily HtmL & Css Programming  in 7 Days
    HTML & CSS For Beginners: Your Step by Step Guide to Easily HtmL & Css Programming in 7 Days
    More InfoProgramming: Computer Programming For Beginners: Learn The Basics Of HTML5, JavaScript & CSS (Coding, C Programming, Java Programming, Web Design, JavaScript, Python, HTML and CSS)
    Programming: Computer Programming For Beginners: Learn The Basics Of HTML5, JavaScript & CSS (Coding, C Programming, Java Programming, Web Design, JavaScript, Python, HTML and CSS)
    More InfoHTML and CSS: Design and Build Websites
    HTML and CSS: Design and Build Websites
    More InfojQuery For Beginners: Your Guide To Easily Learn jQuery Programming in 7 days
    jQuery For Beginners: Your Guide To Easily Learn jQuery Programming in 7 days
    More InfoHTML & CSS In A Week ...Or Less
    HTML & CSS In A Week ...Or Less
    More InfoPROGRAMMING For BEGINNERS
    PROGRAMMING For BEGINNERS
    More InfoProgramming: Computer Programming for Beginners - Learn the Basics of Java, SQL & C++
    Programming: Computer Programming for Beginners - Learn the Basics of Java, SQL & C++
    More InfoHTML Programming Professional Made Easy: Expert HTML Programming Language Success in a Day for any Computer Users
    HTML Programming Professional Made Easy: Expert HTML Programming Language Success in a Day for any Computer Users