See your web code in action instantly!
Write, run & share HTML code online using OneCompiler's HTML Code Editor for free. It's robust and feature-rich, running the latest version of HTML5.
The editor shows sample boilerplate code and supports styles in <style>
tags and scripts in <script>
tags within the HTML.
HTML (Hyper Text Markup Language) is the standard markup language for web pages, created by Tim Berners-Lee in 1991. Almost every website uses HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
for headings<p>
for paragraphs<a href="...">
<img src="..." />
<ul>
or <ol>
with <li>
<a href="https://compiler.zeroday.fun">HTML Online Compiler</a>
CSS defines how HTML appears. You can control layout, color, fonts, and responsiveness by including <style>
tags within your HTML or linking to external stylesheets (though this editor focuses on inline CSS for simplicity).
<style>
body {
padding: 25px;
font-family: sans-serif;
background-color: #f4f4f4;
}
.title {
color: #228B22;
font-family: Candara;
}
</style>
<h1 class="title">Green Title</h1>
<p>This is a paragraph with some styling.</p>
<table>
- Table container<tr>
- Table row<th>
- Table header<td>
- Table data<caption>
- Table titleUse JavaScript for interactivity in HTML by including <script>
tags within your HTML or linking to external scripts (though this editor focuses on inline JS for simplicity).
<button onclick="alert('Hello!')">Click Me</button>
<script>
function greet() {
alert('Hello from JavaScript!');
}
</script>
You can host your compiler project at compiler.zeroday.fun using GitHub Pages, Vercel, or Netlify by uploading this content.