Having your own personal website is a great way to showcase your skills, projects, or even start a blog! Whether youβre a developer, designer, freelancer, or job seeker, a website makes you stand out.
The best part? You donβt need any fancy toolsβjust HTML, CSS, and JavaScript! π οΈ
In this guide, weβll walk you through building a simple yet stylish personal website step by step. Letβs get started! π
Β
π What Youβll Learn:
β HTML β The structure of your website ποΈ
β CSS β The design & styling π¨
β JavaScript β Adding interactivity β¨
β Deploying β Making your site live π
By the end, youβll have a fully functional personal website like this:
π» YourName.com (Your own online portfolio!)
Β
1οΈβ£ Setting Up Your Project ποΈ
πΉ Create a Project Folder
First, create a folder for your website:
python
------
personal-website/
βββ index.html
βββ style.css
βββ script.js
βββ images/
βββ projects.html (Optional)
πΉ Open Your Code Editor
Use VS Code, Sublime Text, or Notepad++ to write your code.
Now, letβs start coding! π
Β
2οΈβ£ Writing the HTML (Structure) ποΈ
Create index.html and add this code:
html
------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Personal Website</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Hi, I'm John Doe π</h1>
<p>Web Developer | Tech Enthusiast | Blogger</p>
<a href="#contact" class="btn">Contact Me</a>
</header>
<section id="about">
<h2>About Me</h2>
<p>I'm a passionate web developer who loves building beautiful websites and apps.</p>
</section>
<section id="projects">
<h2>Projects</h2>
<ul>
<li>π <a href="#">Portfolio Website</a></li>
<li>π <a href="#">Weather App</a></li>
<li>π± <a href="#">To-Do List App</a></li>
</ul>
</section>
<section id="contact">
<h2>Contact Me</h2>
<form>
<input type="text" placeholder="Your Name" required>
<input type="email" placeholder="Your Email" required>
<textarea placeholder="Your Message" required></textarea>
<button type="submit">Send Message</button>
</form>
</section>
<script src="script.js"></script>
</body>
</html>
βοΈ This creates sections for About, Projects, and Contact.
βοΈ We added a form for users to contact you.
3οΈβ£ Styling with CSS π¨
Now, letβs make it look good! Create style.css and add:
css
------
/* General Styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
text-align: center;
}
/* Header Section */
header {
background: #007BFF;
color: white;
padding: 50px;
}
.btn {
background: white;
color: #007BFF;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}
/* Sections */
section {
padding: 50px;
}
h2 {
color: #007BFF;
}
/* Contact Form */
form {
display: flex;
flex-direction: column;
max-width: 400px;
margin: auto;
}
input, textarea {
margin: 10px 0;
padding: 10px;
width: 100%;
}
button {
background: #007BFF;
color: white;
padding: 10px;
border: none;
cursor: pointer;
}
βοΈ The header is blue and attractive.
βοΈ Buttons, text, and sections are clean and simple.
βοΈ The form is neatly styled.
πΉ Save & Refresh your browser. Now, your site looks great! π
Β
4οΈβ£ Adding Interactivity with JavaScript β¨
Letβs make the contact form interactive! Create script.js and add:
js
------
document.querySelector("form").addEventListener("submit", function(event) {
event.preventDefault();
alert("Thanks for your message! I'll get back to you soon. π");
});
βοΈ Now, when someone submits the form, an alert pops up!
πΉ Try It Out! Type something in the form and hit βSend Messageβ!
Β
5οΈβ£ Making Your Website Live π
πΉ Option 1: GitHub Pages (Free & Easy!)
1οΈβ£ Create a GitHub account (if you donβt have one).
2οΈβ£ Create a new repository (e.g., my-website).
3οΈβ£ Upload your project files (index.html, style.css, script.js).
4οΈβ£ Go to Settings β Pages β Select βmainβ branch β Save.
5οΈβ£ Your site is live at:
perl
------
https://yourusername.github.io/my-website/
π Congratulations! Your website is online! π
Β
π₯ Bonus Features to Add Later
β Dark Mode β Toggle light/dark themes.
β Animations β Use CSS animations for a dynamic UI.
β Blog Section β Add articles and posts.
β More JavaScript Features β Interactive buttons, API integrations, etc.
π Conclusion: You Built a Website! π
You just created your first personal website using HTML, CSS, and JavaScript! π
βοΈ HTML β Structured the website.
βοΈ CSS β Styled it beautifully.
βοΈ JavaScript β Made it interactive.
βοΈ Deployment β Put it online with GitHub Pages!
π‘ Whatβs next? Customize your site, add projects, and share it on LinkedIn!


