Hello wizards, I hope you are doing great. Today in this blog you’ll learn how to create the "Application Form" project using HTML & CSS.
Preview
In the above video, you’ve seen the preview of the "Application Form" project and I hope you are now able to create this type of project. If not, I have provided all the HTML & CSS code below.
Application Form [Source Code]
To get the following HTML & CSS code for the Application Form project. You need to create two files one is an HTML file, and the second one is a CSS file. After completing these two files, you can copy-paste the codes on your document.
Remember, you’ve to create a file with a .html extension for HTML code and a .css extension for CSS code.
You can also download all source code files from the given download button.
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Job Application Website</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="container"> <div class="applyContainer"> <h1>Job Application <span class="titleSmall"> (Development Role) </span> </h1> <form action=""> <div class="formContainer"> <div class="formBox"> <label for="firstName">First Name</label> <input type="text" id="firstName" placeholder="Enter your first name..."> </div> <div class="formBox"> <label for="secondName">Second Name</label> <input type="text" id="secondName" placeholder="Enter your second name..."> </div> <div class="formBox"> <label for="email">Email</label> <input type="email" id="email" placeholder="Enter your email..."> </div> <div class="formBox"> <label for="job_role">Job Role</label> <select name="job_role" id="job_role"> <option value="">Select Job Role</option> <option value="frontend">Frontend Developer</option> <option value="backend">Backend Developer</option> <option value="full_stack">Full Stack Developer</option> <option value="ui_ux">UI/UX Designer</option> </select> </div> <div class="textareaBox"> <label for="address">Address</label> <textarea id="address" cols="50" rows="4" placeholder="Enter your address..."></textarea> </div> <div class="formBox"> <label for="state">State</label> <input type="text" id="state" placeholder="Enter your state name..."> </div> <div class="formBox"> <label for="pincode">Pincode</label> <input type="number" id="pincode" placeholder="Enter your pincode Number..."> </div> <div class="formBox"> <label for="date">Date</label> <input type="date" value="2022-11-11" id="date"> </div> <div class="formBox"> <label for="upload">Upload Resume</label> <input type="file" name="upload" id="upload"> </div> </div> <div class="button_container"> <button type="button"> Apply</button> </div> </form> </div> </div> </body> </html>
CSS
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; } body { background-color: #31cb00; } .container { display: flex; justify-content: center; align-items: center; } .applyContainer { max-width: 600px; padding: 20px; margin: 10px; border-radius: 10px; background-color: white; box-shadow: 4px 3px 5px rgb(1, 1, 1, 0.1); } .titleSmall { font-size: 20px; } .applyContainer h1 { color: #31cb00; margin-bottom: 30px; } .formContainer { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .formBox { display: flex; flex-direction: column; } label { font-size: 15px; color: #119822; margin-bottom: 5px; } input, select, textarea { font-size: 15px; padding: 6px; border-radius: 4px; border: 2px solid black; } input:focus { outline-color: red; } .button_container { display: flex; justify-content: end; margin-top: 20px; } button { font-size: 18px; font-weight: 600; padding: 10px 40px; border-radius: 8px; color: white; background-color: #31cb00; border: 2px solid #31cb00; transition: 0.2s ease-in-out; border: transparent solid 2px; cursor: pointer; } button:hover { color: #31cb00; background-color: transparent; } .textareaBox { grid-column: 1 / span 2; } .textareaBox textarea { width: 100%; resize: none; } @media (max-width: 460px) { .formBox { grid-column: 1 / span 1; } }
Generating Download Link...