prompt_id
int64
1
100k
prompt
stringclasses
5 values
example
stringclasses
5 values
1,701
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>
1,702
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>
1,703
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>
1,704
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>
1,705
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>
1,706
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>
1,707
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>
1,708
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>
1,709
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>
1,710
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>
1,711
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>
1,712
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>
1,713
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>
1,714
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>
1,715
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>
1,716
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>
1,717
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>
1,718
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>
1,719
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>
1,720
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>
1,721
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>
1,722
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>
1,723
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>
1,724
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>
1,725
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>
1,726
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>
1,727
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>
1,728
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>
1,729
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>
1,730
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>
1,731
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>
1,732
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>
1,733
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>
1,734
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>
1,735
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>
1,736
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>
1,737
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>
1,738
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>
1,739
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>
1,740
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>
1,741
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>
1,742
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>
1,743
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>
1,744
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>
1,745
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>
1,746
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>
1,747
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>
1,748
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>
1,749
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>
1,750
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>
1,751
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>
1,752
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>
1,753
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>
1,754
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>
1,755
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>
1,756
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>
1,757
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>
1,758
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>
1,759
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>
1,760
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>
1,761
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>
1,762
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>
1,763
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>
1,764
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>
1,765
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>
1,766
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>
1,767
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>
1,768
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>
1,769
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>
1,770
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>
1,771
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>
1,772
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>
1,773
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>
1,774
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>
1,775
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>
1,776
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>
1,777
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>
1,778
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>
1,779
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>
1,780
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>
1,781
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>
1,782
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>
1,783
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>
1,784
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>
1,785
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>
1,786
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>
1,787
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>
1,788
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>
1,789
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>
1,790
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>
1,791
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>
1,792
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>
1,793
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>
1,794
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>
1,795
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>
1,796
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>
1,797
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>
1,798
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>
1,799
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>
1,800
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>