prompt_id
int64 1
100k
| prompt
stringclasses 5
values | example
stringclasses 5
values |
---|---|---|
701 | 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>
|
702 | 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>
|
703 | 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>
|
704 | 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>
|
705 | 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>
|
706 | 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>
|
707 | 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>
|
708 | 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>
|
709 | 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>
|
710 | 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>
|
711 | 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>
|
712 | 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>
|
713 | 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>
|
714 | 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>
|
715 | 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>
|
716 | 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>
|
717 | 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>
|
718 | 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>
|
719 | 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>
|
720 | 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>
|
721 | 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>
|
722 | 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>
|
723 | 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>
|
724 | 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>
|
725 | 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>
|
726 | 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>
|
727 | 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>
|
728 | 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>
|
729 | 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>
|
730 | 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>
|
731 | 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>
|
732 | 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>
|
733 | 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>
|
734 | 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>
|
735 | 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>
|
736 | 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>
|
737 | 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>
|
738 | 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>
|
739 | 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>
|
740 | 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>
|
741 | 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>
|
742 | 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>
|
743 | 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>
|
744 | 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>
|
745 | 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>
|
746 | 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>
|
747 | 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>
|
748 | 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>
|
749 | 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>
|
750 | 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>
|
751 | 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>
|
752 | 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>
|
753 | 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>
|
754 | 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>
|
755 | 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>
|
756 | 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>
|
757 | 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>
|
758 | 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>
|
759 | 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>
|
760 | 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>
|
761 | 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>
|
762 | 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>
|
763 | 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>
|
764 | 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>
|
765 | 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>
|
766 | 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>
|
767 | 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>
|
768 | 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>
|
769 | 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>
|
770 | 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>
|
771 | 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>
|
772 | 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>
|
773 | 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>
|
774 | 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>
|
775 | 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>
|
776 | 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>
|
777 | 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>
|
778 | 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>
|
779 | 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>
|
780 | 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>
|
781 | 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>
|
782 | 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>
|
783 | 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>
|
784 | 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>
|
785 | 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>
|
786 | 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>
|
787 | 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>
|
788 | 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>
|
789 | 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>
|
790 | 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>
|
791 | 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>
|
792 | 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>
|
793 | 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>
|
794 | 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>
|
795 | 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>
|
796 | 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>
|
797 | 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>
|
798 | 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>
|
799 | 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>
|
800 | 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.