HTML Online Editor
HTML Editor
With our online HTML editoryou can edit HTMLCSS and JavaScript codeand view the result in your browser.
Example
<!DOCTYPE html>
<html>
<title>HTML Tutorial</title>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
This is a Heading
This is a paragraph.
Click on the "Try it Yourself" button to see how it works.
Publish Your Code
If you want to save your HTMLCSS and JavaScript codeand create your own websitecheck out W3Schools Spaces.
W3Schools Spaces is a website-building tool that lets you make and share your own website.
You can change the website's look and how it works by editing the code right in your web browser.
It's easy to use and doesn't require any setup:
The code editor is packed with features to help you achieve more:
- Templates: Start from scratch or use a template
- Cloud-based: no installations required. You only need your browser
- Terminal & Log: debug and troubleshoot your code easily
- File Navigator: switch between files inside the code editor
- And much more!
Learn Faster
Practice is key to mastering codingand the best way to put your HTML knowledge into practice is by getting practical with code.
Use W3Schools Spaces to buildtest and deploy code.
The code editor lets you write and practice different types of computer languages. It includes HTML/CSS/JavaScriptbut you can use it for other languages toosuch as PHPPythonNode.etc.
Learn MoreIf you don't know HTMLwe suggest that you read our HTML Tutorial from scratch.
<> .templates { display: flex; align-items: center; justify-content: center; flex-flow: row wrap; } .templates-item { margin: 10px; font-size: 30px; } >
Build Powerful Websites
You can also use the code editor in W3School Spaces to build frontend or full-stack websites from scratch.
Or you can use the 60+ templates available and save time:




Create your Spaces account today and explore them all!
Learn MoreShare It With The World
Host and publish your websites in no time with W3School Spaces.
W3Schools subdomain and SSL certificate are included with W3School Spaces. An SSL certificate makes your website safe and secure. It also helps people trust your website and makes it easier to find it online.
Want a custom domain for your website?
You can buy a domain or transfer an existing one and connect it to your space.
Learn MoreHow Does It Work?
Get started in a few clicks with W3School Spaces.