
✅ Step 1: Plan Your Portfolio
Before writing any code, decide what content you want to include:
✍️ Key Sections:
Hero Section – Your name, profession, and a brief intro
About Me – More detailed information about your background
Projects – Showcase with live links, screenshots, and GitHub links
Skills – Programming languages, tools, frameworks
Contact Form – Simple form or direct email/social links
Resume – Optional downloadable link
🧰 Step 2: Set Up the Project Structure
Create a folder named portfolio-site
and structure it like this:
portfolio-site/
│
├── index.html
├── style.css
├── script.js
└── assets/
├── images/
└── fonts/
💻 Step 3: Write the HTML (index.html) html Copy Edit
My Portfolio
Your Name
Hi, I'm a Web Developer
I build responsive and engaging websites.
About Me
Brief intro about your background and experience.
Projects
Skills
- HTML
- CSS
- JavaScript
- React
Contact
Email: yourname@example.com
This is a title🎨 Step 4: Add Styling (style.css) css Copy Edit
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
line-height: 1.6;
background: #f4f4f4;
color: #333;
}
header {
background: #333;
color: white;
padding: 1rem;
text-align: center;
}
nav a {
color: white;
margin: 0 10px;
text-decoration: none;
}
section {
padding: 2rem;
}
.project-card {
background: white;
padding: 1rem;
margin-top: 1rem;
border-radius: 8px;
}
footer {
background: #222;
color: white;
text-align: center;
padding: 1rem;
margin-top: 2rem;
}
📱 Step 5: Make It Responsive
Add a media query to make the layout mobile-friendly:
@media (max-width: 768px) {
nav {
display: flex;
flex-direction: column;
gap: 10px;
}
section {
padding: 1rem;
}
}
🚀 Step 6: Deploy Your Portfolio
Options:
GitHub Pages: Free and easy.
Netlify: Great for static site hosting.
Vercel: Ideal for React/Next.js projects.
GitHub Pages Deployment:
Push your code to GitHub.
Go to Repository Settings > Pages.
Choose branch: main and /root.
Done! Your site is live.
✅ Tips for a Great Portfolio:
Keep design clean and minimal
Showcase real, working projects
Keep navigation intuitive
Make it responsive and fast-loading
Use consistent fonts and colors
🧠 Want to Go Advanced?
You can also:
Use Bootstrap or Tailwind CSS for faster styling
Add JavaScript animations
Integrate contact form with Formspree or Netlify Forms
Convert your static portfolio into a React App