SITE MAP
CLASS 8 • WEB / CYBER LAB

WRITE THE
WEB.

HTML gives a browser the structure of a web page. Learn how elements, tags and attributes fit together, then change real code and watch the result appear.

CURRENT MISSION
Make the browser say hello.
Change the heading in the playground, then render your own tiny page.
LEARNING CORE
0%
THE BIG IDEA
<tag>content</tag>
A typical HTML element has an opening tag, content, and a closing tag. Some elements, such as <br>, do not wrap content.
<h1> HEADING <p> PARAGRAPH <a> LINK
01 // WHAT IS HTML?

Structure, not decoration.

HTML stands for HyperText Markup Language. It describes the structure and meaning of content so a browser knows what parts are headings, paragraphs, links, lists and more.

H = HyperText

Text can connect to other pages or resources using links.

M = Markup

Special tags mark the role of content, rather than simply changing how it looks.

L = Language

HTML uses a standard set of elements and attributes that browsers understand.

HTML vs CSS vs JavaScript

HTML
What is on the page?
CSS
How does it look?
JavaScript
What does it do?
02 // PAGE ANATOMY

Read the skeleton.

A complete HTML document usually has a document type declaration, an html element, a head section for metadata, and a body section for visible page content.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>My Page</title>
  </head>
  <body>
    <h1>Hello!</h1>
    <p>Welcome to my page.</p>
  </body>
</html>
html
├─ head
│ ├─ meta charset
│ └─ title → My Page
└─ body
   ├─ h1 → Hello!
   └─ p → Welcome...
The <head> is not the same thing as the visible heading. The visible content normally lives inside <body>.
03 // TAG GRID

Meet the useful ones.

Click a tag to see a tiny example in the preview box.

<h1>

Main heading.

<p>

Paragraph of text.

<a>

Hyperlink.

<img>

Embeds an image resource.

<ul>

Unordered list container.

<ol>

Ordered list container.

<table>

Tabular data structure.

<button>

A clickable control.

LIVE TAG PREVIEW

Click DEMO

The rendered result will appear here.

<select a tag>
04 // ATTRIBUTES

Give an element extra information.

Attributes are written inside an opening tag and usually use the form name="value".

<a href="page2.html">Next page</a>
Element: <a>
Attribute: href
Value: page2.html
Remember: An attribute belongs in the opening tag. Its value is normally placed inside quotation marks.
ElementAttributePurpose
<a>hrefWhere the link points.
<img>srcWhere the image resource comes from.
<img>altText description of the image.
<input>typeWhat kind of input control it is.
Many elementsidGives an element a unique identifier within the page.
05 // HTML PLAYGROUND

Write it. Render it.

The editor uses a sandboxed preview. Your code is rendered locally inside the page, without sending it to a server.

CODE
SANDBOXED PREVIEW
PREVIEW
local render
Try changing <h1>Hello, web!</h1> to your own heading, then press RENDER.
06 // STRUCTURES

Lists and tables have their own pattern.

HTML often describes relationships between pieces of content. Lists and tables are good examples.

Unordered list

<ul>
  <li>Maths</li>
  <li>Science</li>
</ul>
  • Maths
  • Science

Simple table

<table>
  <tr>
    <th>Name</th>
    <th>Score</th>
  </tr>
</table>
NameScore
Riya92
Aman87
07 // PRACTICE LAB

Translate the idea into code.

Each challenge accepts up to three attempts. Once solved or locked, the answer is revealed.

08 // MEMORY DECK

Fast recall.

Flip the cards, explain the rule in your own words, then reshuffle.

0 reviewed
ROOT//8 DEEP CARD
Why is semantic structure useful?
Tap to reveal.
REVEAL
Because the element can describe what the content means, making the document easier for people and software to understand.
09 // SLIDE DECK

Teach the chapter like a briefing.

Step through the core ideas, then jump back to the playground for a live demonstration.

ROOT//8 BRIEFING 01

HTML

structure

HTML tells the browser what the content is.

BRIEFING 02

Element

<p>...</p>

An element is a complete markup unit, often with opening tag, content and closing tag.

BRIEFING 03

Attributes

<a href="...">

Attributes add information to an element.

BRIEFING 04

Document skeleton

<head> + <body>

Metadata belongs in the head; visible content normally belongs in the body.

BRIEFING 05

Hierarchy

html → body → content

HTML elements can be nested to represent relationships.

BRIEFING 06

Build

<h1> + <p> + <a>

Small, correct pieces can become a complete web page.

10 // SYSTEM CHECK

Three attempts. Then reveal.

Fresh questions cover tags, attributes, document structure, nesting and the difference between HTML, CSS and JavaScript.

Choose or enter an answer. Three attempts per question.
0 / 6
PREVIOUS← Cube Roots SITE HOME⌂ Home