Mr. Emmell's Web Examples

Reference code. Start at the top and work down.

1 · Basics

The four languages, one at a time. No databases, no servers talking to each other — just the building blocks.

HTML CSS & Bootstrap JavaScript PHP

2 · Intermediate

Making pages talk to each other and to a database. This is where a website starts becoming a web app.

Forms Databases Sessions Redirecting

3 · Advanced

Updating a page without reloading it, logging users in, drawing, and the odd useful trick.

Ajax Modals Login systems Canvas Extras

Tip: many of these pages print their own source code instead of running, so you can read exactly how they work. If a page looks like it "did nothing", view its source in the browser too.