HTML5 Beginner Forms · 1 min read

Date, hidden, and file inputs

Start the HTML5 learning path »

❮ HTML5 Home All Tutorials ❯

What special input types should I know?

date, hidden, file + enctype.

Example

Interactive preview available
HTML5 Example
<form action="/upload.php" method="post" enctype="multipart/form-data">
  <input type="hidden" name="student_id" value="42">
  <input type="date" name="birthday">
  <input type="file" name="avatar" accept="image/*">
  <button type="submit">Upload</button>
</form>

Line-by-Line Walkthrough

File uploads require enctype="multipart/form-data".

Need more coins?

You do not have enough coins for this action.

Your balance: 0 coins

Share

Reactions

Loading reactions…