mradermacher/Raptor-X5-UIGEN-GGUF
Updated
•
694
•
2
prompt_id
int64 1
100k
| prompt
stringclasses 5
values | example
stringclasses 5
values |
---|---|---|
1 | Design an HTML form with fields for name, email, and message, styled with CSS. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random HTML Form</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
form { background-color: white; padding: 2em; margin: 2em auto; max-width: 400px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
label { display: block; margin-bottom: 0.5em; font-weight: bold; }
input, textarea { width: 100%; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 0.7em 1.5em; background-color: #333; color: white; border: none; border-radius: 4px; cursor: pointer; }
button:hover { background-color: #555; }
</style>
</head>
<body>
<form>
<label for='name'>Name:</label>
<input type='text' id='name' name='name'>
<label for='email'>Email:</label>
<input type='email' id='email' name='email'>
<label for='message'>Message:</label>
<textarea id='message' name='message' rows='4'></textarea>
<button type='submit'>Submit</button>
</form>
</body>
</html>
|
2 | 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>
|
3 | 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>
|
4 | 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>
|
5 | 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>
|
6 | 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>
|
7 | 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>
|
8 | 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>
|
9 | 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>
|
10 | 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>
|
11 | 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>
|
12 | 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>
|
13 | 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>
|
14 | 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>
|
15 | 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>
|
16 | 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>
|
17 | 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>
|
18 | 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>
|
19 | 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>
|
20 | 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>
|
21 | 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>
|
22 | 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>
|
23 | 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>
|
24 | 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>
|
25 | 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>
|
26 | 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>
|
27 | 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>
|
28 | 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>
|
29 | 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>
|
30 | 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>
|
31 | 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>
|
32 | 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>
|
33 | 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>
|
34 | 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>
|
35 | 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>
|
36 | 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>
|
37 | 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>
|
38 | 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>
|
39 | 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>
|
40 | 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>
|
41 | 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>
|
42 | 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>
|
43 | 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>
|
44 | 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>
|
45 | 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>
|
46 | 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>
|
47 | 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>
|
48 | 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>
|
49 | 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>
|
50 | 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>
|
51 | 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>
|
52 | 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>
|
53 | 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>
|
54 | 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>
|
55 | 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>
|
56 | 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>
|
57 | 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>
|
58 | 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>
|
59 | 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>
|
60 | 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>
|
61 | 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>
|
62 | 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>
|
63 | 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>
|
64 | 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>
|
65 | 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>
|
66 | 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>
|
67 | 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>
|
68 | 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>
|
69 | 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>
|
70 | 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>
|
71 | 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>
|
72 | 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>
|
73 | 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>
|
74 | 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>
|
75 | 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>
|
76 | 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>
|
77 | 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>
|
78 | 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>
|
79 | 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>
|
80 | 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>
|
81 | 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>
|
82 | 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>
|
83 | 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>
|
84 | 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>
|
85 | 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>
|
86 | 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>
|
87 | 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>
|
88 | 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>
|
89 | 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>
|
90 | 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>
|
91 | 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>
|
92 | 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>
|
93 | 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>
|
94 | 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>
|
95 | 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>
|
96 | 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>
|
97 | 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 | Create a responsive layout using Flexbox with multiple boxes. |
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Random Flexbox Layout</title>
<style>
body { font-family: Arial, sans-serif; background-color: #f4f4f4; }
.container { display: flex; flex-wrap: wrap; gap: 1em; padding: 1em; }
.box { background-color: #333; color: white; padding: 2em; text-align: center; flex: 1 1 200px; }
</style>
</head>
<body>
<div class='container'>
<div class='box'>Box 1</div>
<div class='box'>Box 2</div>
<div class='box'>Box 3</div>
<div class='box'>Box 4</div>
</div>
</body>
</html>
|
99 | 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>
|
100 | 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>
|
No dataset card yet