Build your own Web Browser
A browser that downloads pages over HTTPS, parses HTML and CSS, lays out and paints boxes and text, and handles links.
- Advanced
- About 30–60 h
- 5 checkpoints
- 2 tutorials · Python, Rust
Pick a tutorial, then check yourself at each checkpoint. Work in any language you like.
Choose a tutorialWhy build it
Advice on front-end performance and accessibility comes from how browsers work. Building the pipeline (network, parse, style, layout, paint) makes that advice concrete.
You will be able to
- Request pages over HTTP and HTTPS by hand.
- Parse HTML into a DOM tree and CSS into rules with selectors and the cascade.
- Lay out block and inline boxes, then paint them.
- Handle clicks, links, scrolling and history.
Skills it exercises
- How Browsers Render Pages
- HTTP & APIs
- CSS Cascade & Box Model
- Semantic HTML
- Web Performance & Core Web Vitals
Recommended on Frontend Engineer.
How you know you are there
Work in any language. Each checkpoint ends with something you can run or observe, so you can check it yourself.
- Checkpoint 1Self-check
Downloading
Done when: Your browser fetches a page over HTTPS with a socket and a TLS library, follows redirects and prints the text.
- Checkpoint 2Self-check
Drawing
Done when: Pages render in a window with word wrapping and scrolling.
- Checkpoint 3Self-check
HTML
Done when: An HTML parser builds a tree that handles implicit tags, and a test prints the tree for tricky inputs.
- Checkpoint 4Self-check
CSS and layout
Done when: Block and inline layout apply fonts, colours and margins from a stylesheet, and a simple page looks close to a real browser's rendering.
- Checkpoint 5Self-check
Navigation
Done when: Clicking links navigates, with back and forward history.
Stretch goals
- Run JavaScript with an embedded engine and expose a small DOM API.
- Time each pipeline stage and add incremental re-layout.
Step-by-step guides
Pick one in a language you know (tutorial languages: Python, Rust). They open on the author’s site.
- Python
Browser Engineering(external site)
Python: a complete textbook, from sockets to JavaScript and accessibility.
- Rust
Let's build a browser engine(external site)
Rust: a toy layout engine covering HTML, CSS, style, layout and paint.
Practice builds are self-paced: Tech Atlas does not track them or count them as evidence. To show a skill, take its knowledge check from the skill page.
Tutorials come from codecrafters-io/build-your-own-x (CC0, snapshot of 2026-07-14, commit aa17439; links checked on 2026-10-19). Each tutorial belongs to its author and keeps its own licence; Tech Atlas links to it and does not host it. Briefs, checkpoints and the mapping to skills are Tech Atlas editorial drafts.