HTML preview: see your page as you type
Type or paste HTML and CSS, and the page appears in the preview as you type. It runs entirely in your browser, so nothing you type is sent anywhere. When it looks right, download it as index.html and style.css, ready to upload.
Preview
Scripts are switched off in the preview, so JavaScript won’t run here. Upload the page to test it.
How to use it
- Edit the example, or paste your own code. The HTML box takes a whole page or just the part inside
<body>. The CSS box is applied to the preview automatically. - Check it at phone width. Most visitors arrive on a phone. If the text runs off the side, add
<meta name="viewport" content="width=device-width, initial-scale=1">to your page’s<head>(the preview adds it when you paste body-only HTML). - Download the files. You get
index.htmlandstyle.css. Keep them in one folder with your images. - Upload them. In DirectAdmin’s File Manager, open
public_html, delete the defaultindex.htmland upload yours. Upload a website, step by step.
Your work is kept in this browser between visits, so you can come back to it. It isn’t stored anywhere else.
Why scripts don’t run here
The preview is sandboxed: JavaScript is switched off. That makes it safe to paste code you found online without it doing anything to your browser. To test JavaScript, upload the page to a hosting account or open the downloaded file in your browser.
Next steps
- New to HTML? Build your first page from scratch explains every tag in the example.
- Want a head start? The free HTML starter templates are complete, responsive pages you can edit here.
- Not sure where your files go? What public_html is for.
- Hosting a whole HTML site? HTML website hosting covers folders, uploads and contact forms.
Ready to put it online?
Upload index.html and style.css to public_html and it’s live on your own domain. Your first 30 days of hosting are free with no card, then it’s £0.99 a month if you continue.
- £0 today
- No card required
- £0.99 a month afterwards
- Cancel any time