HTML
input type="text" <input type="text" size="20" value="123456" /> <input type="text" size="20" value="123456" onclick="this.select()" /> <input type="text" size="20" value="123456" onchange="this.select()" onclick="this.select()" /> <input type="text" size="20" value="123456" maxlength="10"/> <input type="text" size="20" value="123456" readonly /> <input type="text" size="20" value="123456" disabled />
input <input type="password" size="20" value="123456" /> <input type="number" size="20" value="123456" /> <input type="password" size="20" value="123456" onmouseover="this.select()" onmouseout="this.blur();" /> <input type="date"> <input type="month" > <input type="datetime-local"> <input type="time" >
input <form action="demo_form.asp"> Quantity (between 1 and 5): <input max="5" min="1" name="quantity" type="number" /> </form> Quantity (between 1 and 5): <form action="demo_form.asp"> <input type="email" /></form> <input type="file" multiple >
<label class="container"> <input type="radio" name="S1" checked>One</label><br> <label class="container"> <input type="radio" name="S1" >Two</label><br> <label class="container"> <input type="radio" name="S1" >Three</label><br> <label class="container"> <input type="radio" name="S1" >Four</label> <style> .container { cursor: pointer; font-size: 22px; } </style>
<label class="container"> <input type="radio" checked>One</label><br> <label class="container"> <input type="radio" >Two</label><br> <label class="container"> <input type="radio" >Three</label><br> <label class="container"> <input type="radio" >Four</label> <style> .container { cursor: pointer; font-size: 22px; } </style>
<script> var Tag= document.querySelectorAll("input") ; Tag.forEach((round) => { round.addEventListener("click", function() { if(round.value== dp.innerHTML){ round.checked=false ; dp.innerHTML = "?";return } dp.innerHTML = round.value ; }) }) </script>
<script> var Tag= document.querySelectorAll("input") ; Tag.forEach((round) => { round.addEventListener("click", function() { var TT =document.getElementById("dp"+round.value) ; if(TT.style.opacity == 0.3){ TT.style.opacity=1; TT.style.textDecoration = "initial"; } else{ TT.style.opacity=0.3; round.checked=false ; TT.style.textDecoration = "line-through"; } }) }) </script>
<label class="container"> <input type="checkbox" checked="checked">One</label><br> <label class="container"> <input type="checkbox">Two</label><br> <label class="container"> <input type="checkbox">Three</label><br> <label class="container"> <input type="checkbox">Four</label> <style> .container { cursor: pointer; font-size: 22px; } </style>
<label class="container"> <input type="checkbox" checked="checked">One</label> <label class="container"> <input type="checkbox" >Two</label> <label class="container"> <input type="checkbox" >Three</label> <label class="container"> <input type="checkbox" >Four</label> <style> .container { cursor: pointer; padding-left: 30px; font-size: 22px; } </style>
<style> input[type="checkbox"]:checked ~ span{ color: red;} label {cursor:pointer;padding-left: 20px; font-size: 22px;} </style> <label> <input type="checkbox" > <span>One</span></label> <label> <input type="checkbox" > <span>Two</span></label> <label> <input type="checkbox" > <span>Three</span></label> <label> <input type="checkbox" > <span>Four</span></label>