Html Form

HTML FORM

Form in html form is a tag which is used to create form in html.  <form> element is a container which contains input elements for example text fields, checkboxes, submit button, radios buttons.

Can I create form without form element?

Yes, you can have a valid input without a form.

Example : 


        <!DOCTYPE html>
        <html>
        <body>

        <h2>HTML Forms Example</h2>

        <form action="/process.php">
        <label for="name">Name</label><br>
        <input type="text" id="name" name="name" value="Ram"><br>
        <input type="submit" value="Submit">
        </form

        </body>
        </html>



Result



Reactions

Post a Comment

0 Comments