Create a Personal Website with HTML & CSS: A Step-by-Step Guide

Creating a personal website is an excellent way to showcase your skills, share your portfolio, or simply express yourself online. With HTML and CSS, two of the most fundamental web development languages, you can design and style your website exactly the way you want. Let's dive into the process of creating a personal website using HTML and CSS.

Professional Portfolio Website Design for Developers
Professional Portfolio Website Design for Developers

Before we start, ensure you have a basic understanding of how HTML and CSS work. HTML is used to structure the content of your webpages, while CSS is responsible for their presentation. If you're new to these languages, don't worry! We'll keep our examples simple and easy to understand.

Soft Personal Portfolio – Clean HTML/CSS Website 🌸
Soft Personal Portfolio – Clean HTML/CSS Website 🌸

Setting Up Your Project

First, let's set up the basic structure of your project. Create a new folder on your computer for your website and inside this folder, create two files: index.html and style.css.

Portfolio Website UI | Frontend Developer
Portfolio Website UI | Frontend Developer

Your project structure should look like this:

  • my-website/
  • index.html
  • style.css
Personal Portfolio Website Figma UIUX Design | Web Design | UI Design | UX Design
Personal Portfolio Website Figma UIUX Design | Web Design | UI Design | UX Design

Creating the HTML Structure

Open the index.html file and add the following code:

```html My Personal Website

Welcome to My Personal Website

Creative Portfolio Website Design Inspiration | Modern Web Designer UI UX Portfolio
Creative Portfolio Website Design Inspiration | Modern Web Designer UI UX Portfolio

About Me

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero...

Jackson - Best Personal Portfolio Website Template - Colorlib
Jackson - Best Personal Portfolio Website Template - Colorlib

My Skills

  • HTML/CSS
  • JavaScript
  • Responsive Design
ReactJS, TailwindCSS Framer Motion, Particle | Responsive Portfolio Website with Advanced Animations
ReactJS, TailwindCSS Framer Motion, Particle | Responsive Portfolio Website with Advanced Animations
Complete Modern & Responsive Portfolio Website in Vue js with Tailwind Css
Complete Modern & Responsive Portfolio Website in Vue js with Tailwind Css
an image of a web page with the words hi, i'm divyansh chaudhary
an image of a web page with the words hi, i'm divyansh chaudhary
Personal Portfolio Website using HTML & CSS
Personal Portfolio Website using HTML & CSS
Modern Personal Website Templates - HTML5 Responsive Website Designs
Modern Personal Website Templates - HTML5 Responsive Website Designs
🚀 My Personal Portfolio Website | Web Developer Portfolio
🚀 My Personal Portfolio Website | Web Developer Portfolio
Portfolix X - Portfolio HTML CSS Website Template
Portfolix X - Portfolio HTML CSS Website Template
Jurgen Hideni - Web Developer Portfolio - Jurgen Hideni
Jurgen Hideni - Web Developer Portfolio - Jurgen Hideni
Creative Portfolio Website Design Inspiration | Modern Web Designer UI UX Portfolio
Creative Portfolio Website Design Inspiration | Modern Web Designer UI UX Portfolio
18 Exciting HTML and CSS Project Ideas with source code to Level Up Your Web Development Skills
18 Exciting HTML and CSS Project Ideas with source code to Level Up Your Web Development Skills
Book & Author Landing page html css
Book & Author Landing page html css
Creative Portfolio Website Design Inspiration | Modern Web Designer UI UX Portfolio
Creative Portfolio Website Design Inspiration | Modern Web Designer UI UX Portfolio
Portfolio | CV | Graphic Design | Digital Marketing - Han Nguyen
Portfolio | CV | Graphic Design | Digital Marketing - Han Nguyen
Responsive Personal Portfolio Website using HTML CSS And JavaScript | Portfolio website
Responsive Personal Portfolio Website using HTML CSS And JavaScript | Portfolio website
ReactJS, TailwindCSS 4.1 || Responsive Portfolio Website
ReactJS, TailwindCSS 4.1 || Responsive Portfolio Website
Creative Portfolio Website Design Inspiration | Modern Web Designer UI UX Portfolio
Creative Portfolio Website Design Inspiration | Modern Web Designer UI UX Portfolio
How to create Portfolio Website Using HTML and CSS | Full Web Design Process [STEP-BY-STEP GUIDE]
How to create Portfolio Website Using HTML and CSS | Full Web Design Process [STEP-BY-STEP GUIDE]
an image of a website page with many different images on it and the words mary hardy
an image of a website page with many different images on it and the words mary hardy
✨ Create an Animated HTML & CSS! 🚀 #Coding #CSSAnimation #Shorts
✨ Create an Animated HTML & CSS! 🚀 #Coding #CSSAnimation #Shorts
Create a Responsive Personal Portfolio Website Design using HTML CSS and JavaScript
Create a Responsive Personal Portfolio Website Design using HTML CSS and JavaScript

```

This HTML code creates a basic structure for your website with a header, navigation menu, main content area, and footer. The main content area includes sections for "About Me" and "My Skills".

Styling Your Website with CSS

Now let's style your website using CSS. Open the style.css file and add the following code:

```css * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: Arial, sans-serif; line-height: 1.6; } header, footer { background-color: #f8f9fa; padding: 20px; text-align: center; } nav ul { list-style-type: none; padding: 20px 0; } nav ul li { display: inline; margin-right: 10px; } nav ul li a { color: #333; text-decoration: none; padding: 5px 10px; transition: background-color 0.3s ease; } nav ul li a:hover { background-color: #ddd; } main { max-width: 960px; margin: auto; padding: 20px; } section { margin-bottom: 40px; } h1, h2 { color: #333; } footer p { color: #777; text-align: center; } ```

This CSS code styles your website by setting the font family, line height, and colors. It also adds some basic styling to the header, navigation menu, main content area, and footer. The navigation menu links change color when hovered over.

Adding More Pages and Navigation

Let's add more pages to your website and update the navigation menu to link to them.

First, create new HTML files for the "About", "Portfolio", and "Contact" pages. For example, the "About" page could look like this:

```html About Me

About Me

My Story

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero...

My Experience

Job Title Company Dates
Web Developer XYZ Company 2020 - Present
Intern ABC Corporation 2019

```

Don't forget to update the navigation menu in the index.html file to link to these new pages:

```html

```

You can follow a similar process to create the "Portfolio" and "Contact" pages. Don't forget to style them using the style.css file.

Responsive Design

Responsive design ensures that your website looks good on all devices, from desktop computers to mobile phones. You can achieve this by using media queries in your CSS. Here's an example of how to make your navigation menu responsive:

```css @media screen and (max-width: 600px) { nav ul { display: none; } nav ul.show { display: block; } nav ul li { display: block; margin: 10px 0; } } ```

This CSS code hides the navigation menu on screens smaller than 600 pixels wide and displays it as a dropdown menu when the "Show Menu" button is clicked.

Creating a personal website is a rewarding experience that allows you to showcase your skills and express yourself online. With HTML and CSS, you can design and style your website exactly the way you want. Don't be afraid to experiment with different designs and layouts to find the one that best represents you. Happy coding!