prompt_id
int64 1
100k
| prompt
stringclasses 5
values | example
stringclasses 5
values |
---|---|---|
98,601 | 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>
|
98,602 | 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>
|
98,603 | 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>
|
98,604 | 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>
|
98,605 | 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>
|
98,606 | 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>
|
98,607 | 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>
|
98,608 | 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>
|
98,609 | 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>
|
98,610 | 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>
|
98,611 | 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>
|
98,612 | 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>
|
98,613 | 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>
|
98,614 | 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>
|
98,615 | 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>
|
98,616 | 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>
|
98,617 | 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>
|
98,618 | 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>
|
98,619 | 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>
|
98,620 | 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>
|
98,621 | 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>
|
98,622 | 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>
|
98,623 | 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>
|
98,624 | 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>
|
98,625 | 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>
|
98,626 | 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>
|
98,627 | 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>
|
98,628 | 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>
|
98,629 | 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>
|
98,630 | 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>
|
98,631 | 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>
|
98,632 | 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>
|
98,633 | 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>
|
98,634 | 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>
|
98,635 | 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>
|
98,636 | 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>
|
98,637 | 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>
|
98,638 | 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>
|
98,639 | 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>
|
98,640 | 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>
|
98,641 | 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>
|
98,642 | 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>
|
98,643 | 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>
|
98,644 | 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>
|
98,645 | 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>
|
98,646 | 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>
|
98,647 | 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>
|
98,648 | 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>
|
98,649 | 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>
|
98,650 | 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>
|
98,651 | 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>
|
98,652 | 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>
|
98,653 | 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>
|
98,654 | 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>
|
98,655 | 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>
|
98,656 | 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>
|
98,657 | 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>
|
98,658 | 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>
|
98,659 | 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>
|
98,660 | 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>
|
98,661 | 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>
|
98,662 | 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>
|
98,663 | 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>
|
98,664 | 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>
|
98,665 | 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>
|
98,666 | 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>
|
98,667 | 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>
|
98,668 | 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>
|
98,669 | 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>
|
98,670 | 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>
|
98,671 | 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>
|
98,672 | 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>
|
98,673 | 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>
|
98,674 | 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>
|
98,675 | 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>
|
98,676 | 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>
|
98,677 | 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>
|
98,678 | 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>
|
98,679 | 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>
|
98,680 | 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>
|
98,681 | 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>
|
98,682 | 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>
|
98,683 | 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>
|
98,684 | 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>
|
98,685 | 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>
|
98,686 | 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>
|
98,687 | 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>
|
98,688 | 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>
|
98,689 | 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>
|
98,690 | 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>
|
98,691 | 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>
|
98,692 | 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>
|
98,693 | 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>
|
98,694 | 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>
|
98,695 | 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>
|
98,696 | 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>
|
98,697 | 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>
|
98,698 | 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>
|
98,699 | 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>
|
98,700 | 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>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.