Answers for "format input html"

55

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>
Posted by: Guest on March-26-2020
0

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/*" />
Posted by: Guest on July-17-2020
3

forms in html

<html>
<form action= "your site" method = "post/get">
  </form>
</html>
Posted by: Guest on June-02-2020

Browse Popular Code Answers by Language