Open In App

How to define a form for user input using HTML5 ?

Last Updated : 15 Jul, 2025
Comments
Improve
Suggest changes
1 Like
Like
Report

In this article, we will learn how to create a form in a webpage by using the <form> tag. This tag is used to create form for user input. Also there are many elements which are used within form tag.

Syntax:
<form> Form Content... </form>

Example: The following code snippet demonstrates the simple creation of form.

Output : Supported Browsers:
  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Next Article

Similar Reads