prompt_id
int64
1
100k
prompt
stringclasses
5 values
example
stringclasses
5 values
98,301
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,302
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,303
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,304
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,305
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,306
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,307
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,308
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,309
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,310
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,311
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,312
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,313
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,314
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,315
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,316
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,317
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,318
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,319
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,320
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,321
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,322
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,323
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,324
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,325
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,326
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,327
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,328
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,329
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,330
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,331
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,332
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,333
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,334
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,335
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,336
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,337
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,338
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,339
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,340
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,341
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,342
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,343
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,344
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,345
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,346
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,347
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,348
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,349
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,350
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,351
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,352
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,353
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,354
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,355
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,356
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,357
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,358
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,359
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,360
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,361
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,362
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,363
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,364
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,365
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,366
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,367
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,368
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,369
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,370
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,371
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,372
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,373
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,374
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,375
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,376
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,377
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,378
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,379
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,380
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,381
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,382
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,383
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,384
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,385
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,386
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,387
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,388
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>
98,389
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,390
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,391
Design an HTML form with fields for name, email, and message, styled with CSS.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random HTML Form</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } label { display: block; margin-bottom: 0.5em; font-weight: bold; } input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; } button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #555; } </style> </head> <body> <form> <label for='name'>Name:</label> <input type='text' id='name' name='name'> <label for='email'>Email:</label> <input type='email' id='email' name='email'> <label for='message'>Message:</label> <textarea id='message' name='message' rows='4'></textarea> <button type='submit'>Submit</button> </form> </body> </html>
98,392
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,393
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,394
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,395
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,396
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,397
Create a basic HTML layout with a header, navigation, and main content area.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Basic HTML</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } header { background-color: #333; color: white; padding: 1em; text-align: center; } nav { display: flex; justify-content: center; background-color: #444; } nav a { color: white; padding: 1em; text-decoration: none; } main { padding: 1em; } </style> </head> <body> <header><h1>Welcome to My Website</h1></header> <nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav> <main><p>This is a random basic HTML layout with CSS styling.</p></main> </body> </html>
98,398
Design a grid layout with CSS Grid and multiple items.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random CSS Grid Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; } .grid-item { background-color: #333; color: white; padding: 2em; text-align: center; } </style> </head> <body> <div class='grid-container'> <div class='grid-item'>Item 1</div> <div class='grid-item'>Item 2</div> <div class='grid-item'>Item 3</div> <div class='grid-item'>Item 4</div> </div> </body> </html>
98,399
Create a responsive layout using Flexbox with multiple boxes.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random Flexbox Layout</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; } .box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; } </style> </head> <body> <div class='container'> <div class='box'>Box 1</div> <div class='box'>Box 2</div> <div class='box'>Box 3</div> <div class='box'>Box 4</div> </div> </body> </html>
98,400
Create an HTML page with a button that shows an alert when clicked, using JavaScript.
<!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Random JS Interaction</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; } .container { text-align: center; margin-top: 50px; } button { padding: 1em 2em; font-size: 1em; } </style> </head> <body> <div class='container'> <button id='alertButton'>Click Me!</button> </div> <script> document.getElementById('alertButton').addEventListener('click', function() { alert('Button was clicked!'); }); </script> </body> </html>