This tutorial will guide you through creating a simple CV using HTML, CSS, and JavaScript. We’ll build a clean and professional-looking CV that you can easily customize to showcase your skills and experience to potential employers. This is a great way to learn how to present your qualifications in a visually appealing and accessible format.
Step 1: Setting up the Project
Include Header Assets:
First, add the necessary assets to your HTML document’s header. This will include linking to external resources like Google Fonts to style your CV.
<link href='https://fonts.googleapis.com/css?family=Lato:400,300,700' rel='stylesheet' type='text/css'>
Step 2: Building the HTML Structure
Next, create the basic HTML structure for your CV. This will involve defining different sections like header, contact information, experience, education, projects, skills, and interests.
<div class="container">
<div class="header">
<div class="full-name">
<span class="first-name">John</span>
<span class="last-name">Doe</span>
</div>
<div class="contact-info">
<span class="email">Email: </span>
<span class="email-val">john.doe@gmail.com</span>
<span class="separator"></span>
<span class="phone">Phone: </span>
<span class="phone-val">111-222-3333</span>
</div>
<div class="about">
<span class="position">Front-End Developer </span>
<span class="desc">
I am a front-end developer with more than 3 years of experience writing html, css, and js. I'm motivated, result-focused and seeking a successful team-oriented company with opportunity to grow.
</span>
</div>
</div>
<div class="details">
<div class="section">
<div class="section__title">Experience</div>
<div class="section__list">
<div class="section__list-item">
<div class="left">
<div class="name">KlowdBox</div>
<div class="addr">San Fr, CA</div>
<div class="duration">Jan 2011 - Feb 2015</div>
</div>
<div class="right">
<div class="name">Fr developer</div>
<div class="desc">did This and that</div>
</div>
</div>
<div class="section__list-item">
<div class="left">
<div class="name">Akount</div>
<div class="addr">San Monica, CA</div>
<div class="duration">Jan 2011 - Feb 2015</div>
</div>
<div class="right">
<div class="name">Fr developer</div>
<div class="desc">did This and that</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="section__title">Education</div>
<div class="section__list">
<div class="section__list-item">
<div class="left">
<div class="name">Sample Institute of technology</div>
<div class="addr">San Fr, CA</div>
<div class="duration">Jan 2011 - Feb 2015</div>
</div>
<div class="right">
<div class="name">Fr developer</div>
<div class="desc">did This and that</div>
</div>
</div>
<div class="section__list-item">
<div class="left">
<div class="name">Akount</div>
<div class="addr">San Monica, CA</div>
<div class="duration">Jan 2011 - Feb 2015</div>
</div>
<div class="right">
<div class="name">Fr developer</div>
<div class="desc">did This and that</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="section__title">Projects</div>
<div class="section__list">
<div class="section__list-item">
<div class="name">DSP</div>
<div class="text">I am a front-end developer with more than 3 years of experience writing html, css, and js. I'm motivated, result-focused and seeking a successful team-oriented company with opportunity to grow.</div>
</div>
<div class="section__list-item">
<div class="name">DSP</div>
<div class="text">I am a front-end developer with more than 3 years of experience writing html, css, and js. I'm motivated, result-focused and seeking a successful team-oriented company with opportunity to grow. <a href="/login">link</a>
</div>
</div>
</div>
</div>
<div class="section">
<div class="section__title">Skills</div>
<div class="skills">
<div class="skills__item">
<div class="left"><div class="name">
Javascript
</div></div>
<div class="right">
<input id="ck1" type="checkbox" checked/>
<label for="ck1"></label>
<input id="ck2" type="checkbox" checked/>
<label for="ck2"></label>
<input id="ck3" type="checkbox" />
<label for="ck3"></label>
<input id="ck4" type="checkbox" />
<label for="ck4"></label>
<input id="ck5" type="checkbox" />
<label for="ck5"></label>
</div>
</div>
</div>
<div class="skills__item">
<div class="left"><div class="name">
CSS</div></div>
<div class="right">
<input id="ck1" type="checkbox" checked/>
<label for="ck1"></label>
<input id="ck2" type="checkbox" checked/>
<label for="ck2"></label>
<input id="ck3" type="checkbox" />
<label for="ck3"></label>
<input id="ck4" type="checkbox" />
<label for="ck4"></label>
<input id="ck5" type="checkbox" />
<label for="ck5"></label>
</div>
</div>
</div>
<div class="section">
<div class="section__title">
Interests
</div>
<div class="section__list">
<div class="section__list-item">
Football, programming.
</div>
</div>
</div>
</div>
</div>
</div>
Step 3: Styling with CSS
Now, let’s add CSS to style your CV. This will involve setting fonts, colors, layout, and other visual elements to create a professional look and feel.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
height: 100%;
}
body {
min-height: 100%;
background: #eee;
font-family: "Lato", sans-serif;
font-weight: 400;
color: #222;
font-size: 14px;
line-height: 26px;
padding-bottom: 50px;
}
.container {
max-width: 700px;
background: #fff;
margin: 0px auto 0px;
box-shadow: 1px 1px 2px #DAD7D7;
border-radius: 3px;
padding: 40px;
margin-top: 50px;
}
.header {
margin-bottom: 30px;
}
.header .full-name {
font-size: 40px;
text-transform: uppercase;
margin-bottom: 5px;
}
.header .first-name {
font-weight: 700;
}
.header .last-name {
font-weight: 300;
}
.header .contact-info {
margin-bottom: 20px;
}
.header .email,
.header .phone {
color: #999;
font-weight: 300;
}
.header .separator {
height: 10px;
display: inline-block;
border-left: 2px solid #999;
margin: 0px 10px;
}
.header .position {
font-weight: bold;
display: inline-block;
margin-right: 10px;
text-decoration: underline;
}
.details {
line-height: 20px;
}
.details .section {
margin-bottom: 40px;
}
.details .section:last-of-type {
margin-bottom: 0px;
}
.details .section__title {
letter-spacing: 2px;
color: #54AFE4;
font-weight: bold;
margin-bottom: 10px;
text-transform: uppercase;
}
.details .section__list-item {
margin-bottom: 40px;
}
.details .section__list-item:last-of-type {
margin-bottom: 0;
}
.details .left,
.details .right {
vertical-align: top;
display: inline-block;
}
.details .left {
width: 60%;
}
.details .right {
tex-align: right;
width: 39%;
}
.details .name {
font-weight: bold;
}
.details a {
text-decoration: none;
color: #000;
font-style: italic;
}
.details a:hover {
text-decoration: underline;
color: #000;
}
.details .skills__item {
margin-bottom: 10px;
}
.details .skills__item .right input {
display: none;
}
.details .skills__item .right label {
display: inline-block;
width: 20px;
height: 20px;
background: #C3DEF3;
border-radius: 20px;
margin-right: 3px;
}
.details .skills__item .right input:checked + label {
background: #79A9CE;
}
Congratulations! You’ve successfully created a simple CV using HTML, CSS, and JavaScript. Remember to customize the content to reflect your own skills and experience.
