# JustHTML Playground

A pure Python HTML5 parser that just works - GitHub

Python Environment Loading Pyodide...
<!DOCTYPE html> <html> <head> <title>Example Page</title> </head> <body> <header> <nav> <ul> <li><a href="/" class="active">Home</a></li> <li><a href="/about">About</a></li> <li><a href="/contact">Contact</a></li> </ul> </nav> </header> <main> <article> <h1>Welcome to JustHTML</h1> <p class="intro">A <strong>pure Python</strong> HTML5 parser.</p> <p>It passes all 9,200+ official html5lib tests.</p> </article> <aside> <h2>Features</h2> <ul> <li>CSS Selectors</li> <li>Tree Traversal</li> <li>Pretty Printing</li> </ul> </aside> </main> <footer> <p>© 2024 Example</p> </footer> </body> </html>

Note: The URL must support CORS. Try APIs or sites with permissive CORS headers.

### Playground Mode

CSS Selector:
CSS Selector (optional - leave empty for whole document):
CSS Selector (optional - leave empty for whole document):
Output 0 matches
Results will appear here...

### Example Selectors

About JustHTML: A pure Python HTML5 parser with zero dependencies. It implements the official WHATWG HTML5 specification exactly and passes all 9,200+ tests in the official html5lib-tests suite. Learn more on GitHub