Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> label { cursor: pointer; background-color: lightblue; color: #ffffff; padding: 10px 20px; } #upload { opacity: 0; position: absolute; z-index: -1; } </style> </head> <body> <form action="/form/sumbit" method="get"> <label for="upload">Upload a file</label> <input type="file" name="photo" id="upload" /> </form> </body> </html>