Skip to content
beginnerPhase 92 · Developer Foundations

Personal Developer Profile

Build your first HTML page from scratch — a developer profile with bio, skills, and contact info. Deploy to GitHub Pages.

1h
0 problems
Topic Progress0%

Project Overview

Personal Developer Profile

Build a simple HTML page that introduces you as a developer. This is your first project — it teaches the absolute fundamentals of web development and project setup.

Why This Project First?

Every developer needs a starting point. This project eliminates overwhelm by focusing on one thing: creating a web page from scratch. No frameworks, no build tools, just raw HTML and CSS.

What You Will Build

A single-page developer profile containing:

  • Your name and headline
  • A short bio
  • A list of technologies you are learning
  • Links to your GitHub and LinkedIn
  • A contact email

Starting From an Empty Directory

This is intentional. You must experience:

mkdir my-dev-profile
cd my-dev-profile
git init
npm init -y

Creating something from nothing is a core engineering skill.

Architecture — What Goes Where and Why

Project Architecture

Before writing any code, let's understand what files we need and where they go. Think of this like a blueprint for a house — you don't start building without a plan.

The File Tree

Every project needs a folder structure. Here is ours:

├── index.html
├── css/styles.css
├── js/main.js
├── .gitignore
├── package.json
├── README.md

What Each File Does

Let me explain each file like you're 5 years old:

index.html — The page that displays your profile

This is the skeleton — it defines what text, sections, and links appear on screen.

css/styles.css — Makes the page look beautiful

This is the paint and decoration — colors, spacing, fonts, responsive layout.

js/main.js — Adds interactivity

This is the brain — handles navigation clicks, animations, and dynamic content.

.gitignore — Tells Git which files to ignore

Like telling a helper "don't pack these boxes" when moving houses.

package.json — Project identity card

Lists the project name, version, and what tools it needs.

README.md — Documentation for other developers

Like an instruction manual — tells people what this project does and how to use it.

Why This Structure?

You might wonder: why use folders at all? Why not put everything in one place?

Because as projects grow, you might have:

  • Multiple CSS files
  • Many JavaScript files
  • Images, fonts, and other assets

If they're all in one folder, it's chaos. Folders keep things organized.

// BAD — everything in one folder
index.html
styles.css
main.css
dark.css
app.js
utils.js
helper.js

// GOOD — organized in folders
index.html
css/
  styles.css
  main.css
js/
  app.js
  utils.js

The Golden Rule

When you start a project, ALWAYS:

  1. Create the folder structure FIRST
  2. Then fill in the files one by one
  3. Never write everything in one giant file

This is how professional developers work. Always.

Step 1 — Project Setup (Creating the Empty House)

Setting Up the Project

We are going to create an empty project from scratch. This is the exact process professional developers use every single day.

Open Your Terminal

