Introduction
A personal portfolio website is an online platform where developers, students, designers and freelancers can showcase their skills, projects, experience and contact information.
In this beginner-friendly tutorial, you will build a responsive portfolio website using HTML, CSS and JavaScript. The project includes a navigation bar, introduction, About Me section, skills, project cards and contact information.
What You Will Build
Your portfolio website will include:
- Home section with your name and profession
- About Me section
- Skills section
- Projects section
- Contact section
- Responsive mobile navigation
Technologies Required
HTML: Creates the structure of the webpage.
CSS: Controls colours, layout, typography and responsive design.
JavaScript: Adds interactive features such as the mobile navigation menu.
Code editor: Visual Studio Code or another text editor.
Browser: Chrome, Firefox or another modern browser.
Step 1: Create the Project Folder
Create a folder named personal-portfolio. Inside it, create these three files:
personal-portfolio/
index.html
style.css
script.jsStep 2: Create the HTML File
Open index.html and add the following code:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Personal Portfolio</title>
<meta name="description" content="Explore my skills and projects as a web developer.">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav class="navbar">
<a href="#home" class="logo">MyPortfolio</a>
<button class="menu-toggle" id="menuToggle"
aria-label="Toggle navigation"
aria-expanded="false">
☰
</button>
<ul class="nav-links" id="navLinks">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#skills">Skills</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section id="home" class="hero">
<div>
<p>Hello, I am</p>
<h1>Your Name</h1>
<h2>Beginner Web Developer</h2>
<p>I enjoy creating websites and learning new technologies.</p>
<a href="#projects" class="btn">View My Projects</a>
</div>
</section>
<section id="about" class="section">
<h2>About Me</h2>
<p>
I am a beginner web developer interested in building
useful and user-friendly websites. I am learning HTML,
CSS and JavaScript to improve my development skills.
</p>
</section>
<section id="skills" class="section">
<h2>My Skills</h2>
<div class="skills">
<span>HTML</span>
<span>CSS</span>
<span>JavaScript</span>
<span>Responsive Design</span>
</div>
</section>
<section id="projects" class="section">
<h2>My Projects</h2>
<div class="project-grid">
<article class="project-card">
<h3>Personal Portfolio</h3>
<p>A responsive website to showcase my skills and work.</p>
</article>
<article class="project-card">
<h3>Calculator App</h3>
<p>A basic calculator built using HTML, CSS and JavaScript.</p>
</article>
<article class="project-card">
<h3>To-Do List</h3>
<p>A simple application to organize daily tasks.</p>
</article>
</div>
</section>
<section id="contact" class="section">
<h2>Contact Me</h2>
<p>Email: yourname@example.com</p>
<p>Replace this example with your actual contact details.</p>
</section>
</main>
<footer>
<p>© 2026 Your Name. All rights reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>
```
Step 3: Add CSS Styling
Open style.css:
```css
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: Arial, sans-serif;
background: #f5f7fb;
color: #222;
line-height: 1.6;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 18px 8%;
background: #10172a;
}
.logo {
color: white;
font-size: 24px;
font-weight: bold;
text-decoration: none;
}
.nav-links {
display: flex;
list-style: none;
gap: 25px;
}
.nav-links a {
color: white;
text-decoration: none;
}
.nav-links a:hover {
color: #a5b4fc;
}
.menu-toggle {
display: none;
background: none;
color: white;
border: 0;
font-size: 26px;
cursor: pointer;
}
.hero {
min-height: 450px;
display: flex;
align-items: center;
padding: 70px 10%;
background: #e0e7ff;
}
.hero h1 {
font-size: 48px;
color: #3730a3;
}
.hero h2 {
margin: 10px 0;
}
.btn {
display: inline-block;
margin-top: 20px;
padding: 12px 22px;
background: #4338ca;
color: white;
text-decoration: none;
border-radius: 6px;
}
.section {
padding: 65px 10%;
text-align: center;
}
.section h2 {
margin-bottom: 25px;
color: #3730a3;
}
.skills,
.project-grid {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 18px;
}
.skills span,
.project-card {
padding: 22px;
background: white;
border-radius: 10px;
box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.project-card {
flex: 1 1 220px;
max-width: 320px;
}
.project-card h3 {
margin-bottom: 12px;
}
footer {
padding: 22px;
background: #10172a;
color: white;
text-align: center;
}
@media (max-width: 700px) {
.navbar {
padding: 16px 5%;
}
.menu-toggle {
display: block;
}
.nav-links {
display: none;
position: absolute;
top: 65px;
left: 0;
width: 100%;
background: #10172a;
flex-direction: column;
padding: 20px;
gap: 15px;
z-index: 10;
}
.nav-links.active {
display: flex;
}
.hero h1 {
font-size: 36px;
}
.section {
padding: 45px 6%;
}
}
```
Step 4: Add JavaScript
Open script.js:
```javascript
const menuToggle = document.getElementById("menuToggle");
const navLinks = document.getElementById("navLinks");
menuToggle.addEventListener("click", function () {
const isOpen = navLinks.classList.toggle("active");
menuToggle.setAttribute("aria-expanded", isOpen);
});
document.querySelectorAll(".nav-links a").forEach(function (link) {
link.addEventListener("click", function () {
navLinks.classList.remove("active");
menuToggle.setAttribute("aria-expanded", "false");
});
});
```
Step 5: Run and Test the Project
- Save all three files.
- Open index.html in your browser.
- Check the navigation links.
- Resize the browser to test mobile responsiveness.
- Replace the sample name, email, skills and projects with your own details.
How to Improve Your Portfolio
After completing the basic project, consider adding:
- A professional profile image.
- A downloadable PDF resume.
- GitHub and LinkedIn links.
- Live project demonstrations.
- A working contact form with backend validation.
- A dark mode option.
Common Beginner Mistakes
- Forgetting to link the CSS file.
- Using unoptimized images.
- Leaving placeholder text on the published website.
- Not checking the mobile layout.
- Adding projects that do not actually work.
- Publishing incorrect contact details.
Conclusion
Building a personal portfolio website is an excellent first project for anyone learning web development. It provides practical experience with HTML, CSS and JavaScript.
Start with a simple layout, test every section and gradually add more features. Once complete, you can publish the website using a hosting service and share it with employers, clients or other developers.
Frequently Asked Questions
Can beginners build a personal portfolio website?
Yes. Beginners can build a basic portfolio using HTML, CSS and a small amount of JavaScript.
Do I need a database for a portfolio website?
No. A basic static portfolio does not require a database.
Can I create a portfolio website for free?
Yes. You can develop and test it locally for free and publish it using a suitable free hosting service.
Is JavaScript compulsory?
No. HTML and CSS are enough for a static portfolio. JavaScript is useful for interactive features.
What should I include in my portfolio?
Include your introduction, skills, completed projects, education or experience, resume and contact information.
How can I make my portfolio mobile-friendly?
Use responsive CSS, flexible layouts and media queries to support different screen sizes.
You’ve reached the end of this guide. Explore more tutorials on PrimeProblem.