Forms - HTML

 Forms - HTML


Forms - HTML provides a way to create forms that allow users to input data, such as text, numbers, and checkboxes. Forms can be submitted to a server for processing using the <form> tag, and form elements are defined using tags such as <input>, <textarea>, and <select>. Here's an example form:


<form action="process-form.php" method="POST">

  <label for="name">Name:</label>

  <input type="text" id="name" name="name"><br>


  <label for="email">Email:</label>

  <input type="email" id="email" name="email"><br>


  <label for="message">Message:</label>

  <textarea id="message" name="message"></textarea><br>


  <input type="checkbox" id="subscribe" name="subscribe" value="1">

  <label for="subscribe">Subscribe to newsletter</label><br>


  <input type="submit" value="Submit">

</form>

No comments:

Post a Comment

The Importance of Cybersecurity in the Digital Age

 The Importance of Cybersecurity in the Digital Age Introduction: In today's digital age, where technology is deeply intertwined with ev...