Posts

Showing posts from November, 2022

Some Basic HTML Codes for Beginners

1. WEEK INPUT  label for="week">Select a week:</label>   <input type="week" id="week" name="week">   <input type="submit" value="Submit"> 2. TIME INPUT  <label for="appt">Select a time:</label>   <input type="time" id="appt" name="appt">   <input type="submit" value="Submit"> 3. RANGE  <label for="vol">Range (0 to 50):</label>   <input type="range" id="vol" name="vol" min="0" max="50">   <input type="submit" value="Submit"> 4. DATE INPUT <label for="birthday">Birthday:</label>   <input type="date" id="birthday" name="birthday">   <input type="submit" value="Submit"> </form> 5. RADIO BUTTON <p>Select Gender</p> <input t...

Click counter HTML Code

PROGRAMMED BY DEVANSH MISHRA  <html>  <body> <script>  var clicks = 0;   function onClick()   { clicks += 1;  document.getElementById("clicks").innerHTML = clicks;   };    </script>  <div align="center"> <button type="button" onClick="onClick()"> Click me </button>  <p>Clicks: <a id="clicks">0</a></p> </div> </body> </html>