Skip to content

Sagar Kunwar

Menu
  • Home
  • YouTube
  • Blog
  • Contact
  • Privacy Policy
Menu

Creating Your First Personal Portfolio Using HTML and CSS

Posted on June 21, 2025July 1, 2025 by Sagar Kunwar

Hello, budding web developer! Are you ready to showcase your amazing skills, experiences, and projects to the world? A personal portfolio is the perfect way to do just that, and today, I’m here to guide you through creating your very first one using HTML and CSS. Let’s jump right in and make something awesome together!

Why a Personal Portfolio Matters

Before we start coding, let’s talk about why having a personal portfolio is so important. Here’s why you might consider creating one:

  • Showcase Your Work: It serves as a visual resume where you can display your projects and skills.
  • Professional Image: It helps build a professional online presence.
  • Learning Experience: Building your portfolio helps you practice your web development skills.

Setting Up Your Project

Create a folder named my-portfolio. Inside it, add:

  • index.html
  • styles.css

Building the Structure with HTML

Step 1: Basic HTML Template

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My Portfolio</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>

    <header>
        <h1>My Portfolio</h1>
        <nav>
            <ul>
                <li><a href="#about">About</a></li>
                <li><a href="#projects">Projects</a></li>
                <li><a href="#contact">Contact</a></li>
            </ul>
        </nav>
    </header>

    <main>

        <section id="about">
            <h2>About Me</h2>
            <p>Welcome to my portfolio! I'm a web developer passionate about building amazing applications.</p>
        </section>

        <section id="projects">
            <h2>Projects</h2>
            <div class="project-item">
                <h3>Project Title</h3>
                <p>Description of the project.</p>
            </div>
        </section>

        <section id="contact">
            <h2>Contact Me</h2>
            <p>Feel free to reach out to me at myemail@example.com</p>
        </section>

    </main>

    <footer>
        <p>© 2023 My Portfolio</p>
    </footer>

</body>
</html>

Step 2: Explain the HTML Structure

  • Header: Contains your site’s title and nav menu.
  • Main: Three sections – About, Projects, Contact.
  • Footer: Copyright notice.

Styling with CSS

Step 1: Basic Styles

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 20px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav li {
    display: inline;
    margin-right: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 30px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

Step 2: Customize

You can tweak colors, fonts, spacing, etc., to give your site a unique look and feel.

Adding a Personal Touch

Optional: Include a Profile Image

<img src="your-image.jpg" alt="Your Name" style="width:150px; border-radius:50%;">

You can find royalty-free images at Unsplash.

Conclusion

Congratulations, you’ve just created your first personal portfolio! 🎉

Practice Ideas

  • Add a contact form.
  • Use Flexbox or Grid for layout.
  • Make it responsive with media queries.

Keep practicing, and soon you’ll have a stunning portfolio to showcase your work. Happy coding!

(Visited 11 times, 1 visits today)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Understanding the DOM: A JavaScript Hands-On Walkthrough
  • Deploy Your Full-Stack App to Render in Under 10 Minutes
  • Beginner’s Guide: How to Use Firebase Realtime Database
  • Guide to Responsive Images with `srcset`

Categories

  • Blog
  • Javascript
  • PHP
  • Support
  • Uncategorized
  • Web Hosting
June 2025
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930  
« May   Jul »
© 2026 Sagar Kunwar | Powered by Superbs Personal Blog theme