Getting started
Headings
Anchors and hyperlinks
Tables
Input control elements
Sectioning elements
Lists
Comments
IFrames
Text formatting
Classes and IDs
Images
Linking resources
Selection menu controls
Output element
Content Languages
Doctypes
Forms
Forms
Submitting
Target attribute in form tag
Uploading Files
Grouping a few input fields
Canvas
Data attributes
SVG
Meta information
Void elements
Div element
Label element
Marking up source code
Media elements
Tabindex
ARIA
Global attributes
Marking-up quotes
Include JavaScript in HTML
Image Maps
Using HTML with CSS
Progress element
Character entities
Paragraphs
HTML 5 cache
Embe
Navigation bars
HTML event attributes
Contributors

Uploading Files

suggest change

Images and files can be uploaded/submitted to server by setting enctype attribute of form tag to multipart/form-data. enctype specifies how form data would be encoded while submitting to the server.

Example

<form method="post" enctype="multipart/form-data" action="upload.php"> 
    <input type="file" name="pic" />
    <input type="submit" value="Upload" />
</form>

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents