text
stringlengths 68
4.92k
|
---|
[INST] <> Write a HTML web page with a heading, paragraph, and a form with two input fields, one for name and one for age. <> [/INST] <html>
<head>
<title>Example HTML</title>
</head>
<body>
<h1>Heading</h1>
<p>This is a paragraph.</p>
<form>
Name: <input type="text" name="name" />
Age: <input type="number" name="age" />
<input type="submit" />
</form>
</body>
</html> |
[INST] <> Design a web page with the following HTML elements: (1) Heading, (2) Subheading, (3) Form, (4) Button. <> [/INST] <html>
<head>
<title> My Web Page </title>
</head>
<body>
<h1> Heading </h1>
<h2> Subheading </h2>
<form>
...
</form>
<button> Button </button>
</body>
</html> |
[INST] <> Create an HTML page that displays two columns consisting of the numbers 1 to 10. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Two columns of numbers from 1 to 10</title>
</head>
<body>
<h1>Two columns of numbers from 1 to 10</h1>
<table>
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
<tr>
<td>1</td>
<td>6</td>
</tr>
<tr>
<td>2</td>
<td>7</td>
</tr>
<tr>
<td>3</td>
<td>8</td>
</tr>
<tr>
<td>4</td>
<td>9</td>
</tr>
<tr>
<td>5</td>
<td>10</td>
</tr>
</table>
</body>
</html> |
[INST] <> Create a HTML page with a list of items. <> [/INST] <html>
<head>
<title>My List</title>
</head>
<body>
<h1>My List</h1>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html> |
[INST] <> Create an HTML page that displays "Hello World!" when opened in a web browser. <> [/INST] <html>
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html> |
[INST] <> Generate a HTML page with 3 columns using Bootstrap. <> [/INST] <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bootstrap Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="row">
<div class="col-md-4">
<!-- Your content goes here -->
</div>
<div class="col-md-4">
<!-- Your content goes here -->
</div>
<div class="col-md-4">
<!-- Your content goes here -->
</div>
</div>
</body>
</html> |
[INST] <> Create an HTML page that prints "Hello World!" and displays the examples using a font size of 8px. <> [/INST] <html>
<head>
<title>Hello World!</title>
</head>
<body>
<p style="font-size: 8px;">Hello World!</p>
</body>
</html> |
[INST] <> Update the following HTML page so it displays a simple form. <> <!DOCTYPE html>
<html>
<head>
<title>My Form</title>
</head>
<body>
<!-- Your code goes here! -->
</body>
</html> [/INST] <!DOCTYPE html>
<html>
<head>
<title>My Form</title>
</head>
<body>
<form action="#">
<label for="name">Name:</label>
<input type="text" name="name">
<label for="email">Email:</label>
<input type="text" name="email">
<button>Submit</button>
</form>
</body>
</html> |
[INST] <> Create an HTML page where the main content area has a random background color when the page is loaded. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>RandomBackground</title>
<script>
window.addEventListener("load",function(){
var randomColor = "#"+((1<<24)*Math.random()|0).toString(16);
document.querySelector("body").style.background = randomColor;
});
</script>
</head>
<body>
</body>
</html> |
[INST] <> Write a function in HTML to display a list of students sorted by their final grade. <> var students = [{
name: "Tom",
grade: 90
}, {
name: "Karl",
grade: 75
}, {
name: "Kofi",
grade: 65
}]; [/INST] <html>
<head>
<script>
function sortStudents(students) {
students.sort((a, b) => (a.grade > b.grade) ? 1 : -1);
return students;
}
var sortedStudents = sortStudents(students);
document.write('<ul>');
sortedStudents.forEach(student => {
document.write('<li>' + student.name + ' - ' + student.grade + '</li>');
});
document.write('<ul>');
</script>
</head>
</html> |
[INST] <> Create an HTML page containing two buttons. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Buttons</title>
</head>
<body>
<input type="button" value="Button 1" />
<input type="button" value="Button 2" />
</body>
</html> |
[INST] <> Create an HTML page containing a text field and a button. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Input Form</title>
</head>
<body>
<form>
<input type="text" />
<input type="submit" value="Submit" />
</form>
</body>
</html> |
[INST] <> Create an HTML form in which a user can input text and a button to submit. <> [/INST] <html>
<body>
<form>
<input type="text" name="input">
<input type="submit" value="Submit">
</form>
</body>
</html> |
[INST] <> Create an HTML page that has an input field and a button. When the button is clicked, the text from the input field should be printed to the console. <> [/INST] <html>
<head>
</head>
<body>
<input type="text" id="myInput">
<button onclick="printInput()">Print Input</button>
<script>
function printInput(){
const inputVal = document.getElementById("myInput").value;
console.log(inputVal);
}
</script>
</body>
</html> |
[INST] <> Create an HTML webpage which when opened displays the current date in a paragraph. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Date Page</title>
</head>
<body>
<p>
<?php
echo "Current date: " . date("d-m-Y");
?>
</p>
</body>
</html> |
[INST] <> Create a HTML page with a search bar. <> [/INST] <html>
<body>
<h1>Search Page</h1>
<form action="search.php" type="GET">
<input type="text" name="text"/>
<input type="submit" name="submit" value="Search"/>
</form>
</body>
</html> |
[INST] <> Design a HTML page with a header and 2 sections <> [/INST] <html>
<head>
<title>MyPage</title>
</head>
<body>
<header>
<h1>Welcome to My Page</h1>
</header>
<section>
Content in Section 1
</section>
<section>
Content in Section 2
</section>
</body>
</html> |
[INST] <> Compose an HTML webpage with a title and two paragraphs <> [/INST] <html>
<head>
<title>Webpage Title</title>
</head>
<body>
<h1>Webpage Title</h1>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
</body>
</html> |
[INST] <> Update the following line of HTML code to use semantic tags for optimization. <> <div>Learn HTML Tutorial here</div> [/INST] <div><h1>Learn HTML Tutorial here</h1></div> |
[INST] <> Create an HTML form that, when submitted, displays all the user input on the same page. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>User Input</title>
</head>
<body>
<h1>User Input</h1>
<form action="#" method="post">
<label>Name: </label>
<input type="text" name="name" /><br>
<label>Email: </label>
<input type="email" name="email" /><br>
<label>Country: </label>
<input type="text" name="country" /><br><br>
<input type="submit" value="Submit" name="submit" />
</form>
<?php
if(isset($_POST['submit'])){
$name = $_POST['name'];
$email = $_POST['email'];
$country = $_POST['country'];
echo "<p>Your name is: $name <br>";
echo "Your email is: $email <br>";
echo "Your country is: $country <br></p>";
}
?>
</body>
</html> |
[INST] <> Modify the following HTML code to insert a paragraph with the text "Hello, world!" <> <div>
<h1>This is a heading</h1>
</div> [/INST] <div>
<h1>This is a heading</h1>
<p>Hello, world!</p>
</div> |
[INST] <> Create an HTML page to display a form to enter email and password. <> [/INST] <html>
<head>
<title>Login Form</title>
</head>
<body>
<h1>Login Form</h1>
<form>
Email: <input type="text" name="email" /><br />
Password: <input type="password" name="pwd" /><br />
<input type="submit" value="Submit" />
</form>
</body>
</html> |
[INST] <> Design a web page using HTML and CSS. <> [/INST] <html>
<head>
<title>My webpage</title>
</head>
<body>
<h1>Hello World!</h1>
<p>Welcome to my webpage.</p>
</body>
</html>
<style>
body {
font-family: Arial, sans-serif;
font-size: 16px;
}
</style> |
[INST] <> Write an HTML page to display a given data table. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Table Display</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>21</td>
</tr>
<tr>
<td>Jane</td>
<td>25</td>
</tr>
<tr>
<td>Joe</td>
<td>30</td>
</tr>
</table>
</body>
</html> |
[INST] <> Write an HTML web page that displays a list of three job titles and their corresponding descriptions. <> Developer
Designer
Project Manager
Developer: Responsible for developing applications based on customer requirements
Designer: Designs and implements user interfaces for applications
Project Manager: Manages the project's resources and timelines to ensure successful completion [/INST] <!DOCTYPE html>
<html>
<head>
<title>Job Titles and Descriptions</title>
</head>
<body>
<p>
<ul>
<li>Developer: Responsible for developing applications based on customer requirements</li>
<li>Designer: Designs and implements user interfaces for applications</li>
<li>Project Manager: Manages the project's resources and timelines to ensure successful completion</li>
</ul>
</p>
</body>
</html> |
[INST] <> Create a HTML web page which shows the news for the day. <> [/INST] <html>
<head>
<title>Today's News</title>
</head>
<body>
<h1>Today's News</h1>
<div class="news-container">
<div class="news-article"> ... </div>
<div class="news-article"> ... </div>
<div class="news-article"> ... </div>
</div>
</body>
</html> |
[INST] <> Create a HTML form with a username and password text box <> [/INST] <html>
<body>
<form action="">
<p>
Username: <input type="text" name="username" />
</p>
<p>
Password: <input type="password" name="password" />
</p>
<p>
<input type="submit" value="Submit" />
</p>
</form>
</body>
</html> |
[INST] <> Please generate a html. Can you create an email template for a loyalty program update? It should have a loyalty program overview, tier benefits, a 'Join Now' button, and a progress tracker. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Loyalty Program Update</title>
<style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.loyalty-program-overview{margin-bottom:20px}.tier-benefits{margin-bottom:20px}.join-now-button{margin-bottom:20px}.progress-tracker{background-color:#f1f1f1;height:20px;border-radius:10px}.progress-bar{height:100%;background-color:#007bff;border-radius:10px}</style>
</head>
<body>
<div class="container">
<h1 class="loyalty-program-overview">Welcome to Our New Loyalty Program!</h1>
<p class="tier-benefits">As a member, you'll enjoy exclusive benefits at every tier:</p>
<ul>
<li>Tier 1: Benefit 1</li>
<li>Tier 2: Benefit 2</li>
<li>Tier 3: Benefit 3</li>
</ul>
<p class="join-now-button"><a href="https://example.com/join">Join Now</a> and start earning rewards!</p>
<div class="progress-tracker">
<div class="progress-bar" style="width: 50%;"></div>
</div>
</div>
</body>
</html> |
[INST] <> Construct a HTML page that displays a form with a text field and a submit button. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Sample Form</title>
</head>
<body>
<form action="" method="post">
<input type="text" placeholder="Input..."/>
<input type="submit" value="Submit" />
</form>
</body>
</html> |
[INST] <> Create an HTML page to display the attendance of students in an academic year. <> Attendance Data:
Student Name: John Doe
Attendance in 2020-21 academic year - 91%.
Student Name: Jane Smith
Attendance in 2020-21 academic year - 94%. [/INST] <!DOCTYPE html>
<html>
<head>
<title> Student Attendance </title>
<style type="text/css">
h1 {
font-family: sans-serif;
}
table {
font-family: sans-serif;
border-collapse: collapse;
}
td {
border: 1px solid #dddddd;
padding: 8px;
}
</style>
</head>
<body>
<h1> Student Attendance </h1>
<table>
<tr>
<th>Student Name</th>
<th>Attendance (%)</th>
</tr>
<tr>
<td>John Doe</td>
<td>91%</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>94%</td>
</tr>
</table>
</body>
</html> |
[INST] <> Edit this HTML code to only display the title. <> <html>
<head>
<title>HTML Document</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html> [/INST] <html>
<head>
<title>HTML Document</title>
</head>
</html> |
[INST] <> Create an HTML page that uses the CSS box model to style a text. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Text Styling</title>
<style>
#text {
border: solid 1px black;
padding: 10px;
width: 300px;
margin: 10px auto;
}
</style>
</head>
<body>
<div id="text">
This is some sample text to demonstrate the CSS box model.
</div>
</body>
</html> |
[INST] <> Please generate a html. Can you create an email template for a DIY craft tutorial series? It should have a colorful and creative design, step-by-step instructions, a 'Get Crafting' button, and a section for user-submitted project photos. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>DIY Craft Tutorial Series</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #F5F7FA;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.instructions {
margin-bottom: 20px;
}
.button {
display: inline-block;
background-color: #FF6347;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
}
.project-photos {
margin-bottom: 20px;
}
.project-photos img {
width: 100%;
height: auto;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>DIY Craft Tutorial Series</h1>
<div class="header">
<img src="logo.png" alt="Logo">
</div>
<div class="instructions">
<h2>Step-by-Step Instructions</h2>
<p>Learn how to create beautiful crafts with our detailed tutorials.</p>
</div>
<a href="get-crafting.html" class="button">Get Crafting</a>
<div class="project-photos">
<h2>User-Submitted Project Photos</h2>
<p>Check out these amazing crafts created by our community:</p>
<img src="photo1.jpg" alt="Project Photo">
<img src="photo2.jpg" alt="Project Photo">
<img src="photo3.jpg" alt="Project Photo">
</div>
</div>
</body>
</html> |
[INST] <> Edit this HTML structure to add a footer at the bottom. <> <html>
<head>
<title>My Website</title>
</head>
<body>
</body>
</html> [/INST] <html>
<head>
<title>My Website</title>
</head>
<body>
<footer>
<p>Copyright © 20 |
[INST] <> Modify and update the given HTML code to include a background color. <> <html>
<head>
<title>My Page</title>
</head>
<body>
<h1>My Page</h1>
</body>
</html> [/INST] <html>
<head>
<title>My Page</title>
</head>
<body style="background-color: #FFFFFF;">
<h1>My Page</h1>
</body>
</html> |
[INST] <> Create a web page with two radio buttons and two text inputs <> [/INST] <html>
<head>
<title>Form</title>
</head>
<body>
<h2>Form</h2>
<form action="">
<input type="radio" name="gender" value="male"> Male<br>
<input type="radio" name="gender" value="female"> Female<br><br>
<label for="name">Name: </label>
<input type="text" name="name" id="name"><br>
<label for="age">Age: </label>
<input type="text" name="age" id="age"><br>
<input type="submit" value="Submit">
</form>
</body>
</html> |
[INST] <> Please generate a html. Can you create an email template for a recipe of the week newsletter? It should have mouthwatering food photography, step-by-step recipe instructions, a 'Cook Now' button, and a section for user-submitted recipes. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Recipe of the Week</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #F0F5F9;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.recipe {
background-color: #FFFFFF;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px;
margin-bottom: 20px;
}
.button {
display: inline-block;
background-color: #3498DB;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
}
.user-recipes {
margin-top: 20px;
}
.user-recipe {
background-color: #FFFFFF;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
padding: 20px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>Recipe of the Week</h1>
<div class="header">
<img src="logo.png" alt="Logo">
</div>
<div class="recipe">
<h2>Delicious Dish</h2>
<img src="dish.jpg" alt="Dish">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque quis semper ligula.</p>
<ol>
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ol>
<a href="cook.html" class="button">Cook Now</a>
</div>
<div class="user-recipes">
<h2>User-Submitted Recipes</h2>
<div class="user-recipe">
<h3>User Recipe 1</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque quis semper ligula.</p>
</div>
<div class="user-recipe">
<h3>User Recipe 2</h3>
<p>Nullam ut massa eget felis congue scelerisque. Ut nec metus vitae dui viverra cursus.</p>
</div>
</div>
</div>
</body>
</html> |
[INST] <> Please generate a html. I want an email template for a customer rewards program. It should have a loyalty-themed design, program details, a 'Join Now' button, and personalized rewards based on purchase history. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Customer Rewards Program</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #F4F4F4;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.program-details {
margin-bottom: 20px;
}
.button {
display: inline-block;
background-color: #FF6600;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
}
.rewards {
margin-top: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>Welcome to Our Loyalty Program!</h1>
<div class="header">
<img src="loyalty-themed-design.jpg" alt="Loyalty-Themed Design" />
</div>
<div class="program-details">
<h2>Program Details</h2>
<p>Join our exclusive customer rewards program and enjoy a wide range of benefits. Earn points for every purchase, unlock personalized rewards based on your purchase history, and get access to special promotions and events.</p>
</div>
<a href="join-now.html" class="button">Join Now</a>
<div class="rewards">
<h2>Your Personalized Rewards</h2>
<p>As a valued customer, you're eligible for special rewards tailored to your preferences. Explore our selection of personalized rewards and choose the ones that suit you best.</p>
</div>
</div>
</body>
</html> |
[INST] <> Create a web page in HTML with a heading and a paragraph of text. <> [/INST] <html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Welcome to My Page</h1>
<p>This is my page and I'm so excited for you to visit!</p>
</body>
</html> |
[INST] <> Create a basic HTML page with a heading and a paragraph of text. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>My HTML Page</title>
</head>
<body>
<h1>My HTML Page</h1>
<p>This is a basic HTML page with a heading and a paragraph of text.</p>
</body>
</html> |
[INST] <> Please generate a html. Can you create an email template for an exclusive event invitation? It should have an elegant design, event details, a 'Save My Spot' button, and an option to add to the calendar. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Exclusive Event Invitation</title>
<style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.event-details{margin-bottom:20px}.save-spot-button{display:inline-block;background-color:#007bff;color:#fff;padding:10px 20px;text-decoration:none;border-radius:5px}.save-spot-button:hover{background-color:#0056b3}.add-to-calendar{margin-top:20px}</style>
</head>
<body>
<div class="container">
<h1>Join us at our Exclusive Event!</h1>
<p class="event-details">Date: January 1, 2023<br>Time: 6:00 PM - 9:00 PM<br>Location: Venue Name, City</p>
<a class="save-spot-button" href="https://example.com/event-registration">Save My Spot</a>
<p class="add-to-calendar">Add to Calendar:</p>
<a href="https://example.com/event.ics" download>Download iCal</a> |
<a href="https://example.com/event.ics">Google Calendar</a>
</div>
</body>
</html> |
[INST] <> Using HTML and CSS, design a landing page for a blog website. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>My Blog</title>
<style>
.container{
width:850px;
height: 850px;
background-color: #F5F5FF;
margin:auto;
padding: 20px;
box-shadow: 0px 0px 7px 1px rgba(0,0,0,0.3);
}
.header{
background-color: #323B45;
font-size: 48px;
font-weight: bold;
color: #FFF;
padding-left: 20px;
padding-top: 15p
</style>
</head>
<body>
<div class="container">
<div class="header">Welcome to My Blog</div>
</div>
</body>
</html> |
[INST] <> Create a HTML page with a table showing the contact information of all members in a information. <> [
{ "name": "John", "phone": "123-456-7890", "address": "123 Main Street" },
{ "name": "Sarah", "phone": "098-765-4321", "address": "456 Ocean Drive" }
] [/INST] <!DOCTYPE html>
<html>
<head>
<title>Member Contact Information</title>
</head>
<body>
<h1>Member Contact Information</h1>
<table>
<thead>
<tr><th>Name</th></tr>
<tr><th>Phone</th></tr>
<tr><th>Address</th></tr>
</thead>
<tbody>
<tr><td>John</td><td>123-456-7890</td><td>123 Main Street</td></tr>
<tr><td>Sarah</td><td>098-765-4321</td><td>456 Ocean Drive</td></tr>
</tbody>
</table>
</body>
</html> |
[INST] <> Create an HTML page with a table and list 3 books in it. <> [/INST] <html>
<head>
<title>Books</title>
</head>
<body>
<table>
<thead>
<tr>
<th>Title</th>
<th>Author</th>
</tr>
</thead>
<tbody>
<tr>
<td>The Catcher in the Rye</td>
<td>J. D. Salinger</td>
</tr>
<tr>
<td>The Great Gatsby</td>
<td>F. Scott Fitzgerald</td>
</tr>
<tr>
<td>To Kill a Mockingbird</td>
<td>Harper Lee</td>
</tr>
</tbody>
</table>
</body>
</html> |
[INST] <> Edit the following HTML string so that it sets the background color of the page to "blue". <> <html>
<body>
</body>
</html> [/INST] <html>
<body style="background-color: blue;">
</body>
</html> |
[INST] <> Use HTML and CSS to format a page with three columns, two of which contain two paragraphs each and the last containing a list of 10 items. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>3 Column Layout</title>
<style>
body {
width: 1000px;
margin: 0 auto;
}
.column-left {
float: left;
width: 33%;
}
.column-center {
float: left;
width: 33%;
}
.column-right {
float: left;
width: 33%;
}
</style>
</head>
<body>
<div class="column-left">
<p>Paragraph 1</p>
<p>Paragraph 2</p>
</div>
<div class="column-center">
<p>Paragraph 3</p>
<p>Paragraph 4</p>
</div>
<div class="column-right">
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
<li>Item 7</li>
<li>Item 8</li>
<li>Item 9</li>
<li>Item 10</li>
</ul>
</div>
</body>
</html> |
[INST] <> Please generate a html. I need an email template for a product upsell campaign. It should have a personalized recommendation based on the customer's previous purchase, a 'Upgrade Now' button, and customer testimonials. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Product Upsell Campaign</title>
<style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.personalized-recommendation{margin-bottom:20px}.upgrade-button{display:inline-block;background-color:#007bff;color:#fff;padding:10px 20px;text-decoration:none;border-radius:5px}.upgrade-button:hover{background-color:#0056b3}.customer-testimonials{margin-top:20px}</style>
</head>
<body>
<div class="container">
<h1>Upgrade Your Experience!</h1>
<p class="personalized-recommendation">Based on your previous purchase, we recommend our new product: Product Name. It's the perfect addition to enhance your experience.</p>
<a class="upgrade-button" href="https://example.com/upgrade">Upgrade Now</a>
<div class="customer-testimonials">
<h3>What our customers say:</h3>
<blockquote>
<p>"This product exceeded my expectations! I can't imagine going back to the old version."</p>
<cite> - Happy Customer</cite>
</blockquote>
<blockquote>
<p>"The upgraded features are worth every penny. I highly recommend it!"</p>
<cite> - Satisfied Customer</cite>
</blockquote>
</div>
</div>
</body>
</html> |
[INST] <> Write an HTML, CSS, and JavaScript code that implements a simple stopwatch with start, stop, and reset buttons, and displays the elapsed time in seconds. <> [/INST] <!DOCTYPE html>
<html>
<head>
<style>
.stopwatch {
font-family: monospace;
font-size: 36px;
}
button {
font-size: 16px;
}
</style>
</head>
<body>
<div class='stopwatch'>0.00</div>
<button id='startBtn'>Start</button>
<button id='stopBtn'>Stop</button>
<button id='resetBtn'>Reset</button>
<script>
const startBtn = document.querySelector('#startBtn');
const stopBtn = document.querySelector('#stopBtn');
const resetBtn = document.querySelector('#resetBtn');
const stopwatchDisplay = document.querySelector('.stopwatch');
let startTime, elapsedTime, interval;
function updateDisplay() {
elapsedTime = (Date.now() - startTime) / 1000;
stopwatchDisplay.textContent = elapsedTime.toFixed(2);
}
startBtn.addEventListener('click', () => {
startTime = Date.now();
interval = setInterval(updateDisplay, 10);
});
stopBtn.addEventListener('click', () => {
clearInterval(interval);
});
resetBtn.addEventListener('click', () => {
clearInterval(interval);
elapsedTime = 0;
stopwatchDisplay.textContent = '0.00';
});
</script>
</body>
</html> |
[INST] <> Please generate a html. I want an email template for a charity event invitation. It should have an impactful header image, details about the event, a 'Donate Now' button, and social media icons at the bottom. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Charity Event Invitation</title>
<style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.header-image{width:100%;max-width:600px;height:auto;display:block;margin-bottom:20px}.event-details{font-size:16px;margin-bottom:20px}.donate-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#ff0000;text-decoration:none;border-radius:4px}.social-media-icons{display:flex;justify-content:center;align-items:center}.social-media-icon{margin:0 5px}.social-media-icon img{width:30px;height:30px}</style>
</head>
<body>
<div class="container">
<img src="header_image.jpg" alt="Header Image" class="header-image">
<p class="event-details">You are cordially invited to our Charity Event on [Event Date]. Join us for an evening of giving and make a difference in the lives of those in need.</p>
<a href="https://example.com/donate" class="donate-button">Donate Now</a>
<div class="social-media-icons">
<a href="https://www.facebook.com/" class="social-media-icon"><img src="facebook_icon.png" alt="Facebook"></a>
<a href="https://www.twitter.com/" class="social-media-icon"><img src="twitter_icon.png" alt="Twitter"></a>
<a href="https://www.instagram.com/" class="social-media-icon"><img src="instagram_icon.png" alt="Instagram"></a>
</div>
</div>
</body>
</html> |
[INST] <> Write an HTML page from scratch to display a user's contact information. <> name: John Doe;
age: 46;
phone: +1 (312) 555-4879;
email: [email protected]; [/INST] <!DOCTYPE html>
<html>
<head>
<title>John Doe's Contact Information</title>
</head>
<body>
<h2>John Doe</h2>
<p>Age: 46</p>
<p>Phone: +1 (312) 555-4879</p>
<p>Email: [email protected]</p>
</body>
</html> |
[INST] <> Create a HTML web page with four different headings. <> [/INST] <html>
<head>
<title>Headings Page</title>
</head>
<body>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
</body>
</html> |
[INST] <> Create a basic HTML skeleton for a web page. <> [/INST] <html>
<head>
<title>Basic Webpage</title>
</head>
<body>
</body>
</html> |
[INST] <> Write a HTML/CSS code to implement responsive design <> [/INST] <html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@media only screen and (max-width: 600px) {
#wrap {
max-width: 100%;
}
}
</style>
</head>
<body>
<div id="wrap">
<!-- your content -->
</div>
</body>
</html> |
[INST] <> Please generate a html. Can you create an email template for a pre-launch announcement? It should have a teaser image or video, a countdown timer, a 'Get Early Access' button, and social media sharing options. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Pre-Launch Announcement</title>
<style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.teaser-image{margin-bottom:20px}.countdown-timer{font-size:24px;font-weight:bold;margin-bottom:20px}.cta-button{display:inline-block;background-color:#ff0000;color:#fff;padding:10px 20px;text-decoration:none;border-radius:4px;font-weight:bold;margin-bottom:20px}.social-media{margin-bottom:20px}.social-media-icon{display:inline-block;width:24px;height:24px;margin-right:10px}.social-media-link{color:#000;text-decoration:none}</style>
</head>
<body>
<div class="container">
<img class="teaser-image" src="https://example.com/teaser-image.jpg" alt="Teaser Image">
<p class="countdown-timer">Countdown: 3 days remaining</p>
<a class="cta-button" href="https://example.com/early-access">Get Early Access</a>
<div class="social-media">
<a class="social-media-link" href="https://example.com/facebook"><img class="social-media-icon" src="https://example.com/facebook-icon.jpg" alt="Facebook"></a>
<a class="social-media-link" href="https://example.com/twitter"><img class="social-media-icon" src="https://example.com/twitter-icon.jpg" alt="Twitter"></a>
<a class="social-media-link" href="https://example.com/instagram"><img class="social-media-icon" src="https://example.com/instagram-icon.jpg" alt="Instagram"></a>
</div>
</div>
</body>
</html> |
[INST] <> Create an HTML page with a button and a tag cloud <> [/INST] <html>
<head>
<title>Tag Cloud</title>
<style>
.tag-cloud {
position: relative;
font-size: 0;
}
.tag {
display: inline-block;
border-radius: 10px;
padding: 10px 20px;
font-size: 15px;
margin: 10px;
background: #999;
}
button {
position: absolute;
bottom: 5px;
right: 5px;
}
</style>
</head>
<body>
<div class="tag-cloud">
<div class="tag">Tag1</div>
<div class="tag">Tag2</div>
<div class="tag">Tag3</div>
<div class="tag">Tag4</div>
<div class="tag">Tag5</div>
</div>
<button>Show Tags</button>
</body>
</html> |
[INST] <> Format the following HTML tags correctly. <> <html><head> <title>hello world</title></head></html> [/INST] <html>
<head>
<title>Hello World</title>
</head>
</html> |
[INST] <> Modify the following HTML to apply an external style sheet. <> <html>
<head>
<title>This Is a Test</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html> [/INST] <!DOCTYPE html>
<html>
<head>
<title>This Is a Test</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Hello World!</h1>
</body>
</html> |
[INST] <> Create an HTML page with a heading, aparagraph and a button that says "Click Here". <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is the homepage of My Website.</p>
<button type="button">Click Here</button>
</body>
</html> |
[INST] <> Complete the following HTML template with appropriate tags: <> <html>
<head>
</head>
<body>
</body>
</html> [/INST] <html>
<head>
<title> Title of page </title>
</head>
<body>
<h1> Header title </h1>
<p> This is a sample content of a web page. </p>
</body>
</html> |
[INST] <> Create an HTML page with a layout consisting of 3 containers: one on the left and two on the right. <> [/INST] <html>
<head>
</head>
<style>
#container{
width: 100%;
display: flex;
}
#left-container{
width: 20%;
}
#right-containers{
width: 80%;
display: flex;
}
#right-container1{
width: 50%;
}
#right-container2{
width: 50%;
}
</style>
<body>
<div id="container">
<div id="left-container">
<!-- Left Container Content -->
</div>
<div id="right-containers">
<div id="right-container1">
<!-- Right Container 1 Content -->
</div>
<div id="right-container2">
<!-- Right Container 2 Content -->
</div>
</div>
</div>
</body>
</html> |
[INST] <> Design a web page containing HTML/CSS containing at least 5 containers. <> [/INST] <html>
<head>
<title>My Webpage</title>
</head>
<body>
<div class="container1" >
</div>
<div class="container2" >
</div>
<div class="container3" >
</div>
<div class="container4" >
</div>
<div class="container5" >
</div>
</body>
</html> |
[INST] <> Create a simple web page with a div element and a child paragraph element. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Simple Web Page</title>
</head>
<body>
<div>
<p>The quick brown fox jumps over the lazy dog.</p>
</div>
</body>
</html> |
[INST] <> Please generate a html. Can you create an email template for a travel itinerary confirmation? It should have a wanderlust-inspired design, trip details, a 'View Itinerary' button, and suggestions for local attractions. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Travel Itinerary Confirmation</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #F4F4F4;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.button {
display: inline-block;
background-color: #FF6600;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
}
.attractions {
margin-top: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>Travel Itinerary Confirmation</h1>
<div class="header">
<p>Dear traveler,</p>
<p>Your travel itinerary is confirmed! Here are the details of your upcoming trip:</p>
</div>
<a href="view-itinerary.html" class="button">View Itinerary</a>
<div class="attractions">
<p>While you're at your destination, make sure to check out these local attractions:</p>
<ul>
<li>Attraction 1</li>
<li>Attraction 2</li>
<li>Attraction 3</li>
</ul>
</div>
</div>
</body>
</html> |
[INST] <> How would you edit the following HTML code so that it displays content in two columns? <> <div>
<p>This is the content</p>
</div> [/INST] <div>
<div style="float: left; width: 50%;">
<p>This is the content 1</p>
</div>
<div style="float: right; width: 50%;">
<p>This is the content 2</p>
</div>
</div> |
[INST] <> Create a HTML web page that displays "Welcome To My Page" with a heading level 2. <> [/INST] <html>
<head>
<title>Welcome To My Page</title>
</head>
<body>
<h2>Welcome To My Page</h2>
</body>
</html> |
[INST] <> Generate an HTML element <> [/INST] <html>
<body>
</body>
</html> |
[INST] <> Create a web page with a table of 4 columns and a submit button to submit the table data. <> [/INST] <html>
<head></head>
<body>
<form>
<table>
<thead>
<tr><th>Column 1</th><th>Column 2</th><th>Column 3</th><th>Column 4</th></tr>
</thead>
<tbody>
<!-- your content here -->
</tbody>
</table>
<input type="submit" value="Submit Table Data" />
</form>
</body>
</html> |
[INST] <> Make an HTML webpage with a heading "Welcome to my webpage!" and a paragraph with the text "This is my first webpage!". <> [/INST] <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Webpages</title>
</head>
<body>
<h1>Welcome to my webpage!</h1>
<p>This is my first webpage!</p>
</body>
</html> |
[INST] <> Create a web page with a simple "Hello World" message. <> [/INST] <html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html> |
[INST] <> Create a HTML page with given header and footer elements. <> Header: <h1>Hi there!</h1>
Footer: <h5>Goodbye!</h5> [/INST] <html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Hi there!</h1>
<div>
// Page content goes here
</div>
<h5>Goodbye!</h5>
</body>
</html> |
[INST] <> Create an HTML page with a navigation bar that links to three other HTML pages. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>My Navigation Page</title>
</head>
<body>
<div>
<a href="page1.html">Page 1</a>
<a href="page2.html">Page 2</a>
<a href="page3.html">Page 3</a>
</div>
</body>
</html> |
[INST] <> Create a basic HTML page with a title, a heading and a brief introduction to yourself. <> My name is John Doe, I am an engineer and webdeveloper. [/INST] <html>
<head>
<title>Introducing John Doe</title>
</head>
<body>
<h1>Introducing John Doe</h1>
<p>
Hi, I'm John Doe. I am an engineer and webdeveloper with 20 years of experience. I have worked on projects for some of the biggest companies in the world, and I'm proud to say that I have always delivered quality work. I'm excited to have a chance to work on new projects and be part of an amazing team.
</p>
</body>
</html> |
[INST] <> Create a HTML page displaying a simple table showing your name, age and occupation. <> [/INST] <html>
<head>
<title>My Details</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Occupation</th>
</tr>
<tr>
<td> Joe Doe</td>
<td> 25 </td>
<td> Web Developer </td>
</tr>
</table>
</body>
</html> |
[INST] <> Create an HTML page with a table containing the name and age of 5 people. <> Name Age
John 25
Lisa 22
Emily 19
George 21
Samuel 20 [/INST] <html>
<head>
<title>People Age Table</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>25</td>
</tr>
<tr>
<td>Lisa</td>
<td>22</td>
</tr>
<tr>
<td>Emily</td>
<td>19</td>
</tr>
<tr>
<td>George</td>
<td>21</td>
</tr>
<tr>
<td>Samuel</td>
<td>20</td>
</tr>
</table>
</body>
</html> |
[INST] <> Create an HTML page that displays a table of the 10 most visited countries. <> Country | Number of Visitors
United States| 206 million
China | 61 million
Spain | 82 million
United Kingdom | 37 million
Germany | 37 million
France | 86 million
Italy | 58 million
Turkey | 39 million
Japan | 28 million
Russia | 28 million [/INST] <html>
<head>
<title>Top 10 Visited Countries</title>
</head>
<body>
<h1>Top 10 Visited Countries</h1>
<table>
<thead>
<th>Country</th>
<th>Number of Visitors</th>
</thead>
<tbody>
<tr>
<td>United States</td>
<td>206 million</td>
</tr>
<tr>
<td>China</td>
<td>61 million</td>
</tr>
<tr>
<td>Spain</td>
<td>82 million</td>
</tr>
<tr>
<td>United Kingdom</td>
<td>37 million</td>
</tr>
<tr>
<td>Germany</td>
<td>37 million</td>
</tr>
<tr>
<td>France</td>
<td>86 million</td>
</tr>
<tr>
<td>Italy</td>
<td>58 million</td>
</tr>
<tr>
<td>Turkey</td>
<td>39 million</td>
</tr>
<tr>
<td>Japan</td>
<td>28 million</td>
</tr>
<tr>
<td>Russia</td>
<td>28 million</td>
</tr>
</tbody>
</table>
</body>
</html> |
[INST] <> Write a short HTML page to display a welcome message. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>Welcome!</h1>
</body>
</html> |
[INST] <> Create an HTML page design for displaying a website homepage. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Website Homepage</title>
</head>
<body>
<h1>Welcome to the website!</h1>
<p>This is the homepage for a new website.</p>
<ul>
<li> About Us </li>
<li> Services </li>
<li> Contact Us </li>
</ul>
</body>
</html> |
[INST] <> Create an HTML page that displays the Date and Time in the header. <> [/INST] <html>
<head>
<title>Date and Time</title>
</head>
<body>
<h3 id="date"><script>document.getElementById("date").innerHTML = Date()</script></h3>
</body>
</html> |
[INST] <> Write an HTML code to display a webpage with a centered paragraph. <> [/INST] <html>
<head>
<title>Centered Paragraph</title>
</head>
<body>
<div style="text-align:center;">
<p>This is a centered paragraph.</p>
</div>
</body>
</html> |
[INST] <> Generate HTML code to create a login page with a username and password field. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Login</title>
</head>
<body>
<div>
<h1>Login</h1>
<form id="loginForm" action="" method="post">
<label>Username:</label>
<input type="text" name="username" required/>
<label>Password:</label>
<input type="password" name="password" required/>
<input type="submit" value="Login"/>
</form>
</div>
</body>
</html> |
[INST] <> Create an HTML page containing a login form with the following fields: username, password, and submit button. <> [/INST] <html>
<head>
<title>Login Form</title>
</head>
<body>
<form action="/login" method="POST">
<input type="text" name="username" placeholder="Username"/>
<input type="password" name="password" placeholder="Password"/>
<input type="submit" value="Submit"/>
</form>
</body>
</html> |
[INST] <> Create an HTML page with a table containing the following data in four rows. <> Id | First Name | Last Name | Age
1 | John | Doe | 30
2 | Jane | Doe | 25
3 | Brian | Smith | 32
4 | Maria | Smith | 28 [/INST] <html>
<head>
<title>Table Data</title>
</head>
<body>
<table>
<thead>
<tr>
<th>Id</th>
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>John</td>
<td>Doe</td>
<td>30</td>
</tr>
<tr>
<td>2</td>
<td>Jane</td>
<td>Doe</td>
<td>25</td>
</tr>
<tr>
<td>3</td>
<td>Brian</td>
<td>Smith</td>
<td>32</td>
</tr>
<tr>
<td>4</td>
<td>Maria</td>
<td>Smith</td>
<td>28</td>
</tr>
</tbody>
</table>
</body>
</html> |
[INST] <> Compile and execute this HTML program to display "Hello World" on the screen. <> <html>
<body>
<h1>Hello World</h1>
</body>
</html> [/INST] <html>
<body>
<h1>Hello World</h1>
</body>
</html>
Hello World |
[INST] <> Create a web page that displays "Hello, World!" <> [/INST] <html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html> |
[INST] <> Create an HTML page with a text input form and a submit button. <> [/INST] <html>
<head>
<title>Text Input Form</title>
</head>
<body>
<form action="/submit" method="POST">
<input type="text" name="input" placeholder="Enter Text"/>
<input type="submit" value="Submit"/>
</form>
</body>
</html> |
[INST] <> Using the provided HTML structure and jQuery code, change the background color to green when the button is clicked. <> <div>
<h1>Hello World!</h1>
<button>Click me!</button>
</div>
<script>
$(document).ready(function(){
$("button").click(function(){
//TODO: Add code here
});
});
</script> [/INST] <div>
<h1>Hello World!</h1>
<button>Click me!</button>
</div>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").css("background-color", "green");
});
});
</script> |
[INST] <> Construct a basic HTML page that renders a heading, a description of the page, and a photo. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>My Page</h1>
<p>This is my first HTML page.</p>
<img src="sample-image.jpg" alt="sample image">
</body>
</html> |
[INST] <> Create a web page to display a result of a dictionary containing all countries in the world and its corresponding capital in three columns. <> [/INST] <html>
<head>
<title>Countries and Capitols</title>
</head>
<body style="background-color: #f9f9f9; font-family: sans-serif; padding: 50px">
<h1 style="text-align:center; color: #444444;">World Countries and Capitols</h1>
<p>Below is a list of countries and capitols, presented in three columns: country, capital and continent.</p>
<table style="width:100%;border: 1px solid #444444; text-align: center; margin:20px auto;">
<tr>
<th style="background-color:#444444; color: #ffffff">Country</th>
<th style="background-color:#444444; color: #ffffff">Capital</th>
<th style="background-color:#444444; color: #ffffff">Continent</th>
</tr>
<tr>
<td>Australia</td>
<td>Canberra</td>
<td>Oceania</td>
</tr>
<tr>
<td>Brazil</td>
<td>Brasilia</td>
<td>South America</td>
</tr>
<tr>
<td>China</td>
<td>Beijing</td>
<td>Asia</td>
</tr>
<tr>
<td>USA</td>
<td>Washington D.C.</td>
<td>North America</td>
</tr>
</table>
</body>
</html> |
[INST] <> Create an HTML page with a form containing a checkbox. <> [/INST] <html>
<body>
<form>
<input type="checkbox" />
</form>
</body>
</html> |
[INST] <> Create an HTML page that contains the following table. <> <table>
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
<tr>
<td>John Doe</td>
<td>23</td>
<td>New York</td>
</tr>
<tr>
<td>Trish Smith</td>
<td>29</td>
<td>Philadelphia</td>
</tr>
</table> [/INST] <html>
<head>
<title>Table Sample</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
<tr>
<td>John Doe</td>
<td>23</td>
<td>New York</td>
</tr>
<tr>
<td>Trish Smith</td>
<td>29</td>
<td>Philadelphia</td>
</tr>
</table>
</body>
</html> |
[INST] <> Write Angular code to bind a variable to the HTML view. <> [/INST] <div>
{{my_variable}}
</div> |
[INST] <> Modify the following HTML code to add a new div element inside the existing div. <> <div>
Hello, world!
</div> [/INST] <div>
<div>New div element</div>
Hello, world!
</div> |
[INST] <> Please generate a html. I need an email template for a product launch. It should have a bold headline, a product image on the left side, and a 'Buy Now' button in blue at the bottom. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Product Launch Email</title>
<style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.headline{font-size:24px;font-weight:bold;margin-bottom:20px}.product-image{width:100%;max-width:400px;height:auto;display:block;margin-bottom:20px}.buy-now-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}</style>
</head>
<body>
<div class="container">
<h1 class="headline">Product Launch!</h1>
<img src="product_image.jpg" alt="Product Image" class="product-image">
<a href="https://example.com/buy" class="buy-now-button">Buy Now</a>
</div>
</body>
</html> |
[INST] <> Create a HTML page to show a result of the sum of two numbers. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Sum of Two Numbers</title>
<script>
// get numbers from user
var a = prompt("Enter the first number");
var b = prompt("Enter the second number");
// calculate the sum
var sum = +a + +b;
// print the result
document.write("Result : " +sum);
</script>
</head>
<body>
</body>
</html> |
[INST] <> Codify a static HTML page such that when the page URL is accessed, it displays the message "Please enter your login details". <> [/INST] <html>
<head>
<title>Login Page</title>
</head>
<body>
<h1>Please enter your login details</h1>
</body>
</html> |
[INST] <> Construct a HTML template using Bootstrap. <> [/INST] <!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Template</h2>
<p>This is a template for a Bootstrap page.</p>
<p>It uses bootstrap's grid system for the layout.</p>
</div>
</body>
</html> |
[INST] <> Design an HTML page that prints out "Hello, World!" in two columns. <> [/INST] <html>
<head>
<title>Hello, World!</title>
</head>
<body>
<div style="display: flex;"><div>Hello,</div><div> World!</div></div>
</body>
</html> |
[INST] <> Write an HTML page to display facts about a specific animal. <> Animal: Cat
Name: Fluffy
Age: 8
Weight: 10 lbs
Fur Color: Orange [/INST] <html>
<head>
<title>Facts about Fluffy</title>
</head>
<body>
<h1>Fluffy the Cat</h1>
<ul>
<li>Age: 8</li>
<li>Weight: 10 lbs</li>
<li>Fur Color: Orange</li>
</ul>
</body>
</html> |
[INST] <> Please generate a html. I want an email template for a customer loyalty program upgrade. It should have a sleek and modern design, upgraded benefits, a 'Level Up' button, and a progress bar showing their loyalty status. <> [/INST] <!DOCTYPE html>
<html>
<head>
<title>Customer Loyalty Program Upgrade</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #F5F7FA;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.benefits {
margin-bottom: 20px;
}
.button {
display: inline-block;
background-color: #3498DB;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
}
.progress {
background-color: #E0E0E0;
height: 20px;
border-radius: 10px;
}
.progress-bar {
background-color: #3498DB;
height: 100%;
border-radius: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>Customer Loyalty Program Upgrade</h1>
<div class="header">
<img src="logo.png" alt="Logo">
</div>
<div class="benefits">
<h2>Upgraded Benefits</h2>
<p>As a valued member, we are excited to offer you upgraded benefits in our loyalty program.</p>
</div>
<a href="level-up.html" class="button">Level Up</a>
<div class="progress">
<div class="progress-bar" style="width: 75%;"></div>
</div>
</div>
</body>
</html> |
[INST] <> Create an HTML page to display the employee details. <> Employee Name: Oliver Smith
Age: 35
Role: Marketing Executive [/INST] <html>
<head>
<title>Employee Details</title>
</head>
<body>
<h1>Employee Details</h1>
<p>Name: Oliver Smith</p>
<p>Age: 35</p>
<p>Role: Marketing Executive</p>
</body>
</html> |
Subsets and Splits