prompt_id
int64
1
100k
prompt
stringclasses
5 values
example
stringclasses
5 values
99,801
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>
99,802
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>
99,803
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>
99,804
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>
99,805
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>
99,806
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>
99,807
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>
99,808
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>
99,809
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>
99,810
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>
99,811
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>
99,812
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>
99,813
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>
99,814
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>
99,815
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>
99,816
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>
99,817
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>
99,818
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>
99,819
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>
99,820
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>
99,821
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>
99,822
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>
99,823
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>
99,824
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>
99,825
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>
99,826
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>
99,827
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>
99,828
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>
99,829
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>
99,830
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>
99,831
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>
99,832
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>
99,833
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>
99,834
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>
99,835
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>
99,836
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>
99,837
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>
99,838
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>
99,839
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>
99,840
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>
99,841
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>
99,842
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>
99,843
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>
99,844
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>
99,845
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>
99,846
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>
99,847
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>
99,848
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>
99,849
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>
99,850
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>
99,851
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>
99,852
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>
99,853
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>
99,854
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>
99,855
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>
99,856
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>
99,857
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>
99,858
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>
99,859
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>
99,860
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>
99,861
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>
99,862
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>
99,863
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>
99,864
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>
99,865
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>
99,866
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>
99,867
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>
99,868
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>
99,869
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>
99,870
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>
99,871
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>
99,872
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>
99,873
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>
99,874
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>
99,875
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>
99,876
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>
99,877
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>
99,878
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>
99,879
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>
99,880
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>
99,881
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>
99,882
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>
99,883
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>
99,884
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>
99,885
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>
99,886
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>
99,887
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>
99,888
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>
99,889
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>
99,890
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>
99,891
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>
99,892
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>
99,893
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>
99,894
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>
99,895
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>
99,896
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>
99,897
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>
99,898
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>
99,899
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>
99,900
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>