Chapter 4: First Web Page

What do we mean by “First Web Page”?

Your first web page is usually:

  • A simple personal introduction page (like a mini digital visiting card)
  • Made with only HTML (structure + content) + CSS (colors, layout, beauty)
  • Saved as index.html (the magic name browsers love)
  • Opened directly in Chrome/Edge/Firefox from your laptop (no internet needed yet)

Goal today: You will have a nice-looking page saying something about you, with colors, a photo, and proper spacing — all in ~100 lines of code.

Step 1: Prepare Your Folder (5 seconds)

If you followed the previous environment setup lesson:

  • Open VS Code
  • Open your project folder (e.g. Desktop\Webliance-Learning or wherever you created it)
  • Inside that folder → right-click → New File → name it exactly index.html
  • Create another file → name it style.css

Now you have:

text

Step 2: The Complete First Web Page Code

index.html — copy-paste this entire code:

HTML

style.css — copy-paste this (modern, clean, beginner-friendly):

CSS

Step 3: See the Magic (How to Open It)

  1. Save both files (Ctrl + S)
  2. In VS Code → right-click inside index.html → Open with Live Server (If you installed the Live Server extension like we talked about earlier)
  3. Browser opens automatically → http://127.0.0.1:5500/index.html You should see your beautiful page!

Alternatively (no Live Server):

  • Double-click index.html in File Explorer → opens in default browser
  • Every time you change & save → refresh browser (F5 or Ctrl + R)

Here are some example screenshots of what simple first pages typically look like (yours will be similar but personalized):

Awesome Inc
awesomeinc.org
Basic Web Design With HTML & CSS - Owlcation
owlcation.com

And some more stylish personal ones (inspiration for next versions):

Julia - Free One Page Portfolio HTML Template - TemplatesJungle.com
templatesjungle.com
41+ Best Professional Portfolio Website Templates for Easy Kick-off
themewagon.com

Quick Breakdown Table – What You Just Learned

Part What it does Why important
<!DOCTYPE html> Tells browser: “This is modern HTML5” Without it → weird old rendering
<html lang=”en”> Root + language hint Accessibility + SEO
<head> Invisible metadata area Title, CSS link, viewport go here
<meta viewport> Makes page mobile-friendly Without it → zoomed-out mess on phone
<link rel=”stylesheet” href=”style.css”> Connects CSS file Separates style from structure (best practice)
<header>, <section>, <footer> Semantic sections Better for screen readers & future CSS
Classes like .hero, .container Hooks for CSS styling Lets you target specific parts

Your 10-Minute Personalization Task (Do It Now!)

  1. Change <h1>Hello, I’m Webliance!</h1> to your real name or fun nickname
  2. Update the tagline & intro paragraph with something about you
  3. Replace the image URL with your own photo (upload to imgur.com or use Unsplash again)
  4. Change hero gradient colors — try linear-gradient(135deg, #10b981, #059669) (emerald vibe)
  5. Add one more <li> to the list

Save → refresh → smile 😄

This is your first real web page — congratulations! Most websites in the world started exactly like this.

Next possible lessons (tell me which one you want):

  • “Make it look good on mobile” (responsive design)
  • “Add more sections like projects/skills”
  • “Teach me Flexbox to arrange things nicely”
  • “How to add a button that does something (intro to JS)”
  • “Upload this page online for free (Netlify/GitHub Pages)”

How does it look on your screen? Any part confusing? Drop a screenshot description or just say “next → responsive” — I’m right here with you.

Chai + your first webpage = perfect morning in Hyderabad ☕💻

You’re doing awesome, keep going! 🚀

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *