text stringlengths 241 1.68k |
|---|
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>Sample Page</title>
<style>
.box {
width: 100px;
height: 100px;
background-color: blue;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
[/INST] Here is the cleaned code
Sample Page - A blue box with a... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
[/INST] Here is the cleaned code
My Website - Displays a heading "Hello, World!" |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>Form Example</title>
</head>
<body>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name">
<input type="submit" value="Submit">
</form>
</body>
</html>
[/INST] Here is the cleaned code
Form Example ... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>Image Gallery</title>
<style>
.image {
width: 200px;
height: 150px;
object-fit: cover;
}
</style>
</head>
<body>
<img class="image" src="image1.jpg" alt="Image 1">
<img class="image" src="image2.jpg" alt="Image 2">
</... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>Responsive Design</title>
<style>
@media (max-width: 600px) {
body {
font-size: 14px;
}
}
</style>
</head>
<body>
<h1>Welcome to Our Website</h1>
<p>This is a sample paragraph.</p>
</body>
</html>
[/INST] Here is the... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>JavaScript Example</title>
<script>
function showMessage() {
alert("Hello, World!");
}
</script>
</head>
<body>
<button onclick="showMessage()">Click Me</button>
</body>
</html>
[/INST] Here is the cleaned code
JavaScript ... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>Navigation Menu</title>
<style>
.menu-item {
display: inline-block;
margin: 0 10px;
}
</style>
</head>
<body>
<nav>
<a class="menu-item" href="#">Home</a>
<a class="menu-item" href="#">About</a>
<a class="menu-item"... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>Animated Button</title>
<style>
.btn {
background-color: blue;
color: white;
padding: 10px 20px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: darkblue;
}
</style>
... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>Embedded Video</title>
</head>
<body>
<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>
</body>
</html>
[/INST] Here is the cleaned code
Embedded Video - Embeds a... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html>
<html>
<head>
<title>CSS Grid Layout</title>
<style>
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
</style>
</head>
<body>
<div class="grid-container">
<!-- Grid items here -->
</div>
</body>
</htm... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Accordion</title> <style> .accordion { display: none; } </style> <script> function toggleAccordion() { const accordion = document.querySelector('.accordion'); accordion.style.display = (accordion.style.display === 'block') ? 'none' : 'b... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Modal</title> <style> .modal { display: none; } </style> <script> function openModal() { const modal = document.querySelector('.modal'); modal.style.display = 'block'; } function closeModal() { const modal = document.querySelector('.mod... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Dropdown Menu</title> <style> .dropdown { display: none; } </style> <script> function toggleDropdown() { const dropdown = document.querySelector('.dropdown'); dropdown.style.display = (dropdown.style.display === 'block') ? 'none' : 'blo... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Carousel</title> <style> .carousel { width: 300px; overflow: hidden; } .carousel-inner { display: flex; transition: transform 0.5s; } .carousel-item { flex: 0 0 100%; } </style> <script> let currentIndex = 0; function showSlide(index) { ... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Progress Bar</title> <style> .progress-bar { width: 100%; background-color: #ccc; } .progress { width: 0; height: 20px; background-color: #4caf50; transition: width 0.5s; } </style> <script> function increaseProgress() { const progressB... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Tooltip</title> <style> .tooltip { position: relative; display: inline-block; } .tooltip-text { visibility: hidden; width: 120px; background-color: #333; color: #fff; text-align: center; padding: 5px; border-radius: 5px; position: absol... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Scroll Animation</title> <style> .box { width: 50px; height: 50px; background-color: blue; } </style> <script> window.addEventListener('scroll', () => { const box = document.querySelector('.box'); const scrollTop = window.scrollY; box.s... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Toggle Switch</title> <style> .toggle { width: 50px; height: 30px; background-color: #ccc; border-radius: 15px; position: relative; } .toggle-slider { width: 26px; height: 26px; background-color: white; border-radius: 50%; position: abs... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Counter</title> <script> let count = 0; function increment() { count++; updateCount(); } function decrement() { if (count > 0) { count--; updateCount(); } } function updateCount() { const countDisplay = document.querySelector('.count-dis... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Animated Background</title> <style> body { margin: 0; overflow: hidden; } .background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; animation: rotate 20s linear infinite; background: linear-gradient(-45deg, ... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Drag and Drop</title> <style> .drag-container { width: 300px; height: 300px; border: 2px dashed #ccc; display: flex; align-items: center; justify-content: center; } .drag-item { width: 100px; height: 100px; background-color: #3498db; col... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Sticky Navbar</title> <style> body { margin: 0; } .navbar { background-color: #333; color: white; position: sticky; top: 0; } </style> </head> <body> <div class="navbar"> <a href="#">Home</a> <a href="#">About</a> <a href="#">Services</a... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Audio Player</title> </head> <body> <audio controls> <source src="song.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> </body> </html>
[/INST] Here is the cleaned code
Immerse yourself in an audio expe... |
<s>[INST] Can you please clean the below code
<!DOCTYPE html> <html> <head> <title>Video Player</title> </head> <body> <video controls> <source src="video.mp4" type="video/mp4"> Your browser does not support the video tag. </video> </body> </html>
[/INST] Here is the cleaned code
Enjoy video content with this HTML ex... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Accordion</title> <style> .accordion { display: none; } </style> <script> function toggleAccordion() { const accordion = document.querySelector('.accordion'); accordion.style.display = (accordion.style.display === 'block') ? 'none' ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Modal</title> <style> .modal { display: none; } </style> <script> function openModal() { const modal = document.querySelector('.modal'); modal.style.display = 'block'; } function closeModal() { const modal = document.querySelector('... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Dropdown Menu</title> <style> .dropdown { display: none; } </style> <script> function toggleDropdown() { const dropdown = document.querySelector('.dropdown'); dropdown.style.display = (dropdown.style.display === 'block') ? 'none' : ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Carousel</title> <style> .carousel { width: 300px; overflow: hidden; } .carousel-inner { display: flex; transition: transform 0.5s; } .carousel-item { flex: 0 0 100%; } </style> <script> let currentIndex = 0; function showSlide(inde... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Progress Bar</title> <style> .progress-bar { width: 100%; background-color: #ccc; } .progress { width: 0; height: 20px; background-color: #4caf50; transition: width 0.5s; } </style> <script> function increaseProgress() { const progr... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Tooltip</title> <style> .tooltip { position: relative; display: inline-block; } .tooltip-text { visibility: hidden; width: 120px; background-color: #333; color: #fff; text-align: center; padding: 5px; border-radius: 5px; position: a... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Scroll Animation</title> <style> .box { width: 50px; height: 50px; background-color: blue; } </style> <script> window.addEventListener('scroll', () => { const box = document.querySelector('.box'); const scrollTop = window.scrollY; b... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Video Player</title> </head> <body> <video controls> <source src="video.mp4" type="video/mp4"> Your browser does not support the video tag. </video> </body> </html>
[/INST] Here is the cleaned code
Enjoy video content with this HTML... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>SVG Icon</title> <style> .icon { fill: #333; width: 50px; height: 50px; } </style> </head> <body> <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"> <circle cx="25" cy="25" r="20"/> </svg> </body> </html>
[/IN... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Canvas Drawing</title> <style> canvas { border: 1px solid black; } </style> </head> <body> <canvas id="myCanvas" width="200" height="100"></canvas> <script> const canvas = document.getElementById('myCanvas'); const context = canvas.... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Local Storage</title> <script> localStorage.setItem('username', 'john_doe'); const savedUsername = localStorage.getItem('username'); </script> </head> <body> <p>Saved Username: <span id="savedUsername"></span></p> <script> document.... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Geolocation</title> <script> function showPosition(position) { const latitude = position.coords.latitude; const longitude = position.coords.longitude; document.getElementById('location').textContent = `Latitude: ${latitude}, Longitu... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Responsive Typography</title> <style> body { font-size: 16px; } @media (max-width: 768px) { body { font-size: 14px; } } </style> </head> <body> <p>This is a paragraph with responsive typography.</p> </body> </html>
[/INST] Here is t... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Collapsible Panels</title> <style> .panel { display: none; } </style> <script> function togglePanel() { const panel = document.querySelector('.panel'); panel.style.display = (panel.style.display === 'block') ? 'none' : 'block'; } </... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Scrollspy Navigation</title> <style> body { height: 2000px; } .nav-link { display: block; margin: 20px; } .section { height: 400px; border: 1px solid #ccc; margin-bottom: 20px; } </style> </head> <body> <nav> <ul> <li><a class="nav-... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Dropdown Select</title> <select> <option value="option1">Option 1</option> <option value="option2">Option 2</option> <option value="option3">Option 3</option> </select> </head> <body> <p>Select an option:</p> </body> </html>
[/INST]... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Image Lightbox</title> <style> .lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); justify-content: center; align-items: center; } .lightbox img { max-width: ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Multi-step Form</title> <style> .step { display: none; } </style> <script> let currentStep = 0; function showStep(stepNumber) { const steps = document.querySelectorAll('.step'); steps[currentStep].style.display = 'none'; currentStep... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>CSS Animations</title> <style> @keyframes slide { from { transform: translateX(0); } to { transform: translateX(200px); } } .animated-box { width: 100px; height: 100px; background-color: #4caf50; animation: slide 2s ease infinite al... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Progressive Web App (PWA)</title> <link rel="manifest" href="/manifest.json"> <script> if ('serviceWorker' in navigator) { navigator.serviceWorker.register('/service-worker.js'); } </script> </head> <body> <p>This is a Progressive W... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Web Accessibility (a11y)</title> <style> .visually-hidden { position: absolute; overflow: hidden; clip: rect(0 0 0 0); width: 1px; height: 1px; white-space: nowrap; } </style> </head> <body> <p>This is visible text.</p> <p class="vi... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>WebSockets</title> <script> const socket = new WebSocket('ws://example.com'); socket.addEventListener('open', (event) => { console.log('WebSocket connection established.'); }); socket.addEventListener('message', (event) => { console... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Client-side Routing</title> <script> function loadContent(page) { fetch(page + '.html') .then(response => response.text()) .then(data => { document.getElementById('content').innerHTML = data; }) .catch(error => { console.error('Erro... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Notification System</title> <style> .notification { background-color: #f2f2f2; border: 1px solid #ddd; padding: 10px; } .success { color: green; } .error { color: red; } </style> <script> function showNotification(type, message) { c... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Image Lazy Loading</title> <style> img { width: 100%; height: auto; } </style> </head> <body> <img src="image.jpg" alt="Lazy Loaded Image" loading="lazy"> </body> </html>
[/INST] Here is the cleaned code
Delay the loading of images ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Viewport Units (vh/vw)</title> <style> .box { width: 50vw; height: 50vh; background-color: #4caf50; } </style> </head> <body> <div class="box"></div> </body> </html>
[/INST] Here is the cleaned code
Utilize viewport-based units for ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Embed Maps</title> </head> <body> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3223.680245759502!2d-122.08385368429478!3d37.386051979849775!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x808580b9b84a206f%3... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>CSS Variables (Custom Properties)</title> <style> :root { --primary-color: #007bff; } .element { color: var(--primary-color); } </style> </head> <body> <div class="element">This text has a custom color.</div> </body> </html>
[/INST]... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Form Autocomplete</title> <style> input[type="text"] { width: 200px; padding: 5px; } </style> </head> <body> <label for="username">Username:</label> <input type="text" id="username" name="username" autocomplete="username"> </body> <... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Responsive Images</title> </head> <body> <picture> <source media="(max-width: 600px)" srcset="image-small.jpg"> <source media="(max-width: 1200px)" srcset="image-medium.jpg"> <img src="image-large.jpg" alt="Responsive Image"> </pict... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Mouse Events</title> <style> .box { width: 100px; height: 100px; background-color: #4caf50; } </style> <script> const box = document.querySelector('.box'); box.addEventListener('mouseover', () => { box.style.backgroundColor = 'blue'... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Touch Events</title> <style> .box { width: 100px; height: 100px; background-color: #4caf50; } </style> <script> const box = document.querySelector('.box'); box.addEventListener('touchstart', () => { box.style.backgroundColor = 'blue... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Drag and Drop</title> <style> .drag-item { width: 100px; height: 100px; background-color: #4caf50; } </style> <script> const dragItem = document.querySelector('.drag-item'); dragItem.addEventListener('dragstart', (event) => { event.... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Media Queries</title> <style> @media (max-width: 768px) { body { font-size: 14px; } } @media (min-width: 769px) and (max-width: 1024px) { body { font-size: 16px; } } </style> </head> <body> <p>Responsive font size using media querie... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Custom Fonts</title> <style> @font-face { font-family: 'CustomFont'; src: url('custom-font.woff2') format('woff2'); } body { font-family: 'CustomFont', sans-serif; } </style> </head> <body> <p>This text uses a custom font.</p> </bod... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Geometric Shapes</title> <style> .circle { width: 100px; height: 100px; background-color: #4caf50; border-radius: 50%; } .triangle { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; bor... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Form Validation</title> <style> input:valid { border-color: green; } input:invalid { border-color: red; } </style> </head> <body> <form> <label for="email">Email:</label> <input type="email" id="email" name="email" required> <button... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>SVG Animations</title> <style> .animated { fill: #4caf50; animation: bounce 2s infinite; } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } } </style> </head> <body> <svg class="animat... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Inline Styles</title> </head> <body> <h1 style="color: #4caf50;">Hello, World!</h1> <p style="font-size: 18px;">This is a paragraph with inline styles.</p> </body> </html>
[/INST] Here is the cleaned code
Apply styles directly to HT... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Geolocation Map</title> <style> #map { height: 400px; width: 100%; } </style> </head> <body> <div id="map"></div> <script> function initMap() { const map = new google.maps.Map(document.getElementById('map'), { center: { lat: -34.397... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Animated Background</title> <style> body { background: linear-gradient(45deg, #4caf50, #007bff); background-size: 400% 400%; animation: gradientAnimation 10s ease infinite; } @keyframes gradientAnimation { 0% { background-position: ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Draggable Elements</title> <style> .draggable { width: 100px; height: 100px; background-color: #4caf50; position: absolute; cursor: grab; } </style> <script> const draggable = document.querySelector('.draggable'); let offsetX, offse... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Page Transitions</title> <style> body { margin: 0; padding: 0; font-family: Arial, sans-serif; overflow-x: hidden; } .page { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; transition: trans... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Form Styling</title> <style> input[type="text"], input[type="password"] { width: 300px; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 5px; } input[type="submit"] { background-color: #4caf50; color: white... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Progress Bar</title> <style> .progress-container { width: 300px; background-color: #f2f2f2; border: 1px solid #ccc; border-radius: 5px; } .progress-bar { width: 0; height: 20px; background-color: #4caf50; border-radius: 5px; } </sty... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Tabbed Content</title> <style> .tabs { display: flex; } .tab-button { padding: 10px 20px; background-color: #f2f2f2; border: 1px solid #ccc; border-radius: 5px 5px 0 0; cursor: pointer; } .tab-button.active { background-color: #4caf... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>SVG Icons</title> <style> .icon { fill: #4caf50; width: 24px; height: 24px; } </style> </head> <body> <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path d="M0 0h24v24H0z" fill="none"/> <path d="M12 2C6.4... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Image Carousel</title> <style> .carousel { width: 300px; overflow: hidden; } .carousel-inner { display: flex; transition: transform 0.5s; } .carousel-item { flex: 0 0 100%; } </style> <script> let currentIndex = 0; const items = doc... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Hover Effects</title> <style> .card { width: 200px; height: 300px; background-color: #f2f2f2; overflow: hidden; position: relative; border-radius: 5px; } .image { width: 100%; height: 100%; transition: transform 0.3s; } .card:hover ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Image Comparison Slider</title> <style> .image-container { position: relative; width: 500px; height: 300px; overflow: hidden; } .image-container img { width: 100%; height: auto; } .slider { position: absolute; top: 0; left: 50%; tra... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Collapsible Sidebar</title> <style> body { margin: 0; font-family: Arial, sans-serif; } .sidebar { height: 100vh; width: 250px; position: fixed; top: 0; left: -250px; background-color: #333; transition: left 0.3s; } .sidebar.open { ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Sticky Header</title> <style> body { margin: 0; font-family: Arial, sans-serif; } .header { background-color: #333; color: white; padding: 10px; position: sticky; top: 0; } .content { padding: 20px; } </style> </head> <body> <div cl... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Typing Animation</title> <style> .typing-text { font-size: 24px; font-family: Arial, sans-serif; overflow: hidden; border-right: 3px solid #4caf50; white-space: nowrap; margin: 0 auto; animation: typing 3s steps(30, end), blink-care... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Image Lightbox</title> <style> .lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); justify-content: center; align-items: center; } .lightbox img { max-width: ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Video Background</title> <style> body { margin: 0; padding: 0; font-family: Arial, sans-serif; overflow: hidden; } .video-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; } video { width: 100%; h... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Image Lazy Loading</title> <style> img { max-width: 100%; height: auto; } </style> <script> const images = document.querySelectorAll('img[data-src]'); const observer = new IntersectionObserver(entries => { entries.forEach(entry => {... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Custom Checkboxes</title> <style> .checkbox-container { display: flex; align-items: center; margin-bottom: 10px; } input[type="checkbox"] { display: none; } .custom-checkbox { width: 20px; height: 20px; border: 2px solid #4caf50; bo... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Responsive Navigation Menu</title> <style> body { margin: 0; font-family: Arial, sans-serif; } .navbar { background-color: #333; overflow: hidden; } .navbar a { float: left; display: block; color: white; text-align: center; padding:... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Animated Buttons</title> <style> .btn { display: inline-block; padding: 10px 20px; background-color: #4caf50; color: white; text-align: center; text-decoration: none; border-radius: 5px; cursor: pointer; transition: background-color... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Accordion Menu</title> <style> .accordion { display: none; } .accordion-label { cursor: pointer; } .accordion-content { display: none; padding: 10px; border: 1px solid #ccc; } .accordion-content.active { display: block; } </style> <... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Scroll Animations</title> <style> .box { width: 100px; height: 100px; background-color: #4caf50; opacity: 0; transform: translateY(50px); transition: opacity 0.5s, transform 0.5s; } .box.animate { opacity: 1; transform: translateY(0... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Image Hover Effects</title> <style> .image-container { position: relative; width: 300px; overflow: hidden; } .image { width: 100%; height: auto; } .image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; back... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Audio Player</title> <style> .audio-player { display: flex; align-items: center; } audio { margin-right: 10px; } .audio-controls button { background-color: #4caf50; color: white; border: none; border-radius: 5px; padding: 5px 10px; ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Responsive Tables</title> <style> table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } th, td { padding: 10px; text-align: left; border-bottom: 1px solid #ddd; } th { background-color: #f2f2f2; } @media screen and ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Form Validation</title> <style> .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 5px; font-weight: bold; } .form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius:... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Parallax Scrolling</title> <style> body { margin: 0; font-family: Arial, sans-serif; } .parallax-container { height: 500px; background-image: url('background.jpg'); background-attachment: fixed; background-position: center; backgrou... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Tooltip</title> <style> .tooltip { position: relative; display: inline-block; } .tooltip-text { display: none; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); background-color: #333; color: white; padding: 5px... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Gradient Background</title> <style> body { margin: 0; font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(45deg, #4caf50, #007bff); color: white; } ... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Image Slider</title> <style> .slider { width: 500px; overflow: hidden; } .slider-inner { display: flex; transition: transform 0.5s; } .slide { flex: 0 0 100%; } img { width: 100%; height: auto; } </style> <script> let currentIndex =... |
<s>[INST] Can you please clean the below code
html <!DOCTYPE html> <html> <head> <title>Form Styling</title> <style> body { margin: 0; font-family: Arial, sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f2f2f2; } .form-container { background-color: white; paddi... |
No dataset card yet
- Downloads last month
- 7