text stringlengths 79 2.28k |
|---|
<|user|>
Create a HTML form with a username and password text box </s>
<|assistant|>
<html>
<body>
<form action="">
<p>
Username: <input type="text" name="username" />
</p>
<p>
Password: <input type="password" name="password" />
</p>
<p>
<input type="submit" ... |
<|user|>
Use HTML and CSS to create a navigation bar. </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<style>
nav {
position: relative;
background-color: #e9ecef;
display: flex;
z-index: 999;
}
nav ul {
list-style-type: none;
... |
<|user|>
Create a HTML page that contains a text box and a submit button. </s>
<|assistant|>
<html>
<head>
<title>Input Form</title>
</head>
<body>
<form>
<input type="text" name="inputbox">
<input type="submit" value="Submit">
</form>
</body>
</html></s>
|
<|user|>
Write a HTML page that has a section of two columns and six rows. </s>
<|assistant|>
<html>
<head>
<style>
.section {
display:flex;
flex-direction:row;
}
.cell {
flex: 0 1 50%;
}
</style>
</head>
<body>
<div class="section">
<div class="cell"></div>
<div class=... |
<|user|>
Create an HTML page given a logo and some text. Logo: <img src="example_logo.png">
Text: Hello, world!</s>
<|assistant|>
<html>
<head>
<title>Example Page</title>
</head>
<body>
<div>
<img src="example_logo.png" alt="Example Logo" />
</div>
<div>Hello, world!</div>
</body>
</html>... |
<|user|>
Using HTML and JavaScript, write a script to display the current date in the format "Monday, June 15th" </s>
<|assistant|>
<html>
<head>
<title>Displaying Date</title>
<script type="text/javascript">
function getDate()
{
var d = new Date();
var month = ["January", "February", "M... |
<|user|>
Edit the following HTML page to contain two headings, 'Welcome to my website' and 'About Us'. <html>
</html></s>
<|assistant|>
<html>
<head>
<title>Welcome to my Website</title>
</head>
<body>
<h1>Welcome to my Website</h1>
<h2>About Us</h2>
</body>
</html></s>
|
<|user|>
Create an HTML page that contains a simple form with two input fields. </s>
<|assistant|>
<html>
<head>
<title>Simple Form</title>
</head>
<body>
<form name="form1" action="">
<input type="text" name="nameField" placeholder="Name">
<input type="text" name="emailField" placeholder="Email... |
<|user|>
Create a HTML page which displays the text "Hello World!" </s>
<|assistant|>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html></s>
|
<|user|>
Create an HTML page with a button and a tag cloud </s>
<|assistant|>
<html>
<head>
<title>Tag Cloud</title>
<style>
.tag-cloud {
position: relative;
font-size: 0;
}
.tag {
display: inline-block;
border-radius: 10px;
... |
<|user|>
Create a web page with two radio buttons and two text inputs </s>
<|assistant|>
<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>
... |
<|user|>
Modify the following HTML code to insert a paragraph with the text "Hello, world!" <div>
<h1>This is a heading</h1>
</div></s>
<|assistant|>
<div>
<h1>This is a heading</h1>
<p>Hello, world!</p>
</div></s>
|
<|user|>
Create a HTML page with a heading "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|>
Create an HTML page that displays an ordered list of strings provided in an array. </s>
<|assistant|>
<html>
<body>
<h1>My List</h1>
<ol>
<li>String1</li>
<li>String2</li>
<li>String3</li>
<!-- and so on -->
</ol>
</body>
</html></s>
|
<|user|>
Write an HTML page that displays your name and the names of your three favorite hobbies </s>
<|assistant|>
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<p>My name is John Doe and my three favorite hobbies are music, reading, and hiking.</p>
</body>
</ht... |
<|user|>
Create a web page to display a list of blog posts. </s>
<|assistant|>
<html>
<head></head>
<body>
<h2>List of Blog Posts</h2>
<div id="blog_list">
<!-- loop to output blog posts from database -->
<?php
$blog_posts = $db->get_blog_posts();
foreach($blog_posts as $post): ?>
<div class="post">
... |
<|user|>
Construct a basic HTML page and display the text "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|>
Generate a HTML page of a table with user details and each row of the table should contains an 'Edit' button for each user. data = [
{"name": "John Smith", "age": 32, "city": "New York"},
{"name": "Julia Cooper", "age": 28, "city": "Los Angeles"},
{"name": "Max Bailey", "age": 36, "city": "London"}
]<... |
<|user|>
Write an HTML webpage that displays the given text in two columns side by side <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ornare et ipsum at mollis. Duis in euismod dui.</p></s>
<|assistant|>
<html>
<head>
<style>
.column {
float: left;
width: 50%;
}
... |
<|user|>
Create a web page with a simple registration form that contains fields for username, password, and email. </s>
<|assistant|>
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<h1>Registration Form</h1>
<form action="">
<label for="username">Username:</label><br>
<input type="text"... |
<|user|>
Compile and execute this HTML program to display "Hello World" on the screen. <html>
<body>
<h1>Hello World</h1>
</body>
</html></s>
<|assistant|>
<html>
<body>
<h1>Hello World</h1>
</body>
</html>
Hello World</s>
|
<|user|>
Using HTML and CSS, create an interactive button. </s>
<|assistant|>
<html>
<head>
<style>
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cur... |
<|user|>
Write a CSS HTML snippet to create the following design. </s>
<|assistant|>
<div>
<div class="first">
<div class="square">1</div>
<div class="square">2</div>
<div class="square">3</div>
</div>
<div class="second">
<div class="square">4</div>
<div class="squar... |
<|user|>
Create a web page in HTML with a heading and a paragraph of text. </s>
<|assistant|>
<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></s>
|
<|user|>
Create an HTML page with a form to capture the user's name and age. </s>
<|assistant|>
<html>
<head><title>User Information Form</title></head>
<body>
<h2>User Information Form</h2>
<form action="user_information.php" method="post">
<p>Name: <input type="text" name="name"></... |
<|user|>
Modify the html string below by removing the < h2> and </ h2> tags. <div>
<h2>Task Instructions</h2>
<p>Write a program to calculate the area and perimeter of a rectangle.</p>
</div></s>
<|assistant|>
<div>
<p>Write a program to calculate the area and perimeter of a rectangle.</p>
</div></s>
|
<|user|>
Build a HTML page which contains the given string in the format of a paragraph. This is the sample string.</s>
<|assistant|>
<html>
<body>
<p>This is the sample string.</p>
</body>
</html></s>
|
<|user|>
Create a html page that displays the following text on the web page. Hello World!!</s>
<|assistant|>
<html>
<head>
<title>Hello World!! </title>
</head>
<body>
Hello World!!
</body>
</html></s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.