Your terminal (also called "command line" or "console") is where you type commands to talk to your computer.

  • Mac: Open "Terminal" app
  • Windows: Open "PowerShell" or "Command Prompt"
  • VS Code: Press Ctrl+` (backtick) to open the built-in terminal

Step-by-Step Commands

Type each of these commands, one at a time, pressing Enter after each:

mkdir my-dev-profile && cd my-dev-profile && git init && npm init -y && mkdir css js assets && touch index.html css/styles.css js/main.js .gitignore README.md

What Just Happened?

Let me explain each command like you're 5:

mkdir [folder] — "Make a new box." This creates a folder on your computer.

cd [folder] — "Go inside the box." Now when you type commands, they happen inside this folder.

git init — "Start keeping a diary." Git will now track every change you make. If you break something, you can go back in time.

npm init -y — "Create an ID card for this project." It creates package.json with default settings. The -y means "yes to all questions."

touch [file] — "Create an empty file." Think of it as a blank piece of paper.

Verify It Worked

Type this command to see your files:

ls -la

The .gitignore File

Open .gitignore and add this:

node_modules/
.DS_Store
*.log
.env

Why? Because node_modules can be HUGE — thousands of files. We don't want to save all of them in Git. We can always recreate them with npm install.

Your First Git Commit

Now save everything to Git:

git add .
git commit -m "Initial project setup"

Congratulations! You just set up a project like a real developer.

Step 2 — Building the Core (Step by Step)

Building the Application

Now let's build the application step by step. Follow each step in order.

Build Steps

  1. Create index.html with DOCTYPE, head (meta, title, stylesheet link), and body (header, main, footer)
  2. Add sections: About Me, Technologies, Projects, Contact
  3. Link CSS file in the head
  4. Create css/styles.css with reset, typography, layout, and responsive styles
  5. Add hover effects and smooth scrolling
  6. Create js/main.js for navigation toggle and scroll animations
  7. Test in browser, fix issues
  8. Commit and push to GitHub

How Each Step Works

Step 1 — Create the entry point

Every application starts with an entry file. This is the file that runs first when someone opens your app.

Think of it like the front door of a house. Everything starts when you walk through it.

Step 2 — Set up the structure

Before writing features, we set up the basic layout. This is like putting up the walls before painting them.

Step 3 — Add the main functionality

Now we add what makes the app actually DO something. This is the "brain" of the application.

Step 4 — Connect everything

We wire the pieces together. The HTML connects to CSS. The JavaScript connects to HTML. Everything talks to each other.

Step 5 — Test and fix

We try everything, find bugs, and fix them. Real developers spend 30% of their time testing.

Save and Test

After each step, save your files and refresh the browser. If something breaks, check the browser console (F12 → Console tab).

Commit after each major step:

git add .
git commit -m "Describe what you just built"

Pro Tip

Build in small steps. Don't write 100 lines and then test. Write 10 lines, test, fix, then write 10 more. This catches errors early when they're easy to fix.

Building the HTML

Writing Your First HTML Page

HTML Document Structure

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Your Name — Developer</title>
  <link rel="stylesheet" href="css/styles.css">
</head>
<body>
  <header>
    <h1>Your Name</h1>
    <p class="tagline">Aspiring Software Engineer</p>
  </header>
  <main>
    <section id="about">
      <h2>About Me</h2>
      <p>I am learning to build software...</p>
    </section>
    <section id="technologies">
      <h2>Technologies</h2>
      <ul>
        <li>HTML</li>
        <li>CSS</li>
        <li>JavaScript</li>
      </ul>
    </section>
  </main>
</body>
</html>

Semantic HTML Tags

Tag Purpose
<header> Introductory content
<main> Primary page content
<section> Thematic grouping
<footer> Footer information

Common Mistakes

  1. Missing <!DOCTYPE html> — browser enters quirks mode
  2. Missing <meta viewport> — page not responsive on mobile
  3. Using <div> for everything — use semantic tags instead

Styling with CSS

Adding Style to Your Page

CSS Basics

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

section {
  margin: 2rem 0;
}

CSS Concepts

  1. Reset* { margin: 0; padding: 0; } removes browser defaults
  2. Box modelbox-sizing: border-box includes padding in width
  3. Flexboxdisplay: flex for layout
  4. Typography — font-family, font-size, line-height

Responsive Design

@media (max-width: 600px) {
  body { padding: 1rem; }
  h1 { font-size: 1.8rem; }
}

Git Workflow and Deployment

Git Workflow and Deploying to GitHub Pages

Git Basics

git init
git add .
git commit -m "feat: initial developer profile page"
git remote add origin https://github.com/yourusername/my-dev-profile.git
git branch -M main
git push -u origin main

Deploy to GitHub Pages

  1. Go to your repository on GitHub
  2. Click SettingsPages
  3. Under Source, select Deploy from a branch
  4. Choose main branch and / (root)
  5. Click Save

Your site will be live at: https://yourusername.github.io/my-dev-profile/

Why GitHub Pages?

  • Free hosting for static sites
  • Automatic deployment on push
  • HTTPS by default

Common Mistakes (What Goes Wrong)

Mistakes Everyone Makes

Every developer makes these mistakes. Knowing them ahead of time saves hours of debugging.

Mistake 1: Forgetting to Connect Files

<!-- WRONG — CSS is not linked, page looks ugly -->
<link rel="stylesheet" href="style.css">

<!-- RIGHT — file path matches actual location -->
<link rel="stylesheet" href="css/styles.css">

How to check: Right-click the page → Inspect → Network tab → look for red (failed) resources.

Mistake 2: JavaScript Before HTML

<!-- WRONG — JavaScript runs before HTML exists -->
<script src="app.js"></script>
<body>...</body>

<!-- RIGHT — JavaScript runs after HTML loads -->
<body>...</body>
<script src="app.js"></script>

Mistake 3: Not Using preventDefault()

// WRONG — page reloads when you submit
form.addEventListener('submit', () => {
  // This code runs, but then the page reloads!
});

// RIGHT — preventDefault stops the reload
form.addEventListener('submit', (e) => {
  e.preventDefault(); // Now the page doesn't reload
});

Mistake 4: Modifying State Without Re-rendering

// WRONG — changes data but screen stays the same
todos.push(newTodo);

// RIGHT — always update the screen after changing data
todos.push(newTodo);
render(); // Now the screen shows the new todo

Mistake 5: Not Handling Empty Input

// WRONG — adds empty tasks
addTodo(""); // Adds a blank todo

// RIGHT — check for empty input
if (text.trim()) {
  addTodo(text);
}

Mistake 6: Ignoring Errors

How to check for errors:

  1. Press F12 in your browser
  2. Click "Console" tab
  3. Look for red text
  4. Click on it to see what went wrong

If you see red text, DON'T IGNORE IT. That's the computer telling you something is broken.

Debugging Checklist

When something doesn't work:

  1. Check the console — F12 → Console (red text = error)
  2. Check the Network — F12 → Network (red lines = failed requests)
  3. Check file paths — Are CSS/JS files in the right folder?
  4. Check spelling — Typos in IDs, class names, function names
  5. Check the basics — Is the server running? Is the URL correct?

The 5-Minute Rule

If you've been stuck for 5 minutes:

  1. Stop
  2. Re-read the error message
  3. Search the error on Google/Stack Overflow
  4. If still stuck, ask for help

Don't waste hours on something that might be a simple typo.

Testing Everything Works

Testing Your App

A real developer NEVER assumes code works. They TEST it.

Why Test?

  • Users will find every bug you missed
  • Bugs found later cost 10x more to fix
  • Testing gives you confidence to make changes

Manual Testing Checklist

Go through this checklist for EVERY feature:

□ Page loads without errors (check browser console — F12)
□ All buttons work when clicked
□ All forms submit correctly
□ Input validation works (empty, special characters)
□ Data saves and loads correctly
□ Responsive on mobile (resize browser)
□ No console errors
□ All links work
□ Loading states appear during API calls
□ Error messages show when things fail

How to Check for Errors

Press F12 in your browser. Click the "Console" tab.

  • Empty = Good! No errors.
  • Red text = Bad. Click it to see what went wrong.

Edge Cases to Test

Real users do weird things. Test these:

  1. Empty input — What happens if you submit nothing?
  2. Very long input — Paste a 1000-character string
  3. Special characters — Type < > & " ' / 4. Rapid clicking — Click a button 10 times fast
  4. No internet — Turn off WiFi and try
  5. Refresh mid-action — Reload while something is happening

Browser Testing Tools

Tool How to Open What It Shows
Console F12 → Console JavaScript errors and logs
Network F12 → Network API requests and responses
Elements F12 → Elements Live HTML and CSS
Device Mode Ctrl+Shift+M Mobile screen simulation

Git Commit

After testing, commit your work:

git add .
git commit -m "Complete [project name] with testing"

What You Just Learned

Summary — Skills You Now Have

Technical Skills

  1. Project Structure — You know how to organize files in folders
  2. Git — You can initialize, add, commit, and push
  3. Version Control — You can track changes and go back in time
  4. HTML/CSS/JavaScript — You can build interactive web pages
  5. DOM Manipulation — You can change what's on screen with code
  6. Event Handling — You can respond to clicks, inputs, and other actions
  7. State Management — You can track and update application data
  8. Debugging — You can find and fix errors using browser tools
  9. Testing — You can verify your app works correctly

Thinking Skills

  1. Architecture — You planned the project BEFORE writing code
  2. Problem Solving — You broke a big problem into small steps
  3. Debugging — You systematically found and fixed errors
  4. Documentation — You wrote notes for future you (and other developers)

The Pattern

Every frontend application follows this pattern:

State (data) → Render (draw) → Event (respond) → Update State → Render again

React, Vue, Angular, Svelte — they ALL do this. You just learned the fundamental pattern that powers the entire web.

What's Next?

Look at the next project in the roadmap. Each new project builds on what you learned here. The skills compound — every project makes you a better developer.

Remember: every expert was once a beginner who didn't give up.

Quick Reference

Quick Reference

File Overview

  • index.html: The page that displays your profile
  • css/styles.css: Makes the page look beautiful
  • js/main.js: Adds interactivity
  • .gitignore: Tells Git which files to ignore
  • package.json: Project identity card
  • README.md: Documentation for other developers

Setup Commands

mkdir my-dev-profile && cd my-dev-profile && git init && npm init -y && mkdir css js assets && touch index.html css/styles.css js/main.js .gitignore README.md

Common Patterns

// Select an element
const el = document.getElementById('myId');

// Add event listener
el.addEventListener('click', (e) => {
  e.preventDefault();
});

// Update the DOM
el.innerHTML = '<p>New content</p>';
el.textContent = 'Text only';

Debugging

F12 → Console     → Check for errors
F12 → Network     → Check API requests
F12 → Elements    → Inspect HTML/CSS
Ctrl+Shift+M      → Mobile view

Git Commands

git init                  # Start a repo
git add .                 # Stage all changes
git commit -m "message"   # Save changes
git push                  # Upload to GitHub

Quiz

1. What file does a browser look for by default?

Question 1 options

2. Why add box-sizing: border-box?

Question 2 options

3. What does git init do?

Question 3 options

Flashcards

Question

What is .gitignore?

Answer

A file that tells Git which files to exclude from version control

Question

What does <meta viewport> do?

Answer

Sets the viewport width to device width, enabling responsive design

Question

What is semantic HTML?

Answer

Using HTML tags that describe the meaning of content (header, main, section)

Revision Notes

Key Takeaways

  • 1.Every project starts with proper directory structure
  • 2.Git tracks changes — commit early and often
  • 3.Semantic HTML improves accessibility
  • 4.CSS box-sizing prevents layout surprises
  • 5.GitHub Pages provides free hosting

Interview Tips

  • Explain your project setup process
  • Know git init, add, commit, push
  • Understand semantic HTML importance

Cheat Sheet

Developer Foundations

Setup

mkdir project && cd project
git init
npm init -y

HTML Template

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Page</title>
</head>
<body>...</body>
</html>

Git

git add . → git commit -m "msg" → git push