🎯 Learning Objectives
- Build complete HTML structure for portfolio
- Apply comprehensive CSS styling
- Create responsive navigation bar
- Implement all portfolio sections
- Ensure mobile responsiveness
- Add interactive elements and animations
📋 Development Checklist
Today's Goal
Build your complete portfolio website with all sections functional and styled.
- ✅ HTML structure for all sections
- ✅ Navigation menu (with smooth scrolling)
- ✅ Hero section with CTA
- ✅ About section
- ✅ Skills section
- ✅ Projects showcase
- ✅ Contact form
- ✅ Footer
- ✅ CSS styling
- ✅ Responsive design
- ✅ Hover effects and transitions
💻 Complete HTML Structure
Complete HTML code for your portfolio website.
This code features IDE-style syntax highlighting with:
- Green - HTML tags
- Blue - Attributes (class, href, id)
- Yellow - Attribute values
- Gray italic - HTML comments
Tip: Copy this code into your own IDE to see it with full color coding!
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Portfolio of [Your Name] - Web Developer">
<title>[Your Name] | Web Developer Portfolio</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-container">
<div class="logo">
<a href="#home">[Your Name]</a>
</div>
<ul class="nav-menu">
<li><a href="#home" class="nav-link">Home</a></li>
<li><a href="#about" class="nav-link">About</a></li>
<li><a href="#skills" class="nav-link">Skills</a></li>
<li><a href="#projects" class="nav-link">Projects</a></li>
<li><a href="#contact" class="nav-link">Contact</a></li>
</ul>
<div class="hamburger">
<span></span>
<span></span>
<span></span>
</div>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="hero">
<div class="hero-content">
<h1 class="hero-title">Hi, I'm <span class="highlight">[Your Name]</span></h1>
<p class="hero-subtitle">Junior Web Developer</p>
<p class="hero-description">
Building beautiful, responsive websites with HTML, CSS, and JavaScript
</p>
<div class="hero-buttons">
<a href="#projects" class="btn btn-primary">View My Work</a>
<a href="#contact" class="btn btn-secondary">Contact Me</a>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="about">
<div class="container">
<h2 class="section-title">About Me</h2>
<div class="about-content">
<div class="about-image">
<img src="images/profile.jpg" alt="[Your Name]">
</div>
<div class="about-text">
<h3>Hello! I'm a passionate web developer</h3>
<p>
I recently completed an intensive web development bootcamp at
Next-Step Technology, where I gained hands-on experience in
HTML5, CSS3, responsive design, and version control with Git.
</p>
<p>
I love creating clean, user-friendly websites that solve real
problems. I'm eager to apply my skills in a professional
environment and continue growing as a developer.
</p>
<div class="about-info">
<p><strong>Location:</strong> City, Country</p>
<p><strong>Education:</strong> [Your Degree]</p>
<p><strong>Email:</strong> your.email@example.com</p>
</div>
</div>
</div>
</div>
</section>
<!-- Skills Section -->
<section id="skills" class="skills">
<div class="container">
<h2 class="section-title">My Skills</h2>
<p class="section-description">
Technologies and tools I've worked with
</p>
<div class="skills-grid">
<div class="skill-card">
<div class="skill-icon">📄</div>
<h3>HTML5</h3>
<p>Semantic markup, accessibility, SEO best practices</p>
</div>
<div class="skill-card">
<div class="skill-icon">🎨</div>
<h3>CSS3</h3>
<p>Flexbox, Grid, animations, responsive design</p>
</div>
<div class="skill-card">
<div class="skill-icon">📱</div>
<h3>Responsive Design</h3>
<p>Mobile-first approach, media queries, breakpoints</p>
</div>
<div class="skill-card">
<div class="skill-icon">🔧</div>
<h3>Git & GitHub</h3>
<p>Version control, branching, collaboration</p>
</div>
<div class="skill-card">
<div class="skill-icon">💻</div>
<h3>VS Code</h3>
<p>Efficient workflow, extensions, debugging</p>
</div>
<div class="skill-card">
<div class="skill-icon">🎯</div>
<h3>Problem Solving</h3>
<p>Debugging, optimization, critical thinking</p>
</div>
</div>
</div>
</section>
<!-- Projects Section -->
<section id="projects" class="projects">
<div class="container">
<h2 class="section-title">My Projects</h2>
<p class="section-description">
Here are some projects I've built during my learning journey
</p>
<div class="projects-grid">
<!-- Project 1 -->
<div class="project-card">
<div class="project-image">
<img src="images/project1.png" alt="Student Registration Form">
<div class="project-overlay">
<a href="#" class="btn-small">View Code</a>
</div>
</div>
<div class="project-content">
<h3>Student Registration Form</h3>
<p>
Fully responsive registration form with custom styling
and form validation
</p>
<div class="project-tags">
<span>HTML</span>
<span>CSS</span>
<span>Forms</span>
</div>
</div>
</div>
<!-- Project 2 -->
<div class="project-card">
<div class="project-image">
<img src="images/project2.png" alt="Responsive Landing Page">
<div class="project-overlay">
<a href="#" class="btn-small">View Code</a>
</div>
</div>
<div class="project-content">
<h3>Responsive Landing Page</h3>
<p>
Modern landing page with mobile-first responsive design
and smooth animations
</p>
<div class="project-tags">
<span>HTML</span>
<span>CSS</span>
<span>Responsive</span>
</div>
</div>
</div>
<!-- Project 3 -->
<div class="project-card">
<div class="project-image">
<img src="images/project3.png" alt="Portfolio Website">
<div class="project-overlay">
<a href="#" class="btn-small">View Code</a>
</div>
</div>
<div class="project-content">
<h3>Personal Portfolio</h3>
<p>
This website! Built from scratch to showcase my work
and skills
</p>
<div class="project-tags">
<span>HTML</span>
<span>CSS</span>
<span>Design</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="contact">
<div class="container">
<h2 class="section-title">Get In Touch</h2>
<p class="section-description">
Have a project in mind? Let's work together!
</p>
<div class="contact-content">
<div class="contact-form">
<form>
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
</div>
<button type="submit" class="btn btn-primary">Send Message</button>
</form>
</div>
<div class="contact-info">
<h3>Contact Information</h3>
<div class="contact-item">
<p>📧 your.email@example.com</p>
</div>
<div class="contact-item">
<p>📍 City, Country</p>
</div>
<div class="social-links">
<h3>Follow Me</h3>
<a href="#" class="social-link">GitHub</a>
<a href="#" class="social-link">LinkedIn</a>
<a href="#" class="social-link">Twitter</a>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<p>© 2025 [Your Name]. All rights reserved.</p>
<p>Built with ❤️ using HTML & CSS</p>
</div>
</footer>
<script>
// Smooth scrolling
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Mobile menu toggle
const hamburger = document.querySelector('.hamburger');
const navMenu = document.querySelector('.nav-menu');
hamburger.addEventListener('click', () => {
hamburger.classList.toggle('active');
navMenu.classList.toggle('active');
});
// Close menu when clicking a link
document.querySelectorAll('.nav-link').forEach(link => {
link.addEventListener('click', () => {
hamburger.classList.remove('active');
navMenu.classList.remove('active');
});
});
</script>
</body>
</html>
🎨 Complete CSS Styling
Complete CSS code for your portfolio website.
This is organized into three parts for easier understanding. Code features IDE-style syntax highlighting:
- Yellow - CSS selectors (.class, #id, element)
- Blue - CSS properties (color, padding, margin)
- Green - CSS values (#fff, 20px, flex)
- Gray italic - CSS comments
Tip: Properties are indented with 20px padding for better readability!
style.css (Part 1: Base & Layout)
/* ========== CSS Variables ========== */
:root {
--primary-color: #1565c0;
--secondary-color: #1976d2;
--dark-color: #0d47a1;
--light-color: #e3f2fd;
--text-dark: #333;
--text-light: #666;
--white: #ffffff;
--success: #4caf50;
--shadow: 0 4px 6px rgba(0,0,0,0.1);
--shadow-hover: 0 6px 12px rgba(0,0,0,0.15);
}
/* ========== Reset & Base ========== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-dark);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
margin-bottom: 1rem;
line-height: 1.2;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
.section-title {
text-align: center;
color: var(--primary-color);
margin-bottom: 1rem;
font-size: 2.5rem;
}
.section-description {
text-align: center;
color: var(--text-light);
margin-bottom: 3rem;
font-size: 1.1rem;
}
/* ========== Navigation ========== */
.navbar {
background: var(--white);
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo a {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
text-decoration: none;
}
.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-link {
color: var(--text-dark);
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
}
.nav-link:hover {
color: var(--primary-color);
}
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}
.hamburger span {
width: 25px;
height: 3px;
background: var(--text-dark);
margin: 3px 0;
transition: 0.3s;
}
/* ========== Hero Section ========== */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: var(--white);
text-align: center;
padding: 2rem;
}
.hero-title {
font-size: 3.5rem;
margin-bottom: 1rem;
animation: fadeInDown 1s;
}
.highlight {
color: #ffd700;
}
.hero-subtitle {
font-size: 1.8rem;
margin-bottom: 1rem;
animation: fadeInUp 1s 0.2s backwards;
}
.hero-description {
font-size: 1.2rem;
margin-bottom: 2rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
animation: fadeInUp 1s 0.4s backwards;
}
.hero-buttons {
display: flex;
gap: 1rem;
justify-content: center;
animation: fadeInUp 1s 0.6s backwards;
}
/* ========== Buttons ========== */
.btn {
display: inline-block;
padding: 12px 30px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s;
}
.btn-primary {
background: var(--white);
color: var(--primary-color);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-hover);
}
.btn-secondary {
background: transparent;
color: var(--white);
border: 2px solid var(--white);
}
.btn-secondary:hover {
background: var(--white);
color: var(--primary-color);
}
.btn-small {
padding: 8px 20px;
font-size: 0.9rem;
}
/* ========== Animations ========== */
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
style.css (Part 2: Sections)
/* ========== About Section ========== */
.about {
padding: 5rem 0;
background: var(--white);
}
.about-content {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 3rem;
align-items: center;
}
.about-image img {
width: 100%;
border-radius: 10px;
box-shadow: var(--shadow);
}
.about-text h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}
.about-text p {
margin-bottom: 1rem;
color: var(--text-light);
}
.about-info {
margin-top: 2rem;
padding: 1.5rem;
background: var(--light-color);
border-radius: 8px;
}
.about-info p {
margin-bottom: 0.5rem;
}
/* ========== Skills Section ========== */
.skills {
padding: 5rem 0;
background: var(--light-color);
}
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.skill-card {
background: var(--white);
padding: 2rem;
border-radius: 10px;
text-align: center;
box-shadow: var(--shadow);
transition: transform 0.3s, box-shadow 0.3s;
}
.skill-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-hover);
}
.skill-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.skill-card h3 {
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.skill-card p {
color: var(--text-light);
}
/* ========== Projects Section ========== */
.projects {
padding: 5rem 0;
background: var(--white);
}
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.project-card {
background: var(--white);
border-radius: 10px;
overflow: hidden;
box-shadow: var(--shadow);
transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-hover);
}
.project-image {
position: relative;
overflow: hidden;
height: 200px;
}
.project-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s;
}
.project-card:hover .project-image img {
transform: scale(1.1);
}
.project-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(21, 101, 192, 0.9);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
}
.project-card:hover .project-overlay {
opacity: 1;
}
.project-content {
padding: 1.5rem;
}
.project-content h3 {
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.project-content p {
color: var(--text-light);
margin-bottom: 1rem;
}
.project-tags {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
}
.project-tags span {
background: var(--light-color);
color: var(--primary-color);
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.85rem;
}
/* ========== Contact Section ========== */
.contact {
padding: 5rem 0;
background: var(--light-color);
}
.contact-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 3rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: bold;
color: var(--text-dark);
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 12px;
border: 2px solid #ddd;
border-radius: 5px;
font-family: inherit;
font-size: 1rem;
transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.contact-info {
background: var(--white);
padding: 2rem;
border-radius: 10px;
box-shadow: var(--shadow);
}
.contact-info h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}
.contact-item {
margin-bottom: 1rem;
}
.social-links {
margin-top: 2rem;
}
.social-link {
display: inline-block;
margin-right: 1rem;
padding: 0.5rem 1rem;
background: var(--primary-color);
color: var(--white);
text-decoration: none;
border-radius: 5px;
transition: background 0.3s;
}
.social-link:hover {
background: var(--dark-color);
}
/* ========== Footer ========== */
.footer {
background: var(--dark-color);
color: var(--white);
text-align: center;
padding: 2rem 0;
}
.footer p {
margin: 0.5rem 0;
}
style.css (Part 3: Responsive)
/* ========== Responsive Design ========== */
@media (max-width: 768px) {
/* Navigation */
.hamburger {
display: flex;
}
.nav-menu {
position: fixed;
left: -100%;
top: 70px;
flex-direction: column;
background: var(--white);
width: 100%;
text-align: center;
transition: 0.3s;
box-shadow: var(--shadow);
padding: 2rem 0;
}
.nav-menu.active {
left: 0;
}
.hamburger.active span:nth-child(1) {
transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
opacity: 0;
}
.hamburger.active span:nth-child(3) {
transform: rotate(45deg) translate(-5px, -6px);
}
/* Hero */
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.5rem;
}
.hero-description {
font-size: 1rem;
}
.hero-buttons {
flex-direction: column;
align-items: center;
}
.hero-buttons .btn {
width: 100%;
max-width: 300px;
}
/* About */
.about-content {
grid-template-columns: 1fr;
}
/* Contact */
.contact-content {
grid-template-columns: 1fr;
}
/* Skills & Projects */
.skills-grid,
.projects-grid {
grid-template-columns: 1fr;
}
/* Typography */
.section-title {
font-size: 2rem;
}
}
@media (max-width: 480px) {
.hero-title {
font-size: 2rem;
}
.section-title {
font-size: 1.8rem;
}
.container {
padding: 0 15px;
}
}
✅ Development Steps
Follow these phases to build your portfolio step-by-step.
Phase 1: Setup (30 mins)
- Create branch
$ git checkout -b develop-portfolio
- Create files
Already have: index.html, style.css
- Add placeholder images
Create images folder and add profile.jpg, project1.png, etc.
Phase 2: HTML Structure (2 hours)
- Create navigation structure
- Build hero section
- Create about section
- Add skills section
- Build projects showcase
- Create contact form
- Add footer
Commit after HTML structure:
$ git add index.html
$ git commit -m "Add complete HTML structure for portfolio"
Phase 3: CSS Styling (3 hours)
- Set CSS variables
- Style navigation
- Style hero section with gradient
- Style about section
- Create skill cards
- Style project cards with hover effects
- Style contact form
- Style footer
Commit after styling:
$ git add style.css
$ git commit -m "Add complete CSS styling with responsive design"
Phase 4: Responsive Design (1 hour)
- Add media queries
- Test on mobile (375px)
- Test on tablet (768px)
- Test on desktop (1200px+)
- Fix hamburger menu
Commit responsive updates:
$ git add style.css
$ git commit -m "Add responsive design for all devices"
Phase 5: JavaScript & Final Touches (30 mins)
- Add smooth scrolling
- Implement mobile menu toggle
- Test all links
- Validate HTML & CSS
Final commits and deployment:
- Final commit
$ git add . $ git commit -m "Add interactivity and final touches"
- Merge to main
$ git checkout main $ git merge develop-portfolio
- Push to GitHub
$ git push origin main
- Delete feature branch
$ git branch -d develop-portfolio
🔍 Testing Checklist
- Navigation links work and smooth scroll
- Mobile menu opens and closes
- All sections visible and properly styled
- Images load correctly
- Form inputs focus properly
- Hover effects work on buttons and cards
- Responsive on mobile (test with DevTools)
- Responsive on tablet (test with DevTools)
- No console errors
- HTML validated (validator.w3.org)
- CSS validated (jigsaw.w3.org/css-validator)
💡 Enhancement Ideas
Optional Additions (if time permits):
- Add a dark mode toggle
- Include typing animation for hero subtitle
- Add scroll-triggered animations
- Create a "Back to Top" button
- Add loading animations for images
- Include testimonials section
✅ Today's Deliverable
- Complete index.html with all sections
- Complete style.css with full styling
- Fully responsive design (mobile, tablet, desktop)
- Working navigation with smooth scrolling
- Mobile hamburger menu functional
- All sections styled and interactive
- Multiple commits showing progress
- Pushed to GitHub
- Screenshots of desktop and mobile views