Creating a simple portfolio website is an excellent way to showcase your work, skills, and personal brand. With HTML and CSS, you can build a professional and engaging online presence without needing to learn complex programming languages. In this guide, we'll explore how to create a simple portfolio website using HTML and CSS, with practical examples to help you get started.

Before diving into the code, let's briefly discuss why HTML and CSS are perfect for building a portfolio website. HTML (HyperText Markup Language) is the standard markup language for creating web pages, while CSS (Cascading Style Sheets) is used to style and layout these web pages. Together, they allow you to create visually appealing and functional websites tailored to your needs.

Setting Up Your Portfolio Website Structure
To begin, let's establish the basic structure of your portfolio website using HTML. A simple portfolio typically includes a header, navigation menu, hero section, about page, portfolio projects, and a footer. Here's an example of how you can structure your HTML file:

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Your Name - Portfolio</title> </head> <body> <header> <h1>Your Name</h1> </header> <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> <section id="about"> <h2>About</h2> <p>Your bio goes here.</p> </section> <section id="projects"> <h2>Projects</h2> <div>Your projects go here.</div> </section> <footer> <p>Copyright © Your Name</p> </footer> </body> </html>
Creating the Header and Navigation Menu

The header and navigation menu are crucial elements for any website. In the example above, we've created a simple header containing your name and a navigation menu using an unordered list (<ul>). Each list item (<li>) represents a link to different sections of your portfolio.
To make the navigation menu more visually appealing, you can use CSS to style it. Here's an example of how you can style the navigation menu:
<style> nav ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; } nav li { float: left; } nav li a { display: block; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } nav li a:hover { background-color: #111; } </style>
Styling the Hero Section

The hero section is the first thing visitors see when they arrive at your portfolio website. To make a strong first impression, you can add an engaging image, a brief introduction, and a call-to-action button. Here's an example of how you can create a hero section using HTML and CSS:
<section id="hero"> <img src="your-image.jpg" alt="Your Name"> <h1>Your Name</h1> <p>A brief introduction about yourself.</p> <a href="#about" class="btn">Learn More</a> </section> <style> #hero { text-align: center; padding: 50px; background-color: #f8f9fa; } #hero img { max-width: 100%; height: auto; border-radius: 50%; } #hero h1 { font-size: 3rem; margin-bottom: 1rem; } #hero p { font-size: 1.25rem; color: #6c757d; } .btn { display: inline-block; padding: 1rem 2rem; background-color: #007bff; color: white; text-decoration: none; border-radius: 0.25rem; margin-top: 2rem; } .btn:hover { background-color: #0062cc; } </style>
Showcasing Your Projects
Displaying your projects is the core of your portfolio website. You can create a grid layout to showcase your projects using CSS Flexbox or Grid. Here's an example of how you can create a simple project grid using CSS Flexbox:

<section id="projects"> <h2>Projects</h2> <div class="project-grid"> <div class="project"> <img src="project1.jpg" alt="Project 1"> <h3>Project 1</h3> <p>A brief description of the project.</p> <a href="#">View Project</a> </div> <!-- Add more projects here --> </div> </section> <style> .project-grid { display: flex; flex-wrap: wrap; gap: 2rem; } .project { flex: 1 0 300px; margin-bottom: 2rem; } .project img { width: 100%; height: auto; } .project h3 { font-size: 1.5rem; margin-top: 1rem; } .project a { display: inline-block; padding: 0.5rem 1rem; background-color: #007bff; color: white; text-decoration: none; border-radius: 0.25rem; margin-top: 1rem; } .project a:hover { background-color: #0062cc; } </style>
Responsive Design
Ensuring your portfolio website looks good on various devices and screen sizes is crucial. You can achieve this by using media queries in CSS. Here's an example of how you can make the project grid responsive:













![How to create Portfolio Website Using HTML and CSS | Full Web Design Process [STEP-BY-STEP GUIDE]](https://i.pinimg.com/originals/97/6c/8f/976c8fc7829d4b3daf2dd559ddb5d715.jpg)






<style> @media (max-width: 768px) { .project-grid { flex-direction: column; } .project { flex: 1 0 100%; } } </style>
With these HTML and CSS examples, you now have a solid foundation for creating a simple yet engaging portfolio website. As you continue to develop your website, you can explore more advanced CSS techniques, such as animations, transitions, and custom properties. Don't forget to regularly update your portfolio with new projects and content to keep it fresh and relevant.
Happy coding, and good luck with your portfolio website!