HTML Separator & Combiner
SEPARATE FILES
COMBINE INTO ONE
Drag & Drop HTML file or click box below
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Test Page</title> <style> body { font-family: Arial, sans-serif; background-color: #f0f0f0; margin: 0; padding: 20px; } .container { max-width: 800px; margin: 0 auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); } h1 { color: #333; text-align: center; } button { background-color: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; } button:hover { background-color: #0056b3; } .message { margin-top: 20px; padding: 15px; background-color: #e9ecef; border-radius: 4px; display: none; } </style> </head> <body> <div class="container"> <h1>Test Page</h1> <button id="testBtn">Click Me!</button> <div class="message" id="message"> Button was clicked! </div> </div> <script> document.addEventListener('DOMContentLoaded', function() { const btn = document.getElementById('testBtn'); const message = document.getElementById('message'); btn.addEventListener('click', function() { message.style.display = 'block'; message.style.backgroundColor = '#d4edda'; message.style.borderColor = '#c3e6cb'; setTimeout(function() { message.style.display = 'none'; }, 3000); }); }); </script> </body> </html>
Separate Components
index.html
Copy
Download
style.css
Copy
Download
script.js
Copy
Download
Merge into Single File
Project-Single.html
Copy
Download