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!