prompt_id
int64
1
100k
prompt
stringclasses
5 values
example
stringclasses
5 values
501
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>
502
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>
503
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>
504
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>
505
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>
506
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>
507
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>
508
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>
509
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>
510
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>
511
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>
512
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>
513
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>
514
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>
515
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>
516
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>
517
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>
518
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>
519
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>
520
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>
521
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>
522
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>
523
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>
524
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>
525
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>
526
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>
527
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>
528
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>
529
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>
530
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>
531
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>
532
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>
533
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>
534
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>
535
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>
536
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>
537
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>
538
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>
539
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>
540
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>
541
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>
542
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>
543
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>
544
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>
545
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>
546
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>
547
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>
548
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>
549
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>
550
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>
551
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>
552
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>
553
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>
554
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>
555
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>
556
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>
557
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>
558
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>
559
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>
560
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>
561
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>
562
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>
563
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>
564
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>
565
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>
566
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>
567
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>
568
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>
569
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>
570
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>
571
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>
572
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>
573
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>
574
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>
575
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>
576
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>
577
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>
578
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>
579
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>
580
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>
581
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>
582
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>
583
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>
584
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>
585
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>
586
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>
587
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>
588
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>
589
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>
590
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>
591
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>
592
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>
593
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>
594
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>
595
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>
596
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>
597
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>
598
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>
599
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>
600
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>