How to Publish HTML
Single files, or separate HTML, CSS and JavaScript.
Single HTML file
Paste a full document that starts with <!DOCTYPE html>. CSS in <style> tags and JavaScript in <script> tags work as usual.
Separate files
Open Advanced and choose "Add CSS & JS". This creates style.css and script.js and links them from index.html for you. You can add more files such as about.html or images with "Add files".
Good to know
- index.html is required and is shown at your page address.
- Only static files are supported. PHP, Python, Node.js and databases are not.
- Pages are served in a sandbox. Code that needs localStorage, cookies or same-origin requests will not work.