HTML Viewer
View, edit and preview HTML code in real-time
HTML Code
0 characters
Preview
How to Use the HTML Viewer
Enter HTML Code - Type or paste your HTML code in the editor on the left.
Real-time Preview - See your HTML rendered in real-time in the preview panel on the right.
Load Sample - Click the "Load Sample" button to see an example HTML code.
Copy or Download - Use the buttons to copy the HTML code or download it as an HTML file.
Auto Update - Toggle the "Auto Update Preview" switch to control whether the preview updates automatically as you type.
HTML Tips
Basic HTML Structure
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Common HTML Elements
<h1>
to<h6>
- Headings<p>
- Paragraph<a>
- Link<img>
- Image<div>
- Division/Container<span>
- Inline container<ul>
,<ol>
,<li>
- Lists