prompt_id
int64 1
100k
| prompt
stringclasses 5
values | example
stringclasses 5
values |
---|---|---|
99,501 | 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,502 | 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,503 | 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,504 | 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,505 | 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,506 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,507 | 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,508 | 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,509 | Design an HTML form with fields for name, email, and message, styled with CSS. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random HTML Form</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
label { display: block; margin-bottom: 0.5em; font-weight: bold; }
input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; }
button:hover { background-color: #555; }
</style>
</head>
<body>
<form>
<label for='name'>Name:</label>
<input type='text' id='name' name='name'>
<label for='email'>Email:</label>
<input type='email' id='email' name='email'>
<label for='message'>Message:</label>
<textarea id='message' name='message' rows='4'></textarea>
<button type='submit'>Submit</button>
</form>
</body>
</html>
|
99,510 | 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,511 | 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,512 | 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,513 | 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,514 | 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,515 | 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,516 | 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,517 | 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,518 | 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,519 | 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,520 | 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,521 | 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,522 | 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,523 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,524 | Create a responsive layout using Flexbox with multiple boxes. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random Flexbox Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; }
.box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; }
</style>
</head>
<body>
<div class='container'>
<div class='box'>Box 1</div>
<div class='box'>Box 2</div>
<div class='box'>Box 3</div>
<div class='box'>Box 4</div>
</div>
</body>
</html>
|
99,525 | 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,526 | Create a basic HTML layout with a header, navigation, and main content area. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random Basic HTML</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
header { background-color: #333; color: white; padding: 1em; text-align: center; }
nav { display: flex; justify-content: center; background-color: #444; }
nav a { color: white; padding: 1em; text-decoration: none; }
main { padding: 1em; }
</style>
</head>
<body>
<header><h1>Welcome to My Website</h1></header>
<nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav>
<main><p>This is a random basic HTML layout with CSS styling.</p></main>
</body>
</html>
|
99,527 | 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,528 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,529 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,530 | 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,531 | 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,532 | 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,533 | 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,534 | 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,535 | 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,536 | Create a basic HTML layout with a header, navigation, and main content area. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random Basic HTML</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
header { background-color: #333; color: white; padding: 1em; text-align: center; }
nav { display: flex; justify-content: center; background-color: #444; }
nav a { color: white; padding: 1em; text-decoration: none; }
main { padding: 1em; }
</style>
</head>
<body>
<header><h1>Welcome to My Website</h1></header>
<nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav>
<main><p>This is a random basic HTML layout with CSS styling.</p></main>
</body>
</html>
|
99,537 | Create a basic HTML layout with a header, navigation, and main content area. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random Basic HTML</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
header { background-color: #333; color: white; padding: 1em; text-align: center; }
nav { display: flex; justify-content: center; background-color: #444; }
nav a { color: white; padding: 1em; text-decoration: none; }
main { padding: 1em; }
</style>
</head>
<body>
<header><h1>Welcome to My Website</h1></header>
<nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav>
<main><p>This is a random basic HTML layout with CSS styling.</p></main>
</body>
</html>
|
99,538 | 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,539 | 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,540 | 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,541 | 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,542 | 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,543 | 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,544 | 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,545 | 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,546 | 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,547 | 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,548 | 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,549 | 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,550 | 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,551 | 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,552 | 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,553 | 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,554 | 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,555 | Create an HTML page with a button that shows an alert when clicked, using JavaScript. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random JS Interaction</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.container { text-align: center; margin-top: 50px; }
button { padding: 1em 2em; font-size: 1em; }
</style>
</head>
<body>
<div class='container'>
<button id='alertButton'>Click Me!</button>
</div>
<script>
document.getElementById('alertButton').addEventListener('click', function() {
alert('Button was clicked!');
});
</script>
</body>
</html>
|
99,556 | 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,557 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,558 | Create a responsive layout using Flexbox with multiple boxes. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random Flexbox Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; }
.box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; }
</style>
</head>
<body>
<div class='container'>
<div class='box'>Box 1</div>
<div class='box'>Box 2</div>
<div class='box'>Box 3</div>
<div class='box'>Box 4</div>
</div>
</body>
</html>
|
99,559 | 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,560 | 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,561 | 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,562 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,563 | 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,564 | 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,565 | 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,566 | 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,567 | Create a basic HTML layout with a header, navigation, and main content area. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random Basic HTML</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
header { background-color: #333; color: white; padding: 1em; text-align: center; }
nav { display: flex; justify-content: center; background-color: #444; }
nav a { color: white; padding: 1em; text-decoration: none; }
main { padding: 1em; }
</style>
</head>
<body>
<header><h1>Welcome to My Website</h1></header>
<nav><a href='#'>Home</a><a href='#'>About</a><a href='#'>Contact</a></nav>
<main><p>This is a random basic HTML layout with CSS styling.</p></main>
</body>
</html>
|
99,568 | 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,569 | Create an HTML page with a button that shows an alert when clicked, using JavaScript. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random JS Interaction</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.container { text-align: center; margin-top: 50px; }
button { padding: 1em 2em; font-size: 1em; }
</style>
</head>
<body>
<div class='container'>
<button id='alertButton'>Click Me!</button>
</div>
<script>
document.getElementById('alertButton').addEventListener('click', function() {
alert('Button was clicked!');
});
</script>
</body>
</html>
|
99,570 | 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,571 | 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,572 | 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,573 | 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,574 | 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,575 | 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,576 | 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,577 | 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,578 | 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,579 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,580 | Design an HTML form with fields for name, email, and message, styled with CSS. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random HTML Form</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
label { display: block; margin-bottom: 0.5em; font-weight: bold; }
input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; }
button:hover { background-color: #555; }
</style>
</head>
<body>
<form>
<label for='name'>Name:</label>
<input type='text' id='name' name='name'>
<label for='email'>Email:</label>
<input type='email' id='email' name='email'>
<label for='message'>Message:</label>
<textarea id='message' name='message' rows='4'></textarea>
<button type='submit'>Submit</button>
</form>
</body>
</html>
|
99,581 | 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,582 | 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,583 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,584 | 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,585 | 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,586 | Design an HTML form with fields for name, email, and message, styled with CSS. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random HTML Form</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
label { display: block; margin-bottom: 0.5em; font-weight: bold; }
input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; }
button:hover { background-color: #555; }
</style>
</head>
<body>
<form>
<label for='name'>Name:</label>
<input type='text' id='name' name='name'>
<label for='email'>Email:</label>
<input type='email' id='email' name='email'>
<label for='message'>Message:</label>
<textarea id='message' name='message' rows='4'></textarea>
<button type='submit'>Submit</button>
</form>
</body>
</html>
|
99,587 | 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,588 | Create a responsive layout using Flexbox with multiple boxes. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random Flexbox Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; }
.box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; }
</style>
</head>
<body>
<div class='container'>
<div class='box'>Box 1</div>
<div class='box'>Box 2</div>
<div class='box'>Box 3</div>
<div class='box'>Box 4</div>
</div>
</body>
</html>
|
99,589 | 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,590 | 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,591 | 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,592 | Design a grid layout with CSS Grid and multiple items. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random CSS Grid Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1em; padding: 1em; }
.grid-item { background-color: #333; color: white; padding: 2em; text-align: center; }
</style>
</head>
<body>
<div class='grid-container'>
<div class='grid-item'>Item 1</div>
<div class='grid-item'>Item 2</div>
<div class='grid-item'>Item 3</div>
<div class='grid-item'>Item 4</div>
</div>
</body>
</html>
|
99,593 | 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,594 | 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,595 | 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,596 | 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,597 | 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,598 | Design an HTML form with fields for name, email, and message, styled with CSS. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random HTML Form</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
label { display: block; margin-bottom: 0.5em; font-weight: bold; }
input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; }
button:hover { background-color: #555; }
</style>
</head>
<body>
<form>
<label for='name'>Name:</label>
<input type='text' id='name' name='name'>
<label for='email'>Email:</label>
<input type='email' id='email' name='email'>
<label for='message'>Message:</label>
<textarea id='message' name='message' rows='4'></textarea>
<button type='submit'>Submit</button>
</form>
</body>
</html>
|
99,599 | 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,600 | 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>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.