ShapeYourPath
(current)
Run Code
Live Code Editor- Materialize CSS Checkbox
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!--Let browser know website is optimized for mobile--> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content=""> <title>Materialize CSS Checkbox</title> <!--Import Google Icon Font--> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" /> <!--Import materialize.css--> <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" /> <style type="text/css"> p { font-size: 18px; } h1{ font-size: 35px; } .custom-padding { height: 80px; } .custom--space { margin-bottom: 50px; } </style> </head> <body> <div class="container"> <h1 class="center-align">Materialize CSS Checkboxes</h1> <div class="row"> <div class="col s12"> <form action="#"> <p> <label for="php"> <input type="checkbox" id="php" /> <span>PHP</span> </label> </p> <p> <label for="asp"> <input type="checkbox" checked="checked" id="asp" /> <span>ASP</span> </label> </p> <p> <label for="rubby"> <input type="checkbox" class="filled-in" checked="checked" id="rubby" /> <span>Ruby</span> </label> </p> <p> <label for="bootstrap5"> <input id="indeterminate-checkbox" type="checkbox" id="bootstrap5" /> <span>Bootstrap 5 </span> </label> </p> <p> <label for="materialize"> <input type="checkbox" checked="checked" disabled="disabled" id="materialize" /> <span>Materialize</span> </label> </p> <p> <label for="tailwind"> <input type="checkbox" disabled="disabled" id="tailwind" /> <span>Tailwind</span> </label> </p> </form> </div> </div> </div> <!--/container--> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> </body> </html>
Output :
Running