In this post, you will learn to create a new beginner-level project, a Profile Picture (or Avatar) Uploader using HTML, CSS and JavaScript.
This project doesn't take much time. For full video tutorial of this Profile Picture (or Avatar) Uploader in JavaScript, you can watch the YouTube video given below.
More About Profile Picture (or Avatar) Uploader
In this project, we will use input type file to upload image. We will use javascipt to change the url of show avatar to the one selected by the client.
This project is very easy, but if you want to get source codes or files of this Profile Picture (or Avatar) Uploader, you can easily download them from the download link given in this blog post.
Profile Picture (or Avatar) Uploader in JavaScript [YouTube Tutorial + Source Codes]
To create a Profile Picture (or Avatar) Uploader using HTML, CSS and JavaScript
- Create a folder. After naming the folder, create the files mentioned below inside this folder.
- Create a index.html file. The Created file must have either .html or .htm extension, as it declares that this file is an HTML document. This is where we will write the structure of our document.
- Create a style.css file. The Created file must have .css extension, as it declares that this file is an CSS file. This is where we will write code to make our project look beautiful.
- Create a main.js file. The Created file must either .js extension, as it declares that this file is an JavaScript file. This is where we will write the logic of our project.
Once you created these files, link the CSS and JavaScript to the HTML file and have write the codes (shown in video tutorial below) into their respective files. If you don't want to do these then scroll down and download the source of this Profile Picture (or Avatar) Uploader project by clicking on the given download button
That's all, now you've successfully created a Profile Picture (or Avatar) Uploader in HTML, CSS and JavaScript. I hope you enjoy the tutorial and have no problem in creating one yourself.
If your code doesn't work or you've faced any problems, please download the source code files from the given download button. It is free and a zip file will be downloaded that contains the project folder with source code files.
Image Uploader.zipJavaScript Project38.27KB.zip