text stringlengths 79 2.28k |
|---|
<|user|>
Develop an HTML page which displays a user's profile information (name, age, phone number). </s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User Profile</title>
</head>
<body>
<h1>Use... |
<|user|>
Produce HTML output with a yellow background using the following CSS style. .background {
background-color: #000;
}</s>
<|assistant|>
<html>
<head>
<style>
.background {
background-color: #000;
}
</style>
</head>
<body>
<div class="background" style="background-color: #FFFF00;">... |
<|user|>
Write an HTML page to display a form for user registration. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>User Registration Form</title>
</head>
<body>
<h1>User Registration Form</h1>
<form>
<input type="text" name="name" placeholder="Enter your name">
<input type="email... |
<|user|>
Create a HTML page to display information about a group of users. User details:
John – Age: 24, Profession: Developer
Mark – Age: 26, Profession: Designer</s>
<|assistant|>
<html>
<head>
</head>
<body>
<h1>User Details</h1>
<p>John – Age: 24, Profession: Developer</p>
<p>Mark – Age: 26, Profe... |
<|user|>
Edit the following XML code to add a navigation bar to the top of a web page <html>
<head>
<title>My Webpage</title>
</head></s>
<|assistant|>
<html>
<head>
<title>My Webpage</title>
</head>
<body>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li... |
<|user|>
Create a webpage with a two-column layout using HTML. Create two columns with width of 1/3 and 2/3 respectively</s>
<|assistant|>
<html>
<head>
<style>
.column {
float: left;
width: 33.33%;
padding: 0 10px
}
</style>
</head>
<body>
<div class="column">
Your content ... |
<|user|>
Design a HTML page to show a page counter </s>
<|assistant|>
<html>
<head>
<title>Page counter</title>
<script>
var count = 0;
function countClick(){
count++
document.getElementById("count").innerHTML = count;
}
</s... |
<|user|>
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></s>
<|assistant|>
<html>
<head>
<title>My Page</title>
</head>
<body style="background-color: #FFFFFF;">
<h1>My Page</h1>
</body>
</html></s>
|
<|user|>
Build a HTML page with a section containing two buttons </s>
<|assistant|>
<html>
<head>
<title>Button Section</title>
</head>
<body>
<div>
<button>First button</button>
<button>Second button</button>
</div>
</body>
</html></s>
|
<|user|>
Create a web page to display two input fields to enter the two numbers </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Input fields</title>
</head>
<body>
<h1>Input fields to enter two numbers</h1>
<form>
<p>Enter the first number:<p>
<input type="number" name="number1"><br... |
<|user|>
Create an HTML page to display the output of a JavaScript greeting message. message: Welcome!</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>JavaScript Greeting Message</title>
</head>
<body>
<h1>Welcome!</h1>
<script type="text/javascript">
document.write("Welcome!");
</script>
</body>
</h... |
<|user|>
Fill in the missing characters in the given HTML code <htm__>
<head>
<tit__>Example</title>
</he__></s>
<|assistant|>
<html>
<head>
<title>Example</title>
</head></s>
|
<|user|>
Create a HTML page to show user data from a REST API. {
"name": "John",
"age" : 25,
"address" : "123 Main Street"
}</s>
<|assistant|>
<html>
<head>
<title>User Data</title>
</head>
<body>
<h1>User Data</h1>
<p>Name: John</p>
<p>Age: 25</p>
<p>Address: 123 Main Street</p>
</body>... |
<|user|>
Generate the HTML output for a page that has a title of "Welcome" and a body with a single header of "Hello World!". </s>
<|assistant|>
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html></s>
|
<|user|>
Create a HTML page that contains an unordered list with given items in a given order. list items: " Apple ", " Orange ", " Pineapple"</s>
<|assistant|>
<html>
<head>
<title>Fruits List</title>
</head>
<body>
<ul>
<li>Apple</li>
<li>Orange</li>
<... |
<|user|>
Create a HTML form to allow users to enter an email address and a message. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form action="submit.php" method="post">
Email: <input type="text" name="email">
Message: <input type="text" name="message">
<input type="submit" value="Submi... |
<|user|>
Create an HTML document to display "Hello, World!" in bold. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<b>Hello, World!</b>
</body>
</html></s>
|
<|user|>
Using HTML and CSS, create a simple two-columns landing page. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Two-Column Layout</title>
<style>
/* define a fixed width for the entire content */
.wrapper{
width: 1000px;
margin: 0 auto;
}
/* define... |
<|user|>
Create a HTML page with 4 divs, one of them should have text aligned in the center. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>4 Divs</title>
</head>
<body>
<div>
This div does not contain any special styling
</div>
<div>
This div is colored red
<style>div { background-color: r... |
<|user|>
Create a HTML page with a textbox, button and a message “Hello World!” </s>
<|assistant|>
<html>
<head></head>
<body>
<input type="text" id="textbox">
<button onclick="sayHello()">Say Hello</button>
<p id="message">Hello World!</p>
<script>
function ... |
<|user|>
Create a HTML page that prints the following message "Welcome to my website!"</s>
<|assistant|>
<html>
<head>
<title>Welcome to my website!</title>
</head>
<body>
<h1>Welcome to my website!</h1>
</body>
</html></s>
|
<|user|>
Develop a web page which takes user inputs and validates them </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Validate user input</title>
<script>
function validateInput() {
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
if (name.length == 0... |
<|user|>
Construct an HTML table that contains the following headers: "Year", "Make", "Model". </s>
<|assistant|>
<html>
<table>
<thead>
<tr>
<th>Year</th>
<th>Make</th>
<th>Model</th>
</tr>
</thead>
</table>
</html></s>
|
<|user|>
Edit this HTML structure to add a footer at the bottom. <html>
<head>
<title>My Website</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>My Website</title>
</head>
<body>
<footer>
<p>Copyright © 20</s>
|
<|user|>
Generate an HTML page with the following data fields: title, author, and content. title: Generating HTML page
author: GPT
content: This is an example of how you can generate an HTML page.</s>
<|assistant|>
<html>
<head>
<title>Generating HTML Page</title>
<meta name="author" content="GPT" />
</head>
<b... |
<|user|>
Create an HTML page that uses the CSS box model to style a text. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Text Styling</title>
<style>
#text {
border: solid 1px black;
padding: 10px;
width: 300px;
margin: 10px auto;
}
</... |
<|user|>
Create a simple website using HTML/CSS. </s>
<|assistant|>
<html>
<head>
<title> My Website </title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
h1 {
font-size: 40px;
color: blue;
}
p {
font-size: 20px;
line-height: 1.6;
}
</style>
</h... |
<|user|>
You need to generate an HTML table and style it with CSS. table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Titl... |
<|user|>
Create a web page with a simple "Hello World" message. </s>
<|assistant|>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html></s>
|
<|user|>
Make a HTML5 webpage with a simple form. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Simple Form</title>
</head>
<body>
<form>
Name: <input type="text" name="name"/><br><br>
Email: <input type="email" name="email"/><br><br>
<... |
<|user|>
Create a HTML page with a form that takes in two numbers as input and adds them together when the form is submitted. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Adding Form</title>
</head>
<body>
<form action="" method="post">
<input type="number" name="a">
<input type="number" name="b... |
<|user|>
Write an HTML page to display facts about a specific animal. Animal: Cat
Name: Fluffy
Age: 8
Weight: 10 lbs
Fur Color: Orange</s>
<|assistant|>
<html>
<head>
<title>Facts about Fluffy</title>
</head>
<body>
<h1>Fluffy the Cat</h1>
<ul>
<li>Age: 8</li>
<li>Weight: 10 lbs</li>
... |
<|user|>
Design a web page with the following HTML elements: (1) Heading, (2) Subheading, (3) Form, (4) Button. </s>
<|assistant|>
<html>
<head>
<title> My Web Page </title>
</head>
<body>
<h1> Heading </h1>
<h2> Subheading </h2>
<form>
...
</form>
... |
<|user|>
Create a HTML form that takes three inputs and print them out when the submit button is clicked. </s>
<|assistant|>
<html>
<head>
<title>Input Form</title>
</head>
<body>
<h1>Input Form</h1>
<form action="#">
<p>First name: <input type="text" name="firstname"></p>
... |
<|user|>
Create a HTML page with a drop-down menu with values “green”, “blue” and “red”. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<body>
<select name="color">
<option value="green">Green</option>
<option value="blue">Blue</option>
<option value="red">Red</option>
... |
<|user|>
Update the HTML structure with a <p> tag that contains the text "Welcome to my website". <html>
<head>
<title>My Website</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>My Website</title>
</head>
<body>
<p>Welcome to my website</p>
</body>
</html></s>
|
<|user|>
Create a HTML page with a form that takes user input and performs some action when the user clicks the submit button. </s>
<|assistant|>
<html>
<head>
<title>Form Demo</title>
</head>
<body>
<form action="form_action.php" method="post">
<label for="username">Username:</label>
<input type="text" na... |
<|user|>
You need to create an HTML page containing a table that contains at least 4 columns and 5 rows. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>HTML Table</title>
</head>
<body>
<table>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<th>Column 4</th>
</tr>
<tr>
... |
<|user|>
Write a HTML page to display a bar chart representing the total sales of a company in different months. Months: Jan, Feb, Mar, Apr, May
Total sales in each month: 2500, 4000, 4500, 6000, 5500</s>
<|assistant|>
<html>
<head>
<title>Bar Chart Representing Total Sales</title>
<script src="https://cdn.jsd... |
<|user|>
Create an HTML webpage which when opened displays the current date in a paragraph. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Date Page</title>
</head>
<body>
<p>
<?php
echo "Current date: " . date("d-m-Y");
?>
</p>
</body>
</html></s>
|
<|user|>
Complete the following HTML template with appropriate tags: <html>
<head>
</head>
<body>
</body>
</html></s>
<|assistant|>
<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></s>
|
<|user|>
Create an HTML page with a text input box, a submit button and a table to display the results. </s>
<|assistant|>
<html>
<head>
<title>Inputs</title>
</head>
<body>
<form>
<input type="text" id="inputText">
<input type="submit" value="Submit">
</form>... |
<|user|>
Create an HTML page to display a heading, a table and a button. headline = “List of Products”
table_headers = [“Name”, “Price”, “Quantity”]</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My Webpage</title>
</head>
<body>
<h1>List of Products</h1>
<table>
<th... |
<|user|>
Create an HTML page which displays Hello World in the center of the page. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
margin: 0;
}
</style>
</head>
<body>
<h1>Hell... |
<|user|>
Create an HTML page that contains two textboxes. The first textbox is for the user to type in their name and the second textbox is for the user to type in their age. </s>
<|assistant|>
<html>
<head>
<title>Text Boxes</title>
</head>
<body>
<form>
Name: <input type="text"... |
<|user|>
Create a web page with a login form that has 2 input fields. </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 Login Page</title>
</head>
<body>
<form action="/login" method="post">
<lab... |
<|user|>
Design a web page with a top navigation bar and 2 different color sidebars. </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 Web Page</title>
<style>
body {
margin: 0;
pa... |
<|user|>
Create an HTML NavBar so that clicking on Home takes the user to a Home page <html>
<body>
</body>
</html></s>
<|assistant|>
<html>
<body>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
</ul>
</nav>
</body>
</html></s>
|
<|user|>
Assign a class of 'active' to the last <a> element in the given HTML code. <div>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</div></s>
<|assistant|>
<div>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#" class="active">Contact</a>
</div></s>
|
<|user|>
Create a HTML document which show "Hello World!" text with red color in Times New Roman font. </s>
<|assistant|>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<p style="color: red; font-family: Times New Roman;">Hello World!</p>
</body>
</html></s>
|
<|user|>
Create a web page using HTML and CSS to display the current date and time. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Current Date and Time</title>
<style>
p {
font-size: 3em;
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<p id="t... |
<|user|>
Create an HTML page with a table which contains three rows and three columns. </s>
<|assistant|>
<html>
<head>
<title>Table Example</title>
</head>
<body>
<table>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>R... |
<|user|>
Create an HTML page with two <div> elements </s>
<|assistant|>
<html>
<body>
<div>
Content
</div>
<div>
Content
</div>
</body>
</html></s>
|
<|user|>
Create a web page using HTML and CSS where the font size of the content increases with the screen size. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<style>
h1{
font-size: 1.5em;
}
@media only screen and (min-width: 600px) {
h1 { font-size: 2em; }
}
@media only s... |
<|user|>
Construct an HTML page with a centered text heading. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Centered text heading</title>
</head>
<body>
<h1 align="center">Heading</h1>
</body>
</html></s>
|
<|user|>
Edit the following HTML code to enable a toggle to show and hide a DIV element when a button is clicked. <div>
<button>Toggle</button>
<p>This is a text paragraph.</p>
</div></s>
<|assistant|>
<div>
<button onclick="toggleFunction()">Toggle</button>
<p>This is a text paragraph.</p>
<div id="myDIV" st... |
<|user|>
Develop a HTML5 program to display a box with the text
"Hello World!" </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<div class="box">Hello World!</div>
</body>
</html></s>
|
<|user|>
Create an HTML page with a title and a heading. </s>
<|assistant|>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>My Page</h1>
</body>
</html></s>
|
<|user|>
Produce an HTML webpage that shows a table of 10 colors and their corresponding hexcodes. </s>
<|assistant|>
<html>
<head>
</head>
<body>
<table>
<thead>
<tr>
<th>Color</th>
<th>Hexcode</th>
</tr>
... |
<|user|>
Build an HTML page to display the current temperature in major cities. </s>
<|assistant|>
<html>
<head>
<title>City Temperature Monitor</title>
</head>
<body>
<h1>City Temperature Monitor</h1>
<table>
<thead>
<tr>
<th>City</th>
<th>Temperature</th... |
<|user|>
Create a HTML page that contains a table with given data. <html>
<head>
<title>Data Table</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Occupation</th>
</tr>
<tr>
<td>John</td>
<td>32</td>
<td>Engineer</td>
</tr>
... |
<|user|>
Generate a HTML page with a table </s>
<|assistant|>
<html>
<head>
<title>Table</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>20</td>
... |
<|user|>
Modify the following HTML code to add a new div element inside the existing div. <div>
Hello, world!
</div></s>
<|assistant|>
<div>
<div>New div element</div>
Hello, world!
</div></s>
|
<|user|>
Construct an HTML page with a navigation bar and two sections. </s>
<|assistant|>
<html>
<head>
<title>Navigation Bar Example</title>
</head>
<body>
<ul>
<li>Home</li>
<li>About</li>
<li>Contact</li>
</ul>
<div>
<h1>Home</h1>
<p>This is the home page.</p>
... |
<|user|>
Create a HTML page. </s>
<|assistant|>
<html>
<head>
<title>My HTML Page</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html></s>
|
<|user|>
Create an HTML page with a heading, aparagraph and a button that says "Click Here". </s>
<|assistant|>
<!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>... |
<|user|>
Create a HTML page with two buttons, one to display "Hello World!" and one to display "Goodbye World!" </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Two Buttons</title>
</head>
<body>
<button onclick="alert('Hello World!')">Print Hello World</button>
<br />
<button onclick="aler... |
<|user|>
Write an HTML program to capture the entered text in an input box </s>
<|assistant|>
<html>
<head>
<title>Text Capturing</title>
</head>
<script>
function captureText() {
var text = document.getElementById("inputBox").value;
alert("Entered text: " + text);
}
</script>
<bo... |
<|user|>
Create an HTML page with an input field and a button. The input field should take a sentence and the two button should "Upper Case" and "Lower Case" respectively. When clicked, it should upper case or lower case the sentence in the input field. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Stri... |
<|user|>
Generate a web page containing an HTML table containing the numbers from 1 to 10. </s>
<|assistant|>
<html>
<head>
<title>Number Table</title>
</head>
<body>
<table>
<tr>
<th>Number</th>
</tr>
{% for number in range(1, 11) %}
<tr>
<t... |
<|user|>
Codify a static HTML page such that when the page URL is accessed, it displays the message "Please enter your login details". </s>
<|assistant|>
<html>
<head>
<title>Login Page</title>
</head>
<body>
<h1>Please enter your login details</h1>
</body>
</html></s>
|
<|user|>
Design a HTML document to display a chart with the sales of a particular item. </s>
<|assistant|>
<html>
<head>
<title>Sales Chart</title>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'... |
<|user|>
Design a web page containing HTML/CSS containing at least 5 containers. </s>
<|assistant|>
<html>
<head>
<title>My Webpage</title>
</head>
<body>
<div class="container1" >
</div>
<div class="container2" >
</div>
<div class="container3" >
</div>
<div class="container4" >
</di... |
<|user|>
Create an HTML webpage that displays a table. </s>
<|assistant|>
<html>
<head>
<title>Table Example</title>
</head>
<body>
<table>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
</tr>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Co... |
<|user|>
Create an HTML page that renders two checkboxes and a button using JavaScript. </s>
<|assistant|>
<html>
<head>
<script>
function renderCheckboxes() {
var checkboxes = document.createElement("input");
checkboxes.type = "checkbox";
checkbox... |
<|user|>
Create an HTML page that contains an input field and a submit button; when the button is clicked, it should print the input text in the HTML page. </s>
<|assistant|>
<html>
<head>
<script>
function printInput() {
let input = document.getElementById("input").value;
... |
<|user|>
Construct a HTML page that takes a user input and display the response. </s>
<|assistant|>
<html>
<body>
<form action="" method="POST">
Enter your name: <input type="text" name="name"><br>
<input type="submit" value="Submit">
</form>
<?php
if (isset($_POST['name'])) {
echo "Hello, " . $_POS... |
<|user|>
Edit the following HTML string so that it sets the background color of the page to "blue". <html>
<body>
</body>
</html></s>
<|assistant|>
<html>
<body style="background-color: blue;">
</body>
</html></s>
|
<|user|>
Create a HTML page to display a table with 5 rows and 4 columns of data. </s>
<|assistant|>
<html>
<head>
<title>Table Example</title>
</head>
<body>
<table>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>Row 1, Column 3</td>
<td>Row 1, Column 4</td>
</tr>
<tr>
<... |
<|user|>
Create an HTML page that displays a table with three columns: Name, Age, and Gender. </s>
<|assistant|>
<html>
<head>
<title>Table Examples</title>
</head>
<body>
<table>
<caption>People Table</caption>
<tr>
<th>Name</th>
<th>A... |
<|user|>
Correct the following HTML code and check the output in a browser. <html>
<heade>
<title>Test Page</title>
</heade>
<body>
<p>This is a test.</p>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<p>This is a test.</p>
</body>
</html></s>
|
<|user|>
Create an HTML page that uses Bootstrap to create a responsive navigation bar. </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>
<link rel="stylesheet" href="https://stackpath.boot... |
<|user|>
Write an HTML page with an input form having two text input fields </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My page</title>
</head>
<body>
<form>
<input type="text" name="name" placeholder="Name">
<input type="text" name="email" placeholder="Email">
<input type="submit" value="Su... |
<|user|>
Generate a short HTML div element. </s>
<|assistant|>
<div></div></s>
|
<|user|>
Write an HTML document with a table containing three columns: name, email and phone. </s>
<|assistant|>
<html>
<head>
<title>Contacts Table</title></title>
</head>
<body>
<table>
<thead>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
</thead>
<tbody>
<tr>
<td>John</td>
<t... |
<|user|>
Create a program in HTML to display the following two paragraphs side by side. P1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
P2: Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo con... |
<|user|>
Create a new HTML page and add a heading to it. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My HTML Page</title>
</head>
<body>
<h1>My Page Heading</h1>
</body>
</html></s>
|
<|user|>
Create an HTML page containing a form labeled "Contact Us" containing 3 input fields named: name, email, and message. </s>
<|assistant|>
<html>
<head>
<title>Contact Us</title>
</head>
<body>
<h1>Contact Us</h1>
<form>
Name: <input type="text" name="name"/><br />... |
<|user|>
Write an HTML page containing an <input> element with the name "username". </s>
<|assistant|>
<html>
<head>
</head>
<body>
<input type="text" name="username"/>
</body>
</html></s>
|
<|user|>
Write HTML code to set the font size of a page to 18px. </s>
<|assistant|>
<html>
<head>
<style>
body {
font-size: 18px;
}
</style>
</head>
</html></s>
|
<|user|>
Create a HTML page with a table which contains data about the student population. </s>
<|assistant|>
<html>
<body>
<table>
<tr>
<th>Student Name</th>
<th>Class</th>
<th>Age</th>
</tr>
<tr>
<td>John</td>
<td>8th</td>
<td>14</td>
</tr>
<tr>
<td>Ann</td>
<td>9th</td>
<td>15</td>
</tr>
<tr>
<t... |
<|user|>
Create a HTML page displaying a table holding information about the 10 most populous countries in the world. </s>
<|assistant|>
<html>
<head>
<title>Population of the World</title>
</head>
<body>
<table>
<tr>
<th>Country</th>
<th>Population</th>
</tr>
<tr>
... |
<|user|>
Use HTML to create a webpage which featured a table. </s>
<|assistant|>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My Table Webpage</h1>
<table>
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
<tr>
<td>Row 1, Column 1<... |
<|user|>
Create a basic UI in HTML/CSS for a shopping cart website. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Shopping Cart</title>
<style>
body { margin: 0px; }
#container {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
#header {
height: 100px;
back... |
<|user|>
Use CSS to style an HTML table with a heading and 6 rows and 4 columns. </s>
<|assistant|>
<html>
<head>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
text-align: left;
... |
<|user|>
Edit this HTML code to only display the title. <html>
<head>
<title>HTML Document</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>HTML Document</title>
</head>
</html></s>
|
<|user|>
Edit the provided HTML structure to add an ordered list inside the body with 3 list items. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Webpage</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Webp... |
<|user|>
Build a HTML page with the provided structure. <html>
<head>
</head>
<body>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Welcome to my page</h1>
<p>This is a simple page example built with HTML and CSS.</p>
... |
<|user|>
Edit the following HTML to link the page with a stylesheet <!DOCTYPE html>
<html>
<head>
<title>My Page</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My Page</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
</body>
</html></s>
|
<|user|>
Write a HTML code for a webpage that displays the headline "Hello World!". </s>
<|assistant|>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html></s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.