text stringlengths 79 2.28k |
|---|
<|user|>
Write an HTML template to display a greeting message. The message should include the name of the user who visits the website. username = "John"</s>
<|assistant|>
<html>
<head>
<title>Greeting Message</title>
</head>
<body>
<h1>Hello, {{ username }}!</h1>
</body>
</html></s>
|
<|user|>
Create an HTML page where the main content area has a random background color when the page is loaded. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>RandomBackground</title>
<script>
window.addEventListener("load",function(){
var randomColor = "#"+((1<<24)*Math.ran... |
<|user|>
Create a web page using HTML and CSS that displays a div with some text. </s>
<|assistant|>
<html>
<head>
<title>Div Example</title>
</head>
<body>
<div>Hello, welcome to my website!</div>
</body>
</html></s>
|
<|user|>
Create a web page with a centered title and paragraph in HTML. title = "My First Web Page"
paragraph = "This is my first web page. It is an amazing experience!"</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<div class="main">
... |
<|user|>
Correct the following HTML code to remove mistakes and indentation errors `<html><head><title>My Site</title></head>
<body>
<h1>Welcome!</h1><p>My website
</body>
</html>`</s>
<|assistant|>
<html>
<head>
<title>My Site</title>
</head>
<body>
<h1>Welcome!</h1>
<p>My website</p>
</body>... |
<|user|>
Create a HTML page with 3 sections, using div tags. </s>
<|assistant|>
<div>
<div id="section1"> Section 1... </div>
<div id="section2"> Section 2... </div>
<div id="section3"> Section 3... </div>
</div></s>
|
<|user|>
Create an HTML page to display a table of students Data of students: First name, LastName and Age</s>
<|assistant|>
<html>
<head> <title>My Student Table </title> </head>
<body>
<table>
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
... |
<|user|>
Improve the following HTML structure. <div>
<h2>Welcome!</h2>
<p>This is my website.</p>
</div></s>
<|assistant|>
<div>
<h2>Welcome!</h2>
<p>Hello and welcome to my website. Here, you can find all the information you need to know about me.</p>
</div></s>
|
<|user|>
Design a webpage with a given template. Template: Pink and Purple with three-column layout</s>
<|assistant|>
<html>
<head>
<title>Pink and Purple Layout</title>
<style>
body {
background-color: pink;
}
#container {
display: flex;
}
#container > div {
flex: 1;
bac... |
<|user|>
Create a HTML page that displays the words "Hello, World!" in different colors. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Hello World Page</title>
<style>
h1 {
color: red;
}
h2 {
color: blue;
}
h3 {
color: green... |
<|user|>
Create a HTML page with a heading 2 of "Operating System". </s>
<|assistant|>
<html>
<head>
<title>Operating System</title>
</head>
<body>
<h2>Operating System</h2>
</body>
</html></s>
|
<|user|>
Write an HTML page including the given text. This is a test page</s>
<|assistant|>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<h1>This is a test page</h1>
</body>
</html></s>
|
<|user|>
Create a simple web page with a div element and a child paragraph element. </s>
<|assistant|>
<!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></s>
|
<|user|>
Design an HTML page with a table of products and their prices. Table with 5 products and their prices</s>
<|assistant|>
<html>
<head>
<title>Product Prices</title>
</head>
<body>
<h1>Product Prices</h1>
<table>
<tr>
<th>Product Name</th><th>Price</th>
</tr>
<tr>
<td>Laptop</td><td>100... |
<|user|>
Create a PHP page to add two numbers. </s>
<|assistant|>
<html>
<head>
<title>Add two numbers</title>
</head>
<body>
<?php
if (isset($_POST['add'])) {
$num1 = $_POST['num1'];
$num2 = $_POST['num2'];
$sum = $num1 + $num2;
?>
<p>The sum of <?php echo $num1; ?> and <?php echo $num2; ?> i... |
<|user|>
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></s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>This Is a Test</title>
<link rel="stylesheet" type="text/css" hre... |
<|user|>
Construct a HTML code which opens a popup window. </s>
<|assistant|>
<html>
<head>
<title>Popup Window</title>
</head>
<body>
<!-- Trigger/Open The Modal -->
<button id="myBtn">Open Popup Window</button>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal con... |
<|user|>
Write an HTML page that displays a red box. </s>
<|assistant|>
<html>
<head>
<title>Red Box</title>
</head>
<body>
<div style="width: 200px;height: 200px;background-color: red;"></div>
</body>
</html></s>
|
<|user|>
Create an HTML page containing a text field and a button. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Input Form</title>
</head>
<body>
<form>
<input type="text" />
<input type="submit" value="Submit" />
</form>
</body>
</html></s>
|
<|user|>
Create a basic HTML structure including an h1 titled "Welcome". </s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome</title>
</head>
<body>
<h1>Welcome</h1>
</body>
</html></s>
|
<|user|>
Create an HTML page with a form that validates a user's email address. </s>
<|assistant|>
<html>
<head>
<title>Email Validation Form</title>
</head>
<body>
<h1>Email Validation Form</h1>
<form action="/" method="POST">
<input type="text" name="email" placeholder="Enter your email addres... |
<|user|>
Create a HTML page that containsthe loading icon for a web page request. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Loading Icon</title>
</head>
<body>
<div id="loading-icon">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<style ty... |
<|user|>
Edit the following HTML code to include a new form field. <html>
<head>
<title>My Form</title>
</head>
<body>
<form>
<label for="name">Name</label>
<input type="text" id="name">
</form>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>My Form</title>
</head>
<body>
<fo... |
<|user|>
Create a web page with a form for user input of a modified text. </s>
<|assistant|>
<html>
<body>
<form action = "processText.php" method = "post">
<textarea rows = "10" cols = "30" name = "modifiedText"></textarea><br>
<input type = "submit" value = "Submit" />
</form>
</body>
</html></s>
|
<|user|>
Format the following HTML code into a valid HTML document. <title>My Website!</title><h1>Welcome</h1></s>
<|assistant|>
<html>
<head>
<title>My Website!</title>
</head>
<body>
<h1>Welcome</h1>
</body>
</html></s>
|
<|user|>
Edit this HTML document so the <h1> tag at the top of the page is aligned to the center. <html>
<head>
<title>My Page</title>
</head>
<body>
<h1>Page Title</h1>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1 style="text-align: center;">... |
<|user|>
Write a HTML page to create a survey form. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Survey Form</title>
</head>
<body>
<form action="/action_page.php">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" placeholder="Your name.." required><br>
<label for=... |
<|user|>
Create a HTML page displaying a table with the following values [{name: 'John', age: 25, country: 'US'},
{name: 'Jane', age: 32, country: 'Canada'},
{name: 'David', age: 28, country: 'Mexico'}]</s>
<|assistant|>
<html>
<head>
<title>Table</title>
</head>
<body>
<table>
<thead>
<tr>... |
<|user|>
Create a HTML page with a search bar. </s>
<|assistant|>
<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></s>
|
<|user|>
Create a HTML page with text "Hello, World!" </s>
<|assistant|>
<html>
<head>
<title>Hello, World!</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html></s>
|
<|user|>
Create a HTML page with a table containing five columns and four rows. </s>
<|assistant|>
<html>
<head>
<title>Table with Columns and Rows</title>
</head>
<body>
<table>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
<th>Col... |
<|user|>
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. </s>
<|assistant|>
<html>
<head>
</head>
<body>
<input type="text" id="myInput">
<button onclick="printInput()">Print Input</button>
<scri... |
<|user|>
Create an HTML form which accepts an input string and returns the longest word in the string Hello world!</s>
<|assistant|>
<html>
<head>
<title>Longest word finder</title>
<script type="text/javascript">
function longestWordFinder() {
// Get user input
const inputString = docum... |
<|user|>
Create an HTML page with a table that displays the given data. Dessert | Calories
Chocolate Cake | 450
Ice Cream Sundae | 300
Donut | 350</s>
<|assistant|>
<html>
<head>
<title>Calorie Table</title>
</head>
<body>
<h1>Calorie Table</h1>
<table>
<thead>
<th>Dessert</th>
<th>Calories</th>
... |
<|user|>
Create an HTML page with a form to sign up for a newsletter. </s>
<|assistant|>
<html>
<head>
<title>Newsletter Sign Up</title>
</head>
<body>
<form action="submit.html" method="POST">
<h1>Newsletter Sign Up</h1>
Name: <input type="text" name="name"><br>
Email: <input type="email" name="email">... |
<|user|>
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 mi... |
<|user|>
Create a HTML webpage which displays a list of products. </s>
<|assistant|>
<html>
<head>
<title>List Of Products</title>
</head>
<body>
<ul>
<li>Product 1</li>
<li>Product 2</li>
<li>Product 3</li>
</ul>
</body>
</html></s>
|
<|user|>
Create an HTML page to display a form to enter email and password. </s>
<|assistant|>
<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" val... |
<|user|>
Create an HTML page using JavaScript that generates a table with the following data. const data = [
{
name: "John Doe",
age: 30,
city: "New York"
},
{
name: "Jane Smith",
age: 25,
city: "San Francisco"
},
{
name: "Adam Johnson",
age: 27,
city: "Los Angeles"
}
];<... |
<|user|>
Create a HTML page using a basic text editor </s>
<|assistant|>
<html>
<head>
<title>My Title</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html></s>
|
<|user|>
Create a HTML page displaying a table of the 10 most disruptive technologies of all time. </s>
<|assistant|>
<html>
<head>
<title>Most Disruptive Technologies</title>
</head>
<body>
<h1>Ten Most Disruptive Technologies Of All Time</h1>
<table>
<tr>
<th>Technology</th>
... |
<|user|>
Construct an HTML page with a title "My Website" and a header tag. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>My Website</h1>
</body>
</html></s>
|
<|user|>
Create an HTML page with a table and list 3 books in it. </s>
<|assistant|>
<html>
<head>
<title>Books</title>
</head>
<body>
<table>
<thead>
<tr>
<th>Title</th>
<th>Author</th>
</tr>
</thead>
<tbody>
<tr>
<td>The Catcher in ... |
<|user|>
Create an HTML layout for a website. Make sure the layout has a header, a navigation menu, and a footer. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Webpage Layout</title>
</head>
<body>
<header>
<h1>Header</h1>
</header>
<nav>
... |
<|user|>
Create an HTML5 document with an h1 tag containing the text "Hello World". </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html></s>
|
<|user|>
Create a web page using HTML, CSS and JavaScript that displays a user's full name. const fullName = "John Doe";</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>My Full Name</h1>
<p>My full name is <span id="name">John Doe</span>.</p>
<script>... |
<|user|>
Create a HTML page displaying a simple table showing your name, age and occupation. </s>
<|assistant|>
<html>
<head>
<title>My Details</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Occupation</th>
</tr>
<tr>
... |
<|user|>
Create an HTML page containing a table with four columns that holds data about the population of a country. </s>
<|assistant|>
<html>
<head>
<title>Country Population Table</title>
</head>
<body>
<table>
<tr>
<th>City</th>
<th>State</th>
<th>Population</th>
<th>Area (sq km)</th>... |
<|user|>
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
}];</s>
<|assistant|>
<html>
<head>
<script>
function sortStudents(students) {
students.sort((a, b) => (a.grade ... |
<|user|>
Create an HTML page that prints "Hello World!" and displays the examples using a font size of 8px. </s>
<|assistant|>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<p style="font-size: 8px;">Hello World!</p>
</body>
</html></s>
|
<|user|>
Create an HTML document that displays a list of 5 items. List of items:
Apple
Banana
Orange
Kiwi
Mango</s>
<|assistant|>
<html>
<body>
<ul>
<li>Apple</li>
<li>Banana</li>
<li>Orange</li>
<li>Kiwi</li>
<li>Mango</li>
</ul>
</body>
</html></s>
|
<|user|>
Edit the following HTML page and add a link to an existing page on the internet. <html>
<header>
<title>My Page</title>
</header>
</html></s>
<|assistant|>
<html>
<header>
<title>My Page</title>
</header>
<body>
<a href="https://www.example.com">Link to Example</a>
... |
<|user|>
Create an HTML document with a table containing book information. </s>
<|assistant|>
<html>
<body>
<h2>Book Information</h2>
<table>
<tr>
<th>Title</th>
<th>Author</th>
<th>Price</th>
</tr>
<tr>
<td>Harry Potter and the Sorcerer's Stone</td>
<... |
<|user|>
Write an HTML page with a form which takes the input of an email address and a password and sends an email to the given address. </s>
<|assistant|>
<html>
<head>
<title>Form Email</title>
<meta charset="utf-8" />
</head>
<body>
<form method="post" action="send-email.php">
<label>Email: ... |
<|user|>
Create an HTML page that includes a form. The form should have inputs for a first name, last name, email, favorite color, and a submit button.</s>
<|assistant|>
<html>
<body>
<form action="" method="post">
First Name: <input type="text" name="firstname"><br>
Last Name: <input typ... |
<|user|>
Create a HTML web page that displays "Welcome To My Page" with a heading level 2. </s>
<|assistant|>
<html>
<head>
<title>Welcome To My Page</title>
</head>
<body>
<h2>Welcome To My Page</h2>
</body>
</html></s>
|
<|user|>
Write a number of HTML tags such that their end tags are mismatched. </s>
<|assistant|>
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>My Heading</h1>
<p>This is a test.
</body>
</html></s>
|
<|user|>
Create an HTML webpage to display a welcome message. </s>
<|assistant|>
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>Welcome!</h1>
</body>
</html></s>
|
<|user|>
Write an HTML webpage to display a table with employee details. </s>
<|assistant|>
<html>
<head>
<title>Employee Details</title>
</head>
<body>
<h2>Employee Details</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Salary</th>
... |
<|user|>
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%.</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title> Student Attendance </ti... |
<|user|>
Create a HTML page to display a weather forecast for the selected city. City: London
Weather Forecast:
Day 1 - Clear Sky
Day 2 - Cloudy
Day 3 - Rain</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Weather Forecast</title>
</head>
<body>
<h1>Weather Forecast - London</h1>
<p>Day 1 - Clear Sky</p>
<p>D... |
<|user|>
Create an HTML page that displays "Welcome to our website" when you first visit the page </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Welcome to our website</title>
</head>
<body>
<h1>Welcome to our website!</h1>
</body></s>
|
<|user|>
Create an HTML page that displays a table with names, ages, and phone numbers Name: John
Age: 25
Phone: 555-555-5555
Name: Jane
Age: 32
Phone: 333-333-3333</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Table of Names and Information</title>
</head>
<body>
<table>
<tr>
<th>N... |
<|user|>
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></s>
<|assistan... |
<|user|>
Edit the following HTML page so the text appears in bold. <html>
<head>
<title>Text Sample</title>
</head>
<body>
<p>This is a sample text.</p>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>Text Sample</title>
</head>
<body>
<p><b>This is a sample text.</b></p>
</body>
... |
<|user|>
Construct an HTML page using valid HTML markup. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>Hello World!</h1>
<p>This is my first HTML page.</p>
</body>
</html></s>
|
<|user|>
You are given a code snippet of a web page. Fill in the missing tags to make it valid HTML. <html>
<head>
<title>My Homepage</title>
</head>
<body>
<h1>Welcome to My Homepage</h1>
<p>Hello, I'm John and this is my homepage. This is where I share my interests with the world.</p>
</body>
</html></s>
... |
<|user|>
Create an HTML page to display a table with 2 columns: Description and Price. </s>
<|assistant|>
<html>
<head>
<title>Price Table</title>
</head>
<body>
<table>
<tr>
<th>Description</th>
<th>Price</th>
</tr>
<tr>
... |
<|user|>
Update the following line of HTML code to use semantic tags for optimization. <div>Learn HTML Tutorial here</div></s>
<|assistant|>
<div><h1>Learn HTML Tutorial here</h1></div></s>
|
<|user|>
Edit the given HTML code to add a footnote section. <code>
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html></s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
<h1>Thi... |
<|user|>
Create a script in HTML to output a horizontal line. </s>
<|assistant|>
<html>
<head>
<title>Horizontal Line</title>
</head>
<body>
<hr>
</body>
</html></s>
|
<|user|>
Create an HTML website with navigation, logo and footer. <ninput></s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Website</title>
</head>
<body>
<div class="navbar">
<!-- na... |
<|user|>
Generate an HTML page with a heading and a paragraph. </s>
<|assistant|>
<html>
<head>
<title>My page</title>
</head>
<body>
<h1>My Page</h1>
<p>This is the content of my page.</p>
</body>
</html></s>
|
<|user|>
Clean up the following HTML string so it can be rendered properly. HTML string:
<div>
<h1>This is a header</h2>
<p>paragraph<p>
</div></s>
<|assistant|>
<div>
<h1>This is a header</h1>
<p>paragraph</p>
</div></s>
|
<|user|>
Write an HTML page that displays a single line of text saying "Hello World". </s>
<|assistant|>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<p>Hello World</p>
</body>
</html></s>
|
<|user|>
Create an HTML page with a navigation bar that links to three other HTML pages. </s>
<|assistant|>
<!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></s... |
<|user|>
Create a CSS stylesheet that colors the background of a webpage with a random color whenever the page is refreshed. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Random Background</title>
<style type="text/css">
body {
background-color: <?php echo '#'.str_pad(dechex(mt_rand(0, 0xFFFFFF)), 6, '0... |
<|user|>
Create an HTML page to list the students in a class list in a table. </s>
<|assistant|>
<html>
<head>
<title>Class List</title>
</head>
<body>
<h2>Class List</h2>
<table>
<tr>
<th>Name</th><th>Age</th><th>Gender</th>
</tr>
<tr>
<td>John Doe</td><td>21</td><td... |
<|user|>
Reformat the following HTML code to make it better readable. <div><ul><li>Item 1</li><li>Item 2</li></ul></div></s>
<|assistant|>
<div>
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div></s>
|
<|user|>
Create a HTML web page which shows the news for the day. </s>
<|assistant|>
<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"> ... </... |
<|user|>
Edit the following HTML code snippet to give the <body> tag the class 'main'. <html>
<head>
<title>Page Title</title>
</head>
</html></s>
<|assistant|>
<html>
<head>
<title>Page Title</title>
</head>
<body class="main">
</body>
</html></s>
|
<|user|>
Design a HTML page to register a new user. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<body>
<h2>User Registration</h2>
<form action="/action_page.php">
Username:<br>
<input type="text" name="username" value=""><br>
Email:<br>
<input type="text" name="email" value=""><br><br>
<input type="submit" val... |
<|user|>
Create a HTML web page with four different headings. </s>
<|assistant|>
<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></s>
|
<|user|>
Create a HTML email template with placeholder information from a JavaScript object. var data = {
firstname: 'John',
lastname: 'Doe',
email: 'johndoe@example.com'
};</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Email Template</title>
</head>
<body>
<h1>Hello, {{data.firstname}} {{d... |
<|user|>
Use HTML to create a webpage with a text input field and a button. </s>
<|assistant|>
<html>
<body>
<input type="text" id="text_input" />
<button onclick="handleInput()">Submit</button>
</body>
</html></s>
|
<|user|>
Edit the given HTML structure to center the content in the page. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Web Page</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<!DOCTYPE html>
<html lang... |
<|user|>
Edit a given HTML string so that every word is displayed in bold. <div>This is a sample sentence.</div></s>
<|assistant|>
<div>
<strong>This</strong> <strong>is</strong> <strong>a</strong> <strong>sample</strong> <strong>sentence.</strong>
</div></s>
|
<|user|>
Design a web page using HTML and CSS. </s>
<|assistant|>
<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></s>
|
<|user|>
Write an HTML page to display a given data table. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Table Display</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>J... |
<|user|>
Create an HTML form that, when submitted, displays all the user input on the same page. </s>
<|assistant|>
<!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" ... |
<|user|>
Create an HTML page with a table showing the results of the following SQL query: SELECT student_name, grade
FROM students
ORDER BY grade DESC</s>
<|assistant|>
<html>
<head>
<title>Student Grades</title>
</head>
<body>
<h2>Student Grades</h2>
<table>
<thead>
<tr>
<th>... |
<|user|>
Modify the HTML code with the following: Make all the text bold without changing the fontsize. <div>
<h1>Welcome</h1>
<p>This is an example text</p>
</div></s>
<|assistant|>
<div>
<h1><strong>Welcome</strong></h1>
<p><strong>This is an example text</strong></p>
</div></s>
|
<|user|>
Please fix the following broken HTML code. <html>
<head>
<title>Test HTML Page
</head>
<body>
/body>
</html></s>
<|assistant|>
<html>
<head>
<title>Test HTML Page</title>
</head>
<body>
</body>
</html></s>
|
<|user|>
Create an HTML page that displays a table containing four columns: first name, last name, age, and city. Put your own data into the columns. </s>
<|assistant|>
<html>
<head>
<title>People Table</title>
</head>
<body>
<table>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
<t... |
<|user|>
Create an HTML page with an input field and a button, and write a JavaScript function that sets the font size of the entered text in the input field to 16pt when the button is clicked. </s>
<|assistant|>
<html>
<head>
<title>Change Font Size</title>
<script type="text/javascript">
function chan... |
<|user|>
Construct a web page with three columns and a header. </s>
<|assistant|>
<html>
<head>
<title>Three Column Page</title>
</head>
<body>
<h1> Three Column Page </h1>
<div>
<div style="float:left;width:33%;">
Content for Column 1
</div>
<div style="float:left;width:33%;... |
<|user|>
Construct an HTML page with a table that displays employee information, including name, age, and salary. </s>
<|assistant|>
<html>
<head>
<title>Employee Information</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Salary</th>
</tr>
<tr>... |
<|user|>
Write a basic HTML structure with a header and a footer </s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<header>
<!-- Header Content Here -->
</header>
<main>... |
<|user|>
Write a basic HTML structure with two navigation links </s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<header>
<nav>
<a href="#">Link 1</a>
<a href="... |
<|user|>
Use HTML to create a basic web page which displays a welcome message and a button to redirect the user to another page. </s>
<|assistant|>
<html>
<header>
<title>Welcome Page</title>
</header>
<body>
<h1>Welcome to My Website</h1>
<p>This website offers a variety of resources.</p>
<button... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 2