Open In App
Related Articles

How to create a CV using HTML and host in github ?

Improve Article
Improve
Save Article
Save
Like Article
Like

In today’s digital age, having an online presence is crucial, especially when it comes to professional endeavors. One effective way to showcase your skills, experiences, and accomplishments is by creating a compelling curriculum vitae (CV). 

In this article, we are going to build a CV using HTML, and CSS. Later, we will host it on GitHub, a popular platform for version control and code hosting. So let’s dive in and unlock the power of HTML and GitHub to craft a standout CV that truly represents your capabilities and accomplishments.

Approach: We will use  HTML & CSS to create this resume. Now we will understand the code part & designing part. In the HTML section, we link the CSS page in the head section and also the title of the page is written there.

  • HTML: We will use HTML for creating the layout of the page. In the index.html file, we use two div blocks for the left side & right side parts. in the left side div block, we use five div blocks for Image, Contact, Skills, Language & Hobbies and put the data in each section. On the right side, we used five div blocks for Name, Summary, Experience, Education & Project. we used the list and table elements here.
  • CSS: In the resume.css file we will make each div with a class name that is used for designing this resume. For the left side div block, we use class name (.left), and similar for the right side we use (.right) and set the properties background color & position. We will use the display flex property in the body and grid for the full page.

Example: In this example code, we are using the above approach.

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">
    <link rel="stylesheet" href="resume.css">
</head>
 
<body>
    <div class="full">
        <div class="left">
            <div class="image">
                <img src=
                     alt="gfg-logo"
                     style="width:100px;height:100px;">
            </div>
            <div class="Contact">
                <h2>Contact</h2>
                <p><b>Email id:</b>xyz@gmail.com</p>
                <p><b>Mobile no :</b>1234567890</p>
            </div>
            <div class="Skills">
                <h2>Skills</h2>
                <ul>
                    <li><b>Programming Languages :
                      Python, Java, C++</b></li>
                    <li><b>Frontend : HTML5, CSS3,
                      JavaScript, React</b></li>
                    <li><b>Backend : Node.js</b></li>
                </ul>
            </div>
            <div class="Language">
                <h2>Language</h2>
                <ul>
                    <li>English</li>
                    <li>Hindi</li>
                </ul>
            </div>
            <div class="Hobbies">
                <h2>Hobbies</h2>
                <ul>
                    <li>Playing cricket</li>
                    <li>Swimming</li>
                </ul>
            </div>
        </div>
        <div class="right">
            <div class="name">
                <h1>GeeksforGeeks</h1>
            </div>
            <div class="title">
                <p>Web Developer</p>
            </div>
            <div class="Summary">
                <h2>Summary</h2>
                <p>To secure a challenging position in a
                  reputable organization
                    to expand my learning knowledge and skill
                </p>
            </div>
            <div class="Experience">
                <h2>Experience</h2>
                <h3>Abc webdev pvt ltd - Senior Web Developer</h3>
                <p>January 2022 to Present</p>
                <ul>
                    <li>Actively engaged in web creative
                      design and development.</li>
                    <li>Designing project & planning</li>
                </ul>
                <h3>Xyz webdev pvt ltd - junior web developer</h3>
                <p>August 2021 to December 2021</p>
                <ul>
                    <li>Actively engaged in web creative
                      design and development.</li>
                    <li>Designing project & planning</li>
                    <li>Working on designing</li>
                </ul>
            </div>
            <div class="Education">
                <h2>Education</h2>
                <table>
                    <tr>
                        <th>University/college  </th>
                        <th>Passing year  </th>
                        <th>percentage/cgpa</th>
                    </tr>
                    <tr>
                        <td>xyz</td>
                        <td>2020</td>
                        <td>8.9</td>
                    </tr>
                    <tr>
                        <td>pqr</td>
                        <td>2018</td>
                        <td>89%</td>
                    </tr>
                </table>
            </div>
            <div class="project">
                <ul>
                    <li>
                        <h2>Project1</h2>
                        <p>This project is based on html
                          & used React</p>
                    </li>
                    <li>
                        <h2>Project2</h2>
                        <p>This project is based on html
                          & used React</p>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</body>
 
</html>


CSS




/* Write CSS Here */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: rgb(253, 254, 255);
    display: flex;
    justify-content: center;
    align-items: center;
}
.full {
    width: 50%;
    max-width: 1000px;
    min-height: 100px;
    background-color: rgb(245, 239, 231);
    margin: 0px;
    display: grid;
    grid-template-columns: 2fr 4fr;
}
.left {
    position: initial;
    background-color: rgb(126, 219, 231);
    padding: 20px;
 
}
.right {
    position: initial;
    background-color: rgb(162, 202, 206);
    padding: 20px;
 
}
.image, .Contact, .Skills, .Language, .Hobbies, .title,
.Summary, .Experience, .Education, .project {
    margin-bottom: 30px;
}
.h2 {
    background-color: rgb(4, 96, 150);
}


Output:

Now, our CV-building part is finished and we will host it on GitHub. The step-by-step process to host is given below.

Step 1: Open your GitHub profile & click on + sign on the left side, then create a new repository.

Step 2: Write a repository name, description & checkbox of add readme file then click on create a repository

Step 3: Click on Add file & upload files.

Step 4: Click on Choose your files & upload all files from your local device.

Step 5:Click on commit changes.

Step 6: Now your all codes are uploaded on Github now we create a link for this to access anywhere. Go to the setting icon and then just go to the pages section.

 Step 7: A new page is opened and in this make source none to the main branch and save now your link is created and you can use it anywhere.


Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 06 Jun, 2023
Like Article
Save Article
Previous
Next
Similar Reads
Complete Tutorials