← CodePrimer
HTML
Beginner
Forms
Date, hidden, and file inputs
What special input types should I know?
date, hidden, file + enctype.
<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>
Notes
File uploads require enctype="multipart/form-data".
Keywords: date · hidden · file · upload · enctype
Related
HTML
HTML headings h1–h6
How do I create page headings?
HTML
Paragraphs and line breaks
How do I break text into paragraphs?
HTML
Hyperlinks with href
How do I make a clickable link?
HTML
Ordered and unordered lists
How do I make bullet or numbered lists?
HTML
HTML table structure
How do I display tabular data?
HTML
Image with alt text
How do I insert an image accessibly?