format input html code example
Example 1: html form
<form action="/action.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" value="Mike"><br><br>
<label for="lname">Last name:</label><br>
<input type="text" id="lname" value="Walker"><br><br>
<input type="submit" value="Submit">
</form>
Example 2: forms in html
<html>
<form action= "your site" method = "post/get">
</form>
</html>
Example 3: input type file pattern attribute in html
<input type="file" name="my-image" id="image" accept="image/gif, image/jpeg, image/png" />
To select only image files, you can use this accept="image/*"
<input type="file" name="my-image" id="image" accept="image/*" />