Home
Webstree Blog

Clear writing. Live demos.

Practical, dependency-free tutorials that start from the foundations. Every post ships with a live, editable preview of the result, no videos, no static images, the real thing.

13 posts
index.html
Featured #html #css

Build Your First Webpage From Scratch: index.html in 10 Minutes

No installers, no editors, no npm, no Docker. With only a text editor and a browser, publish your first HTML page, including a ball that falls with real weight, squashes on impact, and rises again, all with pure CSS.

Webstree Team ··6 min read
Read post
daily-cups.html

Bring Your Page to Life: JavaScript in 10 Lines

Ten lines of plain JavaScript are enough for a real interactive app. Build a daily-cups habit tracker that opens with bismillâh, shifts colour at the halfway point, and closes with alhamdulillah at the eighth glass, no frameworks, no build tool.

·5 min
url-journey.html

How a URL Actually Works: The 0.3 Second Journey

DNS, TCP, TLS, HTTP, parse, render, the six simple steps between pressing Enter and seeing a webpage, visualised as a single packet traveling a precisely timed pipeline. Run each step yourself with dig, ping, openssl, and curl.

·6 min
grid-playground.html

CSS Without Frameworks: What Tailwind Hides From You

A single line of CSS plus a max-width builds a grid that folds cleanly from three columns to one across desktop, tablet, and mobile; hover one card and :has() dims the rest. The four vanilla primitives and five modern tricks that quietly replace most of a utility framework.

·6 min
honest-prices.html

Honest Prices: Mutaffifîn 83 Applied to E-Commerce

Drip pricing, fake urgency, pre-ticked add-ons, fake discounts. The patterns that erode trust and the cart-summary shape that refuses them. Half technique, half mizan (measure).

·5 min
checkout-form.html

The Cheapest Checkout Form: HTML5 Validation Only

No React Hook Form, no Zod. Required, minlength, pattern, autocomplete, plus a small ValidityState-driven script that reveals friendly errors on blur. :user-invalid is the CSS pseudo-class you have been waiting for.

·4 min
qty-input.html

Quantity Inputs That Don't Break, With Intl.NumberFormat

Clamp, floor, validate. One plus-minus input with HTML5 bounds and a 15-line guard. Then Intl.NumberFormat for honest currency display across USD, TRY, EUR, and JPY, including the JPY no-decimals gotcha.

·4 min
cart-drawer.html

A Slide-Out Cart Drawer With Only Transform and Transition

Open, close, Escape, backdrop-click, body-scroll-lock, and accessibility. The universal cart drawer pattern, built from two fixed elements, a transform, and a 20-line script.

·4 min
product-filter.html

Filter Products With Ten Lines of Plain JavaScript

A search box that narrows the product catalog as the user types, with substring match, debouncing, and a live match counter. No Lunr, no Fuse, no backend.

·4 min
shop-grid.html

One Line of CSS for a Shop Grid That Just Works

Mobile, tablet, desktop, ultra-wide, all handled by a single grid-template-columns rule. No media queries, no framework. The difference between auto-fit and auto-fill, and why you always want one of them.

·4 min
cart-badge.html

A Cart Badge That Remembers: localStorage in 12 Lines

A cart counter that survives refreshes, tab closes, and offline weeks. Twelve lines of plain JavaScript, zero backend, one small key-value store built into every browser.

·5 min
product-card.html

Your First Product Card: Real HTML, No Framework

Sixty lines of HTML, forty of CSS, ten of JS, and you have a product card every e-commerce site on the internet sits on top of: semantic article, SVG placeholder image, honest price block, and a CTA that acknowledges the click.

·6 min
index.html

Full-Stack E-commerce on One Screen: Admin, Store, Cart, Checkout

Eight tutorials wired into one live shop. Admin on the left, store in the middle, cart on the right. Add products, place orders, watch the animated checkout confirm the sale. Real UX, no framework, no server.

·8 min

Start building with Webstree

Everything you read here, try it on your own Webstree space. Free to start, nothing to install.

Webstree
Starting…0%
Session verification
Preparing the app