File Upload element in HTML Forms

The Web Book

Upload your image in GIF format:


HTML Form File Input Example Code

<!DOCTYPE html> <html> <body> <form action="http://www.abc.com/upload.php" method="post"> <p>Upload your image in GIF format:</p> <input type="file" name="pic" accept="image/gif" /> <input type="submit" value="Upload" /> </form> </body> </html> Back