FREE OFFICIAL BEGINNER'S BOOK · 14 CHAPTERS · HTML5 + CSS3 + HTML+ v2.2
Zero to Web Developer: HTML, CSS & HTML+
Start from absolute zero with real, standard HTML5 and CSS3 (box model, Flexbox, CSS Grid, responsive mobile design), then seamlessly extend those exact same skills with HTML+ to build zero-JS web apps, embedded <db> forms, Gmail emails, and standalone apps.
Preface: Welcome to the Web (No Math Genius Required)
If you have never written a single line of code in your life, you are in the exact right place.
A lot of beginners give up on web development in their first week — not because they aren't smart, but because most tutorials throw 12 tools at you on Day 1: HTML, CSS, JavaScript, Node.js, npm, React, TypeScript, Vite, Tailwind, SQL, and Docker.
This book takes a calmer, smarter path:
First (Parts I & II): You will learn real, standard HTML5 and CSS3 from absolute zero. Everything in Parts I and II is 100% universal web knowledge that works in every browser on Earth.
Next (Part III): Once you are comfortable with HTML and CSS, you will see how HTML+ (HoneyScript) extends those exact same skills into interactive apps, databases, forms, and tests — without ever needing JavaScript or 500 npm packages.
Finally (Part IV): You will ship one clean file as a live zero-JS web app, a static website, a Gmail/Outlook HTML email, and even a standalone .exe program.
"Don't break the internet or workflows. Extend it."
Take your time, type the examples out yourself in HoneyScript Sandbox or any text editor, and enjoy watching your own pages come to life.
Chapter 1: How the Internet & Web Pages Actually Work
Before writing code, let's demystify what actually happens when you visit a website.
The Restaurant Analogy
Think of the web like ordering at a restaurant:
Your Browser (Chrome, Safari, Firefox) is you sitting at the table.
A URL (like https://underlisted-x.com/honeyscript/) is the restaurant's address and table order.
A Server is the kitchen — a computer sitting somewhere in the world that stores the website's files and hands them back when asked.
HTML & CSS Files are the meal the kitchen sends to your browser so it knows what to show on your screen.
A Webpage Is Just a Plain Text File
There is no magic binary mystery behind a website. A webpage is literally a plain text file (like a .txt note), saved with a .html extension (for standard web pages) or .htmp / .hny (for HTML+ apps).
Here is a complete, valid webpage:
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>My First Website</title>
</head>
<body>
<h1>Hello, Internet!</h1>
<p>I built this page from scratch.</p>
</body>
</html>
Look at the two main sections inside <html>:
<head> (Behind the Scenes): Information about the page — its browser tab <title>, character encoding (utf-8 so emojis and accents work), and stylesheets. Visitors don't see <head> directly on the page.
<body> (What Visitors See): Every heading, paragraph, image, button, and form visible on the screen lives inside <body>.
Try It Yourself: Create a file on your computer called hello.html, paste the code above, and double-click it. Your browser will open your very own webpage offline!
Chapter 2: HTML Is Just Labeled Boxes
HTML stands for HyperText Markup Language. Forget the scary acronym — HTML is just labeled boxes.
Every box has an opening tag (<p>) and a closing tag (</p>), with your content inside:
HTML
<h1>Main Page Title</h1>
<h2>A Smaller Section Heading</h2>
<p>This is a normal paragraph of text. You can <strong>bold</strong> or <em>italicize</em> words.</p>
Links (<a>) and Images (<img>)
Some tags need extra details called attributes — written as name="value" inside the opening tag:
HTML
<!-- A clickable link -->
<a href="https://underlisted-x.com/honeyscript/">Visit HoneyScript</a>
<!-- An image (self-closing — no closing </img> tag needed!) -->
<img src="/honeyscript/honey-icon.png" alt="Honey AI Logo" width="64" height="64" />
href="..." tells a link where to go.
src="..." tells an image which file to load.
alt="..." describes the image for screen readers and shows up if the image fails to load. Always include alt!
Nesting: Boxes Inside Boxes
Just like you can put small boxes inside a bigger moving box, you can put HTML tags inside other HTML tags. Rule: Always close the inner box before closing the outer box.
HTML
<!-- GOOD: inner <strong> closes before outer <p> -->
<p>Welcome to <strong>My Studio</strong>!</p>
<!-- BAD: tags overlap -->
<p>Welcome to <strong>My Studio</p>!</strong>
Try It Yourself: Build a mini "About Me" page with an <h1> for your name, a <p> bio with one <strong> word, and an <a> link to your favorite website.
Real websites aren't just walls of paragraphs. They have navigation bars, bullet lists, cards, and footers.
Bullet & Numbered Lists
<ul> = Unordered List (bullets)
<ol> = Ordered List (1, 2, 3)
<li> = List Item (each individual line)
HTML
<h2>My Learning Checklist</h2>
<ul>
<li>Learn HTML5 structure</li>
<li>Master CSS3 layout</li>
<li>Build my first zero-JS app in HTML+</li>
</ul>
Semantic Tags (Meaningful Boxes)
Instead of wrapping everything in generic <div> boxes, HTML5 gives you descriptive container tags that help both humans and search engines understand your page:
HTML
<header>Top brand & navigation bar</header>
<main>
<section>
<article>A blog post, card, or product</article>
</section>
</main>
<footer>Copyright & bottom links</footer>
id vs. class: The Name Tag Rule
When you want to style or interact with specific boxes later, you label them with id or class:
id="hero-title" — Unique. Like a passport number: only one element on the page should have that exact id.
class="card" — Reusable. Like a team jersey: dozens of elements can share the same class.
Notice those helpful attributes right on the <input> tags:
type="email" — Automatically knows an email needs @ and a domain.
type="number" — Only allows numbers (and shows a number keypad on phones!).
required — Stops empty submissions.
minlength="2" / min="1" / max="10" — Enforces length and number ranges automatically.
Why this matters later: In Part III, HTML+ reads these exact same standard HTML5 attributes to validate your forms automatically with valid-form("#contact-form")!
Chapter 5: Styling Your Page with Pure `<style>`
If HTML is the skeleton and walls of a house, CSS (Cascading Style Sheets) is the paint, lighting, and furniture.
You write CSS inside a <style> tag using simple rules: pick a box, then list property: value; pairs inside { ... }:
body, h1, p (Tag selector) — Styles every tag of that kind.
.card (Dot = Class selector) — Styles every element with class="card".
#hero-title (Hash = ID selector) — Styles the one element with id="hero-title".
Beginner Design Tips That Instantly Look Pro
Give text room to breathe: Always set line-height: 1.5 or 1.6 on body.
Limit line width: Long lines are tiring to read. Use max-width: 65ch; on paragraphs.
High contrast: Light text (#f4f7f5) on dark obsidian (#020504), or dark charcoal (#111815) on crisp white (#ffffff).
Chapter 6: The CSS Box Model (Margin, Border & Padding)
Every single element on a webpage — even a word or a button — is a rectangle made of 4 layers from inside out:
Content: The text or image itself.
Padding: Breathing room inside the box, between the content and the border.
Border: The visible outline around the box.
Margin: Empty space outside the box, pushing neighboring boxes away.
HTML
<style>
/* Always put this at the top of your CSS! */
* {
box-sizing: border-box;
}
.box {
width: 300px;
padding: 20px; /* Space INSIDE the border */
border: 2px solid #34e89e;
margin: 16px; /* Space OUTSIDE the border */
background: #08100c;
}
</style>
Why * { box-sizing: border-box; } Saves Your Sanity
By default, if you make a box width: 300px and add padding: 20px, browsers make it 340px wide (breaking your layout!). Adding box-sizing: border-box; tells the browser: "Keep the total width strictly 300px, including padding and border." Every professional web developer uses this on every site.
Chapter 7: Modern Layouts Made Easy (Flexbox & CSS Grid)
Historically, centering a box or placing three cards side-by-side was notoriously tricky. Modern CSS gives you two clean superpowers:
1. Flexbox (display: flex) — For 1-Dimensional Rows & Navbars
Use Flexbox whenever you want items lined up neatly in a single row (like a navigation bar or a row of buttons):
CSS
.navbar {
display: flex;
justify-content: space-between; /* Brand on left, links on right */
align-items: center; /* Vertically centered */
gap: 16px; /* Clean space between items */
flex-wrap: wrap; /* Wrap nicely on small screens */
}
2. CSS Grid (display: grid) — For 2-Dimensional Card Grids
Use CSS Grid whenever you want a neat multi-column grid of cards that automatically adapts to any screen width:
Read that one magic line out loud: "Fit as many columns as possible, where each card is at least 260px wide and shares leftover space equally (1fr)." On a desktop, you get 3–4 columns. On a tablet, 2 columns. On a phone, 1 clean full-width column — automatically!
Chapter 8: Making Sites Look Great on Phones (Responsive Design)
Over half of all web visitors are on phones. Three simple habits keep your site looking sharp on every screen size:
Congratulations! You now know the real, timeless foundations of HTML5 and CSS3. Everything from here on builds directly on what you just learned — without throwing any of it away.
Chapter 9: Memory Boxes (`<var>`, `<const>`, `<array>`, and the `$` Rule)
Up to now, your HTML pages have been static (like a printed poster). Now let's switch the top line from <!DOCTYPE html> to <!DOCTYPE html+> and unlock HTML+ (HoneyScript)!