prompt_id
int64 1
100k
| prompt
stringclasses 5
values | example
stringclasses 5
values |
---|---|---|
101 | 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>
|
102 | 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>
|
103 | 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>
|
104 | 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>
|
105 | 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>
|
106 | 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>
|
107 | 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>
|
108 | 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>
|
109 | 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>
|
110 | 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>
|
111 | 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>
|
112 | 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>
|
113 | 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>
|
114 | 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>
|
115 | 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>
|
116 | 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>
|
117 | 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>
|
118 | 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>
|
119 | 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>
|
120 | 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>
|
121 | 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>
|
122 | 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>
|
123 | 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>
|
124 | 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>
|
125 | 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>
|
126 | 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>
|
127 | 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>
|
128 | 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>
|
129 | 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>
|
130 | 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>
|
131 | 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>
|
132 | 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>
|
133 | 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>
|
134 | 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>
|
135 | 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>
|
136 | 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>
|
137 | 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>
|
138 | 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>
|
139 | 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>
|
140 | 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>
|
141 | 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>
|
142 | 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>
|
143 | 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>
|
144 | 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>
|
145 | 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>
|
146 | 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>
|
147 | 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>
|
148 | 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>
|
149 | 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>
|
150 | 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>
|
151 | 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>
|
152 | 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>
|
153 | 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>
|
154 | 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>
|
155 | 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>
|
156 | 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>
|
157 | 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>
|
158 | 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>
|
159 | 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>
|
160 | 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>
|
161 | 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>
|
162 | 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>
|
163 | 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>
|
164 | 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>
|
165 | 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>
|
166 | 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>
|
167 | 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>
|
168 | 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>
|
169 | 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>
|
170 | 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>
|
171 | 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>
|
172 | 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>
|
173 | 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>
|
174 | 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>
|
175 | 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>
|
176 | 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>
|
177 | 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>
|
178 | 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>
|
179 | 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>
|
180 | 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>
|
181 | 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>
|
182 | 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>
|
183 | 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>
|
184 | 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>
|
185 | 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>
|
186 | 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>
|
187 | 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>
|
188 | 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>
|
189 | 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>
|
190 | 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>
|
191 | 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>
|
192 | 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>
|
193 | 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>
|
194 | 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>
|
195 | 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>
|
196 | 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>
|
197 | 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>
|
198 | 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>
|
199 | 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>
|
200 | 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>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.