prompt_id
int64
1
100k
prompt
stringclasses
5 values
example
stringclasses
5 values
2,001
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>
2,002
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>
2,003
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>
2,004
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>
2,005
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>
2,006
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>
2,007
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>
2,008
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>
2,009
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>
2,010
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>
2,011
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>
2,012
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>
2,013
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>
2,014
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>
2,015
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>
2,016
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>
2,017
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>
2,018
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>
2,019
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>
2,020
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>
2,021
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>
2,022
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>
2,023
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>
2,024
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>
2,025
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>
2,026
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>
2,027
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>
2,028
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>
2,029
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>
2,030
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>
2,031
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>
2,032
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>
2,033
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>
2,034
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>
2,035
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>
2,036
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>
2,037
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>
2,038
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>
2,039
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>
2,040
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>
2,041
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>
2,042
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>
2,043
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>
2,044
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>
2,045
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>
2,046
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>
2,047
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>
2,048
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>
2,049
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>
2,050
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>
2,051
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>
2,052
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>
2,053
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>
2,054
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>
2,055
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>
2,056
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>
2,057
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>
2,058
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>
2,059
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>
2,060
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>
2,061
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>
2,062
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>
2,063
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>
2,064
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>
2,065
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>
2,066
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>
2,067
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>
2,068
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>
2,069
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>
2,070
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>
2,071
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>
2,072
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>
2,073
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>
2,074
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>
2,075
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>
2,076
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>
2,077
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>
2,078
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>
2,079
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>
2,080
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>
2,081
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>
2,082
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>
2,083
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>
2,084
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>
2,085
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>
2,086
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>
2,087
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>
2,088
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>
2,089
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>
2,090
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>
2,091
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>
2,092
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>
2,093
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>
2,094
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>
2,095
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>
2,096
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>
2,097
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>
2,098
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>
2,099
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>
2,100
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>