011
LVL 01 — WAVE DEFENDER SESSION 011 DAY 11

FIX PAGE TITLE

🎫 PIXELCRAFT-001
🐛 Bug | 🟢 Beginner | Priority: 🔵 Low

The browser tab shows "Untitled Document" instead of "PixelCraft — Image Editor". This looks unprofessional. Fix the page title and add proper meta tags.

Steps to Reproduce: Open PixelCraft → look at the browser tab title
Expected: "PixelCraft — Image Editor"
Actual: "Untitled Document"
CONCEPTS.UNLOCKED
</>
What HTML Is
The language that defines the structure and content of web pages. HTML is NOT a programming language — it's a markup language (it describes structure, not logic).
🦴
Document Structure
<!DOCTYPE html><html><head> + <body>. Every web page on earth follows this skeleton. The doctype tells the browser "this is HTML5."
🧠
The <head> Section
Metadata about the page: <title>, charset, viewport, description, favicon. Invisible to the user but critical for browsers, search engines, and social sharing.
👁
The <body> Section
Everything the user sees and interacts with. Text, images, buttons, forms, canvas — all visible content lives inside <body>.
🏷
The <title> Tag
Sets the browser tab text. Lives inside <head>. Also used by search engines as the page heading in results and by bookmarks as the default name.
📝
Reading & Modifying HTML
Open an existing .html file, identify its structure, find specific tags, make changes, save, and see the result in the browser. The edit→save→refresh loop.
HANDS-ON.TASKS
01
Read the Entire File

Open src/index.html in VS Code. Read the entire file top to bottom.

Identify the structure:

<!DOCTYPE html> <!-- Tells the browser: "This is HTML5" --> <html> <!-- Root element --> <head> <!-- Metadata (invisible) --> ... </head> <body> <!-- Content (visible) --> ... </body> </html>
02
Fix the <title> Tag

Find the <title> tag (or notice it's missing). Fix it:

<title>PixelCraft — Image Editor</title>

Save and check the browser — the tab title should update immediately.

03
Add Essential Meta Tags
<meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="A browser-based image editor with professional-grade tools">
Meta TagWhat It Does
charset="UTF-8"Character encoding — supports all languages
viewportMakes the page responsive on mobile devices
descriptionText shown under your title in search results
04
Explore the DOM in DevTools

Open DevTools (F12) → Elements tab: see the parsed HTML tree. This is the DOM — Document Object Model.

Right-click any element in the browser → "Inspect" → see its HTML in DevTools.

Try: double-click any text node in Elements → edit it live. The page changes instantly (but it's not saved — refresh to reset).

05
Close the Ticket — Full Git Workflow
git switch -c bugfix/PIXELCRAFT-001-fix-page-title # ... make changes ... git add src/index.html git commit -m "Fix page title and add meta tags (PIXELCRAFT-001)" git push origin bugfix/PIXELCRAFT-001-fix-page-title # Create PR → Review → Merge → Close ticket ✅
CS.DEEP-DIVE

The DOM is a tree data structure.

Every HTML tag is a node. Nesting creates parent-child relationships. <html> is the root. <head> and <body> are its children.

// This tree structure is one of the most
// fundamental in CS:

File systems    → folders contain folders
JSON data       → objects nest inside objects
Database indexes → B-trees for fast lookup
Compilers       → Abstract Syntax Trees (ASTs)
                  parse code into trees

// You'll work with tree structures
// throughout your entire career.
"HTML Anatomy"
[A] Open 3 popular websites. Use DevTools to inspect their <head> section. What meta tags do they use that PixelCraft doesn't?
[B] Draw the DOM tree of PixelCraft's index.html on paper. Label each node with its tag name.
[C] Add Open Graph meta tags (<meta property="og:title">, og:description, og:image) so PixelCraft looks professional when shared on social media.
REF.MATERIAL
ARTICLE
Mozilla Developer Network
The gold-standard introduction to HTML. Elements, attributes, nesting, and document structure. Bookmark MDN — you'll use it forever.
HTMLMDNBEGINNER
VIDEO
Traversy Media
1-hour walkthrough of all HTML fundamentals — document structure, semantic tags, forms, tables, and meta tags.
HTMLCRASH COURSE
ARTICLE
Mozilla Developer Network
What the DOM actually is, how the browser builds it from HTML, and why it matters. Foundation for everything in Sessions 18–20.
DOMTREEREFERENCE
VIDEO
Kevin Powell
Deep dive into everything that belongs in the <head> section — meta tags, Open Graph, favicons, and preloading.
HEADMETA TAGSSEO
TOOL
W3C
Paste your HTML and get a detailed report of errors and warnings. The official way to check if your HTML is valid.
VALIDATIONQUALITY
// LEAVE EXCITED BECAUSE
First ticket closed! You changed code and saw it in the browser. You understand the skeleton of every web page. And you did the full professional workflow.