HTML Viewer Pro
Advanced HTML editor and preview tool
Upload
Download
Copy
Beautify
New Tab
100%
Valid HTML
Encoding: UTF-8
Lines: 65
Characters: 1856
Split View
Code Only
Preview Only
HTML Code
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Sample HTML Document</title> <style> body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; line-height: 1.6; } .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 2rem; border-radius: 10px; text-align: center; margin-bottom: 2rem; } .card { border: 1px solid #ddd; border-radius: 8px; padding: 1.5rem; margin: 1rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .highlight { background-color: #fff3cd; padding: 0.5rem; border-left: 4px solid #ffc107; margin: 1rem 0; } </style> </head> <body> <div class="header"> <h1>Welcome to HTML Viewer</h1> <p>A powerful tool for viewing and editing HTML content</p> </div> <div class="card"> <h2>Features</h2> <ul> <li>Live HTML preview</li> <li>Syntax highlighting</li> <li>Zoom controls</li> <li>Error validation</li> <li>Export functionality</li> </ul> </div> <div class="highlight"> <strong>Tip:</strong> Edit the HTML code to see live changes in the preview! </div> <div class="card"> <h3>Interactive Elements</h3> <button onclick="alert('Hello from HTML!')">Click Me</button> <input type="text" placeholder="Type something..." style="margin-left: 10px; padding: 5px;"> </div> </body> </html>
Live Preview