Build it in HTML

One technique per guide, each with a live example you can try, edit and copy.

Guides 301-360 of 848. Page 6 of 15.

lottie react example
Lottie in React and in a single HTML file
The lottie-react example needs npm and a bundler. The same Lottie animation runs in one HTML file with one script tag. Live examples, common mistakes, share link.
mjml email
MJML email in one HTML file
Write an MJML email and compile it to responsive email HTML inside one HTML file, with no install. Live examples, the section and column rule, and fixes.
anime js html
Anime.js in a single HTML file
Animate elements with Anime.js in a single HTML file: one script tag, then animate(). Live examples to edit, fixes for version 3 code, and how to share it as a link.
babylon js html
Babylon.js in a single HTML file
Babylon.js in one HTML file: a canvas, one script tag and a short script. Live 3D examples, the mistakes behind a blank page, and how to share it as a link.
openlayers react
OpenLayers in a single HTML file, and in React
OpenLayers is a JavaScript map library. See the smallest working map in one HTML file, the React version of the same code, and fixes for blank maps.
webpack npm
Webpack from npm: from install to one HTML page
Install webpack from npm, bundle your JavaScript, and end up with an HTML page that runs. Live examples, the config to copy, and fixes for a blank page.
websocket html
WebSocket in HTML: connect, send and receive with JavaScript
WebSocket in an HTML page: the browser API, a live example you can run, the code to copy, the states, reconnecting, and fixes for common errors.
webrtc not working in chrome
WebRTC in HTML and JavaScript: a minimal example and why it fails
WebRTC is the browser API for peer-to-peer video and data. A single-file HTML example that connects two peers, plus fixes for signaling, call order and STUN/TURN.
pixi js html
PixiJS in a single HTML file, no install and no build step
Use PixiJS in one HTML file: a script tag, await app.init(), shapes, text, taps and a ticker. Live examples, the mistakes that break it, and how to share the page.
stackblitz html
StackBlitz HTML: a working page in one index.html
What StackBlitz is, how to run a single index.html in it, add a library with one script tag, avoid the common mistakes, and share the finished page as a link.
marked js npm
Marked JS: turn Markdown into HTML in a single file, no npm
Marked is a JavaScript Markdown parser. You do not need npm to use it in a web page: one script tag and marked.parse() do it. Live examples, safe output, fixes.
mathjax html
MathJax in an HTML file: LaTeX formulas with one script tag
Add MathJax to a single HTML file with one script tag. A working example, the delimiters it reads, the mistakes that leave raw LaTeX on screen, and how to share it.
recharts react
Recharts in a single HTML file, without a build step
Use Recharts without npm or a build step: four script tags, one React root and a chart in a single HTML file. Live examples, the usual errors and a share link.
how to master js
Matter.js in one HTML file: a physics toy to practice JavaScript
Matter.js is a 2D physics engine for JavaScript. See the smallest working HTML file, live examples you can drag, the usual mistakes, and how to share it as a link.
jsx example in react
A JSX example in React, in one HTML file
A JSX example you can run from one HTML file: React and Babel from a CDN, a live counter, the three JSX rules, a finished list app, and fixes for blank pages.
nuxt examples ui
Nuxt UI examples you can run in a single HTML file
Nuxt needs a build, but the Vue it runs on loads from one script tag. Live UI examples (card, form, tabs, modal), the code to copy, and the mistakes to avoid.
shadcn ui
shadcn/ui in a single HTML file: what carries over
shadcn/ui is React code, not a script tag. See what you can reuse in one HTML file (theme tokens, Tailwind classes, dark mode), what you cannot, and a live demo.
mapbox api
Mapbox in a single HTML file: the script, the token and the map
Put a Mapbox GL JS map in one HTML file: the script and CSS, your public access token, a sized div and [longitude, latitude] order. Live checks and common fixes.
indexeddb chrome
IndexedDB in Chrome: a database inside one HTML file
IndexedDB is the browser database a plain HTML page can use. Smallest working example, how to see it in Chrome DevTools, the common mistakes, and how to share it.
highcharts angular
Highcharts and Angular: start with one HTML file
Highcharts is a JavaScript charting library. Draw a chart in one HTML file with a script tag, then move the same options into Angular. Live examples and fixes.
vite not working with tailwind
Vite not working with Tailwind: fix it, or use one HTML file
Vite is a build tool. When Tailwind styles do nothing in it, three causes explain almost every case. Fix them, or skip the build with one working HTML file.
wordpress custom html css
WordPress custom HTML and CSS: test it in one file, then paste it in
Write and test HTML, CSS and JavaScript in one file, then split it into WordPress's Custom HTML block and Additional CSS. Live examples, code and fixes.
pico css
Pico CSS in a single HTML file
Style a plain HTML page with Pico CSS using one link tag. The smallest working file, classless vs standard, dark mode, a finished form page, and common fixes.
gradio html
Gradio and HTML: what you can put in one file
Gradio is a Python library, so it has no HTML file of its own. What gr.HTML does, how to embed an app in a page, and a working one-file HTML version to copy.
esbuild html
esbuild and HTML: from source files to one working page
esbuild does not read HTML, it bundles JavaScript and CSS. See a working esbuild call inside a plain HTML file, then turn source files into one shareable page.
daisyui not working react
daisyUI not working? Start with one HTML file
daisyUI is a set of Tailwind CSS component classes. See it work in one HTML file with two CDN tags, then use that page to find why it fails in React.
tauri html
Tauri and HTML: one file, a browser, then a desktop app
Tauri turns a folder of HTML, CSS and JavaScript into a desktop app. Build the page as one HTML file, test it in a browser, then wire it to Tauri.
game engine javascript
A JavaScript game engine in one HTML file
A JavaScript game engine is a library you load with one script tag. A working Phaser game in a single HTML file, the mistakes that break it, and how to share it.
codesandbox html
CodeSandbox HTML: put the whole project in one file
Turn a CodeSandbox HTML project into one file that runs anywhere: the smallest working example, the mistakes that break it, and how to share it as a link.
json prism
Highlight JSON in HTML with Prism.js
Colour JSON in a single HTML file with Prism.js. The smallest working page, the extra JSON file people forget, formatting with JavaScript, and common fixes.
firebase hosting html
Firebase Hosting for a single HTML file
Put one HTML file on Firebase Hosting: the smallest working page, the four commands, what firebase.json does, the common mistakes, and a no-setup link option.
jsfiddle react
JSFiddle React: the same app as one HTML file
How React runs in JSFiddle and how to get the same app into one HTML file: three script tags and a div. Live examples, the common errors, and a share link.
example postcss config js
Example postcss.config.js, and how to run PostCSS in one HTML file
A working postcss.config.js example, what each line does, and how to run PostCSS inside one HTML file with a CDN import. Live demos, plugin order, common errors.
swiper html
Swiper in a single HTML file: slider markup, CDN links and init code
Add Swiper, the JavaScript touch slider, to one HTML file from a CDN. A minimal working page, live options, mistakes that leave it blank, and how to share it.
html service mark
The service mark symbol (℠) in HTML
Write the service mark symbol ℠ in HTML with a numeric character reference. No named entity exists. Live examples, a snippet builder and fixes for it not showing.
framer motion react
Framer Motion in a single HTML file
Framer Motion is now called Motion. Run it from a single HTML file with script tags, with live examples for animate() and the React motion component, plus fixes.
phaser js
Phaser JS in a single HTML file
Run Phaser JS from a single HTML file with one CDN script tag. A live example, a finished game to copy, the mistakes that give a blank page, and how to share it.
astro html
Astro HTML: from an Astro page to one HTML file you can open
Astro is a web framework that builds pages into plain HTML. See what the build writes, a single-file example that runs, the common mistakes, and how to share it.
echarts formatter html
Use the ECharts formatter in a single HTML file
Use the ECharts formatter in one HTML file: string templates, functions, tooltip HTML and escaping, axis labels. Live examples to edit, fixes, and a share link.
battery html report
Make a battery report page in HTML with JavaScript
Show the battery level and charging state in a web page with navigator.getBattery(). A live example, the code to copy, and why the call fails or returns nothing.
electron html
Electron and HTML: put a web page in a desktop window
Electron shows your HTML file in a desktop window. The three files you need, a page that runs in a browser, the mistakes that blank the window, and how to share it.
sass html
Use Sass in a single HTML file
A browser cannot read Sass. Compile .scss to CSS, or compile it inside one HTML file with the sass package from a CDN. Live examples, code and fixes.
apexcharts angular
ApexCharts in one HTML file, with or without Angular
ApexCharts needs Angular only if your app is Angular. In one HTML file it is a script tag, a div and render(). Live examples, code to copy, and the usual mistakes.
folium export html
Export a folium map to HTML and share it
Save a folium map as one HTML file with m.save, see what the file contains, fix a grey or empty map, and share it as a link. Live Leaflet examples to try.
lit html 3.2.1
lit-html in one HTML file: import, render, update
Use lit-html 3.2.1 in a single HTML file: a pinned CDN import, live examples with render() and a LitElement tag, and fixes for the usual mistakes.
ionic in html
How to use Ionic in a single HTML file
Use Ionic Framework in a plain HTML file with two CDN tags and no build step. Live examples, code to copy, common mistakes, and how to share the page as a link.
notification html
Show a browser notification from an HTML page
HTML has no notification tag. Use the JavaScript Notification API: ask permission on a click, then show one. Live examples, copyable code and fixes.
mdn svgsvgelement
SVGSVGElement: the JavaScript object behind the svg tag
SVGSVGElement is the JavaScript object behind an inline svg tag. A short guide with live examples: size, viewBox, click coordinates, animation clock.
glitch html
Glitch and HTML: keep your project as one file that still runs
Glitch ended project hosting on July 8, 2025. Fold index.html, style.css and script.js into one HTML file, try a CSS glitch text effect, and share it as a link.
payment javascript html page
Add a payment sheet to an HTML page with JavaScript
Add a browser payment sheet to an HTML page with the Payment Request API. A minimal example to run, the request object, the errors show() throws, and a fallback.
eventsource js
EventSource in JavaScript: receive server-sent events in HTML
EventSource in JavaScript opens a one-way stream from a server to your page. Live examples, the stream format, reconnecting, and the mistakes to avoid.
events html
HTML events: what they are and how to handle them
What HTML events are, how onclick and addEventListener differ, which events you will use most, and why a handler runs on page load. Live examples to try and copy.
notifications html
Show browser notifications from an HTML page
Show a browser notification from an HTML page with the Notification API: ask permission on a click, pass a title, body and tag, and fix denied and phone errors.
animate on scroll js
Animate on scroll with the AOS library, in one HTML file
Add animate on scroll to a single HTML file with the AOS library: a stylesheet, a script, AOS.init() and a data-aos attribute. Live examples, settings and fixes.
amp html
AMP HTML: the smallest valid page and the rules that trip people up
AMP HTML is a restricted subset of HTML. See the smallest valid page, try a live rule checker, learn why images need width and height, and share a plain version.
submit event js
The submit event in JavaScript: when it fires and what it gives you
How the JavaScript submit event works: when it fires, what event.submitter tells you, why preventDefault must come first, and one listener for many forms.
pyscript html
PyScript in an HTML file: the smallest working page
PyScript in a single HTML file: the two head tags, a script of type py, the mistakes that leave a page blank, and why a share link cannot run it.
latex not working in jupyter notebook
Show LaTeX math in a single HTML file with KaTeX
Show LaTeX math in one HTML file with KaTeX: the three tags to copy, the delimiters it finds, live examples, and the mistakes that leave raw dollar signs on screen.
solidjs vs react
SolidJS vs React, and how to run Solid in one HTML file
How SolidJS differs from React, and how to run Solid in a single HTML file with no build step. Live examples, the three imports, common mistakes and a share link.
parcel viewer vt html5
Build a parcel viewer in one HTML5 file
Build a parcel viewer in one HTML5 file: draw parcels from GeoJSON as SVG, click for details, zoom, and share it as a link. Also what the Parcel bundler is.