text stringlengths 79 2.28k |
|---|
<|user|>
Write an HTML page with a header that displays your name. </s>
<|assistant|>
<html>
<head>
<title>My webpage</title>
</head>
<body>
<h1>My name is John Smith</h1>
</body>
</html></s>
|
<|user|>
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></s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My Form</title>
</head>
<body>
<form action="#">
... |
<|user|>
Edit the existing code to focus the cursor in the input field. <html>
<body>
<input type="text" id="myInput" />
<script type="text/javascript">
document.getElementById('myInput').focus();
</script>
</body>
</html></s>
<|assistant|>
<html>
<body>
<input ty... |
<|user|>
Compose a basic HTML page to display the phrase "Contact us now!" </s>
<|assistant|>
<html>
<head>
<title>Contact Page</title>
</head>
<body>
<h1>Contact Us Now!</h1>
</body>
</html></s>
|
<|user|>
Write an HTML page with a form having two textboxes and two buttons. </s>
<|assistant|>
<html>
<body>
<form>
<input type="text" id="textbox1" /><br>
<input type="text" id="textbox2" /><br>
<button name="submitbtn">Submit</button><br>
<button name="resetbtn">Reset</button><br... |
<|user|>
Create an HTML template for a login form having username and password. </s>
<|assistant|>
<html>
<head>
<title>Login Form</title>
</head>
<body>
<form action="" method="POST">
<label>Username:</label><input type="text" />
<label>Password:</label><input type="... |
<|user|>
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</s>
<|assistant|>
<html>
<head>
<title>Table Data</title>
</head>
<body>
<table>
... |
<|user|>
Write an HTML page with two headings "Home" and "About". </s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Title</title>
</head>
<body>
<h1>Home</h1>
<h1>About</h1>
</body>
</html></s>
|
<|user|>
Develop an HTML page with a div and table, and use CSS to make alternating rows of the table red and blue. </s>
<|assistant|>
<html>
<head>
<style>
table tr:nth-child(2n) {
background-color: red;
}
table tr:nth-child(2n+1) {
backgr... |
<|user|>
Generate a dynamic HTML table displaying 10 random numbers from 1 to 100. </s>
<|assistant|>
<html>
<head>
</head>
<body>
<div>
<table>
<tr><th>Random Numbers</th></tr>
<tr><td><?php echo rand(1,100); ?></td></tr>
<tr><td><?php echo rand(1,100); ?... |
<|user|>
Develop an HTML form which includes two input fields, an label and a submit button. </s>
<|assistant|>
<html>
<head>
</head>
<body>
<form>
<label>Name: </label><input type="text" name="name"><br>
<label>Age: </label><input type="text" name="age"><br>
<inp... |
<|user|>
Develop an HTML page with three sections, each containing different colors. </s>
<|assistant|>
<html>
<head>
<style>
#section1 {
background-color: red;
}
#section2 {
background-color: blue;
}
#section3 {
... |
<|user|>
Construct a set of HTML tags to design a simple two-column layout. </s>
<|assistant|>
<html>
<head>
<title>Two-column layout</title>
</head>
<body>
<div class="container">
<div class="column-left">
<!--Your content here-->
</div>
<div class="column-right">
<!--Yo... |
<|user|>
Write some HTML code that adds a background color to the complete web page. </s>
<|assistant|>
<html>
<head>
<style> body {background-color: #F0F0F0;}</style>
</head>
</html></s>
|
<|user|>
Create a website that displays the current day's weather forecast in Philadelphia. </s>
<|assistant|>
<html>
<head>
<title>Weather App</title>
</head>
<body>
<h1>Weather in Philadelphia</h1>
<h2>Today</h2>
<div id="weather">
<script>
// API call to get the weather forecast
fetch("https://a... |
<|user|>
Create a HTML page which displays the result of multiplying two user-provided numbers. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Multiply</title>
</head>
<body>
<h1>Multiplication Result</h1>
<form action="" method="POST">
Enter the first number: <input type="text" name="nu... |
<|user|>
Write a short HTML page to display a welcome message. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>Welcome!</h1>
</body>
</html></s>
|
<|user|>
Generate a valid HTML page with the following styles and content background color: yellow;
padding: 10px;
Content: "Hello World!"</s>
<|assistant|>
<html>
<head>
<title>Hello World!</title>
<style>
body {
background-color: yellow;
padding: 10px;
}
</style>
</head>
... |
<|user|>
Edit this HTML code to add the Google Font “Roboto”. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First Web Page</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?fa... |
<|user|>
Create an HTML page that displays two columns consisting of the numbers 1 to 10. </s>
<|assistant|>
<!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>
... |
<|user|>
Design a HTML page with a header and 2 sections </s>
<|assistant|>
<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></s>
|
<|user|>
Create a HTML page to display a table in the following format. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Table</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Address</th>
<th>Phone</th>
</tr... |
<|user|>
Create a HTML page containing an input field, a submit button and a table for displaying the results. </s>
<|assistant|>
<html>
<head>
<title>A Sample HTML Page</title>
</head>
<body>
<form>
<input type="text" id="input-field" />
<input type="submit" value="Submit" />
</form>
<t... |
<|user|>
Generate a web page which shows the top 10 trending movies of the year. </s>
<|assistant|>
<html>
<head>
<title>Top 10 Trending Movies of the Year</title>
</head>
<body>
<h1>Top 10 Trending Movies of the Year</h1>
<ul>
<li>Avengers: Endgame</li>
<li>Captain Marvel</li>
<li>S... |
<|user|>
Generate an HTML page with a table containing all the elements of an array in JavaScript. [1, 2, 3, 4]</s>
<|assistant|>
<html>
<head>
<title>Array Table</title>
</head>
<body>
<table>
<tr>
<th>Element Value</th>
</tr>
<tr>
<td>1</td>
... |
<|user|>
Create a HTML page with given header and footer elements. Header: <h1>Hi there!</h1>
Footer: <h5>Goodbye!</h5></s>
<|assistant|>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Hi there!</h1>
<div>
// Page content goes here
</div>
<h5>Goodbye!</h5>
</body>
</html>... |
<|user|>
Create a web page that has a button to toggle a navigation bar. </s>
<|assistant|>
<html>
<head>
<title>Menu toggle example</title>
</head>
<body>
<h1>Toggle Menu</h1>
<div id="menu-container">
<a href="link1.html">Link 1</a>
<a href="link2.html">Link 2</a>
<a href="link3.ht... |
<|user|>
Create a web page to display all the weekdays </s>
<|assistant|>
<html>
<head>
<title>Weekdays</title>
</head>
<body>
<h1>Weekdays</h1>
<ul>
<li>Monday</li>
<li>Tuesday</li>
<li>Wednesday</li>
<li>Thursday</li>
<li>... |
<|user|>
Write an HTML page which displays the current time and date. </s>
<|assistant|>
<html>
<body>
<p>Today is <span id="date"> </span> and the time is <span id="time"> </span>.</p>
<script>
let d = new Date();
let date = d.toDateString();
document.getElementById("date").innerHTML = date;
let ti... |
<|user|>
Draft an HTML page with a table that contains three columns and two rows. </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 Data 1</... |
<|user|>
Create an HTML page demonstrating the application of "for" loop in JavaScript </s>
<|assistant|>
<html>
<head>
<script>
for(let i=0; i<5; i++){
console.log('loop ' + i);
}
</script>
</head>
<body>
</body>
</html></s>
|
<|user|>
Generate a HTML table to display the following data. Row1: Name: Harry Age: 18
Row2: Name: Jane Age: 20</s>
<|assistant|>
<html>
<head>
<title>Data Table</title>
</head>
<body>
<h1>Data Table</h1>
<table>
<tr>
<th>Name</th>
... |
<|user|>
Create a HTML page displaying 3 columns of data Data: ["Name", "Age", "Gender"],
["Bob", 35, "Male"],
["John", 28, "Male"],
["Sarah", 39, "Female"]</s>
<|assistant|>
<html>
<head>
<title>Data</title>
</head>
<body>
<table>
<thead>
<th>Name</th>
<th>Age</th>
<th>Gender</th>... |
<|user|>
Create a HTML page containing a form with three input boxes. </s>
<|assistant|>
<html>
<body>
<form>
<input type="text" name="box1" />
<input type="text" name="box2" />
<input type="text" name="box3" />
</form>
</body>
</html></s>
|
<|user|>
Create an HTML page of a multi-step registration form. Step 1: Name and Email
Step 2: Address
Step 3: Password</s>
<|assistant|>
<html>
<head>
<title>Registration Form</title>
<style>
body {
font-family: sans-serif;
}
.container {
width: 500px;
margin: 0 auto;
}
.form-steps {
paddin... |
<|user|>
Write an HTML document with a heading, a paragraph and a link to www.example.com. </s>
<|assistant|>
<html>
<head>
<title>Example HTML</title>
</head>
<body>
<h1>Heading</h1>
<p>This is a paragraph.</p>
<a href="www.example.com">Link to example.com</a>
</body>
</html></s>
|
<|user|>
Write a HTML web page with a heading, paragraph, and a form with two input fields, one for name and one for age. </s>
<|assistant|>
<html>
<head>
<title>Example HTML</title>
</head>
<body>
<h1>Heading</h1>
<p>This is a paragraph.</p>
<form>
Name: <input t... |
<|user|>
Create a HTML page with a header containing the text "My page" and an empty body section. </s>
<|assistant|>
<html>
<head>
<title>My page</title>
</head>
<body>
</body>
</html></s>
|
<|user|>
Create an HTML page that displays the name, address, email and phone number of a given user. Name: John Doe
Address: 123 Main Street
Email: john@example.com
Phone: 987654321</s>
<|assistant|>
<html>
<head>
<title>John Doe's information</title>
</head>
<body>
<h1>John Doe</h1>
<p>
Addr... |
<|user|>
Create a web page to display a result of a dictionary containing all countries in the world and its corresponding capital in three columns. </s>
<|assistant|>
<html>
<head>
<title>Countries and Capitols</title>
</head>
<body style="background-color: #f9f9f9; font-family: sans-serif; padding: 50px">
<h1... |
<|user|>
Write an HTML page from scratch to display a user's contact information. name: John Doe;
age: 46;
phone: +1 (312) 555-4879;
email: john.doe@example.com;</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>John Doe's Contact Information</title>
</head>
<body>
<h2>John Doe</h2>
<p>Age: 46</p>
... |
<|user|>
Create a web page with a header and a paragraph, both with some text. </s>
<|assistant|>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<h1>My Web Page</h1>
<p>This is my web page. It has a header and a paragraph.</p>
</body>
</html></s>
|
<|user|>
Construct a HTML page which displays a table with all words of a given string. string = "Hello World"</s>
<|assistant|>
<html>
<head>
<title>Table of Words</title>
</head>
<body>
<table border="1">
<tr>
<th>Word</th>
</tr>
<tr>
<td>Hello</td>
</tr>
... |
<|user|>
Write an HTML page that displays the text "My favorite color is blue" in a blue font. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My Favorite Color</title>
</head>
<body>
<h1 style="color: blue;">My favorite color is blue</h1>
</body>
</html></s>
|
<|user|>
Write an HTML code to display a webpage with a centered paragraph. </s>
<|assistant|>
<html>
<head>
<title>Centered Paragraph</title>
</head>
<body>
<div style="text-align:center;">
<p>This is a centered paragraph.</p>
</div>
</body>
</html></s>
|
<|user|>
Create a new HTML page and add a <div> element inside the <body>. </s>
<|assistant|>
<html>
<head>
<title>New Page</title>
</head>
<body>
<div></div>
</body>
</html></s>
|
<|user|>
Create a web page to display the current weather in your city. The weather data should be in the form of temperature, humidity, wind speed, and barometric pressure.</s>
<|assistant|>
<html>
<head>
<title>Current Weather</title>
</head>
<body>
<p>Temperature: <span id="temperature"></span></p>
... |
<|user|>
Design an HTML form to register users on a website. </s>
<|assistant|>
<html>
<head>
<title>User Registration Form</title>
</head>
<body>
<h1>Register a new user</h1>
<form action="register.php" method="POST">
<label>First Name:</label><br>
<input type="text" name="firstName" requi... |
<|user|>
Create a HTML page which displays "Hello, World!" on the screen. </s>
<|assistant|>
<html>
<head>
<title>Hello, World!</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html></s>
|
<|user|>
Add AJAX functionalities to the following HTML document. <!DOCTYPE html>
<html>
<head>
<title>AJAX Example</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>AJAX Example</title>
<script>
function loadData(){
var xhttp = new XMLHttpRequest();
xhttp.onreadysta... |
<|user|>
Create an HTML page with an <h1> heading "Welcome!" and a <p> paragraph with the text "I am happy to be here." </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Welcome!</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I am happy to be here.</p>
</body>
</html></s>
|
<|user|>
Change the following HTML page to an Angular web page. <html>
<head>
<title>TITLE</title>
</head>
<body>
<h1>HEADER</h1>
<p>Paragraph</p>
</body>
</html></s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>TITLE</title>
<script src="https://unpkg.com/@angular/core@8.2.14/bundles/core.umd.js"... |
<|user|>
Create a HTML page to show a list of employees, their departments and corresponding salary ranges. John Doe - Sales - 35000 - 50000
Jane Doe - Marketing - 40000 - 65000</s>
<|assistant|>
<html>
<head>
<title>Employees</title>
</head>
<body>
<h1>Employees</h1>
<ul>
<li>John Doe - Sales -... |
<|user|>
Create an HTML page with a header containing the text "Welcome to our website". </s>
<|assistant|>
<html>
<head><title>Welcome to our website</title></head>
<body>
<h1>Welcome to our website</h1>
</body>
</html></s>
|
<|user|>
Generate a HTML code which has a black background and white font. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: black;
color: white;
}
</style>
</head>
<body>
</body>
</html></s>
|
<|user|>
Construct a HTML page that displays a form with a text field and a submit button. </s>
<|assistant|>
<!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>
</bod... |
<|user|>
Edit this HTML page to make the page have a centered heading <html>
<head>
<title>Sample Page</title>
</head>
<body>
<h1>Heading</h1>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>Sample Page</title>
</head>
<body>
<h1 style="text-align: center;">Heading</h1>
</body>
</html></s>
|
<|user|>
Create an HTML page with a blurred background and centered text "Hello World". </s>
<|assistant|>
<html>
<head>
<style>
body {
background-image: url("background.jpg");
background-size: cover;
background-blur: 10px;
}
.container {
position: relative;
... |
<|user|>
Create a HTML page that displays the current time. </s>
<|assistant|>
<html>
<head>
<title>Time Display</title>
<script>
function updateTime() {
let currTime = new Date();
document.getElementById("currentTime").innerHTML = currTime.toLocaleTimeString();
}
... |
<|user|>
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. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>3 Column Layout</title>
<style>
body {
width: 1000px;
margin: 0 auto;
}
.column-left {
... |
<|user|>
Generate a HTML document with 3 divs, each div being 50px wide and 100px tall </s>
<|assistant|>
<html>
<head>
<title>HTML Div Test</title>
</head>
<body>
<div style="width:50px; height:100px;">Div 1</div>
<div style="width:50px; height:100px;">Div 2</div>
<div style="width:50px; height:1... |
<|user|>
Using jQuery, update the HTML code to provide the user a toggle switch that changes the text from "off" to "on" when clicked. <div>
<p>Status: <span class='status'>off</span></p>
</div></s>
<|assistant|>
<div>
<p>Status: <span class='status'>off</span>
<button onclick="toggleStatus()">Toggle</b... |
<|user|>
Create an HTML page with a form containing a checkbox. </s>
<|assistant|>
<html>
<body>
<form>
<input type="checkbox" />
</form>
</body>
</html></s>
|
<|user|>
Using HTML and CSS, create a page layout with two columns and a header row. </s>
<|assistant|>
<html>
<head>
<style>
.table {
display: table;
width: 100%;
}
.table-row {
display: table-row;
}
.table-cell {
display: table-cell;
}
... |
<|user|>
Rewrite this HTML code so that it is valid HTML5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example website</title>
</head>
<body>
<h1>My example website</h1>
<p>This is some example text</p>
</body>
</html></s>
<|assist... |
<|user|>
Create a simple php website using the following data records. [
{
"firstname": "Oliver",
"lastname": "Smith",
"address": "1234 Main Street, City, Country"
},
{
"firstname": "John",
"lastname": "Doe",
"address": "5678 Long Road, City, Country"
},
{
"firstname": "Chris",
... |
<|user|>
Using HTML and CSS, create a page to display a list of users with their contact information </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>User Info</title>
<style>
tr, td {
border: 1px solid black;
padding: 5px;
}
</style>
</head>
<body>
<table>
... |
<|user|>
Design an HTML form to enter student name, age, and course. </s>
<|assistant|>
<html>
<head>
<title>Student Info Form</title>
</head>
<body>
<form action="/submit" method="POST">
<label>Name:</label><br>
<input type="text" name="name"><br><br>
... |
<|user|>
Write an HTML code to create a basic structure for a website. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
</body>
</html></s>
|
<|user|>
Create a HTML program to simulate a digital clock </s>
<|assistant|>
<html>
<head>
<title>Digital Clock</title>
<script>
function showTime(){
var date = new Date();
var h = date.getHours(); // 0 - 23
var m = date.getMinutes(); // 0 - 59
var s = da... |
<|user|>
Create an HTML page that has a table and populates the table with the given data. Country | Capital
India | New Delhi
United States | Washington DC
Canada | Ottawa</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Country and Capital Table</title>
</head>
<body>
<h1>Country and Capital Tabl... |
<|user|>
Create an HTML page with a button and a text field to print the content of the text field when the button is clicked. </s>
<|assistant|>
<html>
<head>
<title>Print Text</title>
</head>
<body>
<input type="text" id="textField" />
<button onclick="printText()">Print</button>
<script>
... |
<|user|>
Write an HTML page to display three columns with headings ‘Name’, ‘Age’ and ‘Occupation’ in a table layout. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Simple Table Layout</title>
</head>
<body>
<h1>Table with Three Columns</h1>
<table>
<tr>
<th>Name</th>
... |
<|user|>
Write a HTML page to set a background color for a table with the color code '#e6e6fa'. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Table with Background Color</title>
</head>
<body>
<h1>Table with Background Color</h1>
<table style="background-color: #e6e6fa;">
<tr... |
<|user|>
Create an interface for a number guessing game using HTML, CSS, and JavaScript. </s>
<|assistant|>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Number Guessing Game</title>
<style>
* {
... |
<|user|>
Generate a valid HTML page given the body contents. <h1>Hello World!</h1>
<p>This is a simple HTML page.</p></s>
<|assistant|>
<html>
<head>
</head>
<body>
<h1>Hello World!</h1>
<p>This is a simple HTML page.</p>
</body>
</html></s>
|
<|user|>
Create a simple webpage to welcome visitors with a centered heading "Welcome". </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Welcome</title>
<style>
h1 {
text-align: center;
}
</style>
</head>
<body>
<h1>Welcome</h1>
</body>
</html></s>
|
<|user|>
Create a HTML web page with a header, a body and a footer section. </s>
<|assistant|>
<html>
<head>
<title>My Web Page</title>
</head>
<body>
<!-- content goes here -->
</body>
<footer>
<!-- footer content goes here -->
</footer>
</html></s>
|
<|user|>
Create a web page that contains three input boxes for a user to input name, age, and gender. </s>
<|assistant|>
<html>
<head>
<title>Input Form</title>
</head>
<body>
<form>
Name:<br>
<input type="text" name="name"><br>
Age:<br>
<input... |
<|user|>
Create a basic HTML skeleton for a web page. </s>
<|assistant|>
<html>
<head>
<title>Basic Webpage</title>
</head>
<body>
</body>
</html></s>
|
<|user|>
Create a basic form in HTML containing two input boxes for first name and surname. </s>
<|assistant|>
<html>
<head>
<title>User Information Form</title>
</head>
<body>
<form>
First Name:<br>
<input type="text" name="firstname"><br>
Surname:<br>
<input type="text" name="sur... |
<|user|>
Create a basic HTML page with a <title> tag and a <h1> tag. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Create a basic HTML page</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html></s>
|
<|user|>
Create a HTML page that takes two text strings as inputs and outputs the longest one. </s>
<|assistant|>
<html>
<head>
<title>Input and Compare Strings</title>
</head>
<body>
Enter two strings:
<input type="text" id="str1" />
<input type="text" id="str2" />
<input type="button" value=... |
<|user|>
Write a HTML form to take in two user inputs and display their sum. </s>
<|assistant|>
<html>
<body>
<form>
Enter Number 1: <input type="text" name="num1" /> <br />
Enter Number 2: <input type="text" name="num2" /> <br />
<input type="submit" value="Submit" />
</form>
<script>
... |
<|user|>
Construct an HTML form with five input fields: Name, Username, Password, Email, and Phone number. </s>
<|assistant|>
<html>
<body>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name">
<br>
<label for="username">Username:</label>
<input type... |
<|user|>
Format the following HTML tags correctly. <html><head> <title>hello world</title></head></html></s>
<|assistant|>
<html>
<head>
<title>Hello World</title>
</head>
</html></s>
|
<|user|>
Create an HTML page with a Table, which lists out the names and usernames of 4 people. Jenny, jenny123
John, john123
Alice, alice123
Bob, bob123</s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>Table example</title>
</head>
<body>
<h1>Names and Usernames</h1>
<table>
<thead>
... |
<|user|>
Build a HTML page using the given CSS class CSS Classes:
.container {
width: 300px;
height: 200px;
background-color: blue;
}
.text {
color: white;
font-family: Arial;
font-size: 16px;
padding: 15px;
text-align: center;
}</s>
<|assistant|>
<html>
<head>
<style>
.container {
... |
<|user|>
Edit this HTML code to add a link element in the head of the page. <html>
<head>
<title>Example page</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>Example page</title>
<link href="style.css" rel="stylesheet">
</head>
<body>
</body>
</html></s>
|
<|user|>
Create a web page that shows a short biography of the given person. Person: Marie Curie</s>
<|assistant|>
<html>
<head>
<title>Biography of Marie Curie</title>
</head>
<body>
<h1>Marie Curie</h1>
<p>Marie Curie (1867-1934) was a Polish physicist and chemist who conducted pioneering research o... |
<|user|>
Generate the HTML code for a page with a centered headline that says "My Portfolio". </s>
<|assistant|>
<html>
<head>
<title>My Portfolio</title>
</head>
<body>
<center>
<h1>My Portfolio</h1>
</center>
</body>
</html></s>
|
<|user|>
Edit the following HTML structure to include the Bootstrap 4 library. <html>
<head>
<title>My Web Page</title>
</head>
<body>
</body>
</html></s>
<|assistant|>
<html>
<head>
<title>My Web Page</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min... |
<|user|>
Create an HTML page containing a login form with the following fields: username, password, and submit button. </s>
<|assistant|>
<html>
<head>
<title>Login Form</title>
</head>
<body>
<form action="/login" method="POST">
<input type="text" name="username" placeholder="Username"/>
<input type="pass... |
<|user|>
Create an HTML page with a text input form and a submit button. </s>
<|assistant|>
<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>
<... |
<|user|>
Write an HTML page that displays a table containing the following columns: "Name", "Age", and "Marital Status". </s>
<|assistant|>
<html>
<head>
<title>Example Table</title>
</head>
<body>
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Marital Status</th>
</tr>
<tr>
<td>Joh... |
<|user|>
Construct a basic HTML page that renders a heading, a description of the page, and a photo. </s>
<|assistant|>
<!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>
... |
<|user|>
Create a HTML page with a list of items. </s>
<|assistant|>
<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></s>
|
<|user|>
Create a website using HTML and CSS. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
<link rel="stylesheet" href="style.css">
<head>
<body>
<h1>My Website</h1>
<div class="content">
Content goes here.
</div>
</body>
</html>
//style.css
body {
fon... |
<|user|>
Write HTML code to create a navigation bar with links to Home and About pages. </s>
<|assistant|>
<div>
<ul>
<li><a href="/home">Home</a></li>
<li><a href="/about">About</a></li>
</ul>
</div></s>
|
<|user|>
Create a HTML page which includes a header, subheader and a paragraph of text. </s>
<|assistant|>
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>My Page</h1>
<h2>Subheader</h2>
<p>This is some text in my page.</p>
</body>
</html></s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.