No announcement
 

Form Elements

Form elements are used to collect different types of user input within a form, such as text, numbers, checkboxes, radio buttons, and more.

Example:

form_element.html

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Form Elements Example</title>
</head>
<body>
    <form>
        <label for="name">Name:</label>
        <input type="text" id="name" name="name">

        <label for="email">Email:</label>
        <input type="email" id="email" name="email">

        <label for="age">Age:</label>
        <input type="number" id="age" name="age">
    </form>
</body>
</html>


Output

In this example, we have three form elements: a text input for the name, an email input for the email address, and a number input for the age.