text
stringlengths
69
2.38k
<s>[INST] <<SYS>> Use PHP to create a login page which contains an input field to accept the username and a submit button. <</SYS>> [/INST] <!DOCTYPE html> <html> <body> <form action="action_login.php" method="post"> Username: <input type="text" name="username"> <input type="submit" value="Submit"> </form> </bod...
<s>[INST] <<SYS>> Decompile the following HTML code <</SYS>> <h1>Hello World</h1> [/INST] <html> <head> </head> <body> <h1>Hello World</h1> </body> </html> </s>
<s>[INST] <<SYS>> Create a basic HTML page using HTML tags. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>My page</title> </head> <body> <h1>This is my page</h1> </body> </html> </s>
<s>[INST] <<SYS>> Using HTML and CSS, create a basic website with three sections. <</SYS>> [/INST] <!DOCTYPE html> <html lang="en"> <head> <title>My Website</title> <style> .section{ width: 75%; padding: 25px; margin: auto; } #section1, #section2, #s...
<s>[INST] <<SYS>> Create a JavaScript program to provide real-time search results for a given list of elements. <</SYS>> list = [“Apple”, “Banana”, “Orange”] [/INST] <!DOCTYPE html> <html lang="en"> <head> <title>Real-time Search Results</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.m...
<s>[INST] <<SYS>> Create a web page with two input boxes to calculate the total cost of a product after sales tax. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Price and Tax Calculations</title> <script> function calculate(){ let price = document.getElementById('...
<s>[INST] <<SYS>> Write an HTML page containing a heading with the text "Welcome". <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Welcome</title> </head> <body> <h1>Welcome</h1> </body> </html> </s>
<s>[INST] <<SYS>> Edit this HTML code to make it compliant with the HTML5 standard. <</SYS>> <html> <head> <title>My HTML Page</title> </head> <body> <p>My HTML Page</p> </body> </html> [/INST] <!DOCTYPE html> <html> <head> <title>My HTML Page</title> </head> <body> <p>My HTML Page</p> </body> </html> </s>
<s>[INST] <<SYS>> Create a basic HTML page with a heading and a paragraph of text. <</SYS>> [/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> </s>
<s>[INST] <<SYS>> Generate a valid HTML markup from the given JSON data. <</SYS>> { "name": "Sample Name", "city": "New Delhi", "state": "Delhi" } [/INST] <html> <head> <title>Sample Information</title> </head> <body> <h2>Sample Information</h2> <ul> <li>Name: Sample Name</li> <li>Ci...
<s>[INST] <<SYS>> Create a website for the company ACME with all the following pages: Home, About Us, Contact Us, FAQ and Privacy Policy. <</SYS>> [/INST] <html> <head> <title>ACME</title> </head> <body> <header> <h1>ACME</h1> </header> <nav> <ul> <li><a href="index.html">Ho...
<s>[INST] <<SYS>> Create a web page with two text fields for username and password. <</SYS>> [/INST] <html> <head> <title>Login</title> </head> <body> <h1>Login</h1> <form action=""> <label for="username">Username:</label> <input type="text" name="username" id="username" /> <label fo...
<s>[INST] <<SYS>> Create a HTML page that displays the top 5 countries in the world by population. <</SYS>> Country Population (Millions) China 1400 India 1351 United 329 Indonesia 265 Brazil 212 [/INST] <!DOCTYPE html> <html> <head> <title>World's Top 5 Countries By Population</title> <style> ...
<s>[INST] <<SYS>> Edit the given HTML code so that the header of the web page is centered. <</SYS>> <html> <head> <title>Centering a header</title> </head> <body> <h1>This header is not centered</h1> </body> </html> [/INST] <html> <head> <title>Centering a header</title> </head> <...
<s>[INST] <<SYS>> Generate a complete HTML document using the given parameters. <</SYS>> title: GPT Demo heading: Welcome to the GPT Demo body: This is a demo of GPT on coding tasks. [/INST] <!DOCTYPE html> <html> <head> <title>GPT Demo</title> </head> <body> <h1>Welcome to the GPT Demo</h1> <p>This is a de...
<s>[INST] <<SYS>> Create an HTML page with a table containing 2 columns. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Table Design</title> </head> <body> <table> <tr> <th>Column 1</th> <th>Column 2</th> </tr> </table> </body> </html> </s>
<s>[INST] <<SYS>> Generate a HTML page displaying the following information <</SYS>> Company name: Acme Corp Company motto: “We make the impossible possible!” [/INST] <html> <head> <title>Acme Corp</title> </head> <body> <h1>Acme Corp</h1> <p>We make the impossible possible!</p> </body> </html> </s>
<s>[INST] <<SYS>> Write an HTML page to calculate the area of a circle given its radius. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Area of Circle</title> <script> // get radius from user var radius = prompt("Enter the radius of Circle"); // calculate a...
<s>[INST] <<SYS>> Create a HTML page to show a result of the sum of two numbers. <</SYS>> [/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 ...
<s>[INST] <<SYS>> Create an HTML page with 4 sections containing text. <</SYS>> [/INST] <html> <body> <h1>Heading1</h1> <p>Paragraph1</p> <h2>Heading2</h2> <p>Paragraph2</p> <h3>Heading3</h3> <p>Paragraph3</p> <h4>Heading4</h4> <p>Paragraph4</p> </body> </html> </s>
<s>[INST] <<SYS>> Create a HTML page that includes a table with 3 columns and 3 rows. <</SYS>> [/INST] <html> <head> <title>Table Example</title> </head> <body> <table> <tr> <th>Column 1 Header</th> <th>Column 2 Header</th> <th>Column 3 Header</th> </tr> <tr> ...
<s>[INST] <<SYS>> Generate a web page with a navigation bar on it. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Navbar Page</title> <style> .navbar { width: 100%; background-color: #555; } .navbar a { float: left; padding: 12px; color: white; ...
<s>[INST] <<SYS>> Edit a given HTML page and add a new link. <</SYS>> <html> <head> <title>My webpage</title> </head> <body> Welcome to my webpage! </body> </html> [/INST] <html> <head> <title>My webpage</title> </head> <body> Welcome to my webpage! <a href="https://exa...
<s>[INST] <<SYS>> Build a website with HTML and CSS containing three headings and two paragraphs. <</SYS>> [/INST] <html> <head> <style> h1 { color: red; font-size: 32px; } h2 { color: blue; font-size: 24px; } h3 { color: green; font-si...
<s>[INST] <<SYS>> Design an HTML page that prints out "Hello, World!" in two columns. <</SYS>> [/INST] <html> <head> <title>Hello, World!</title> </head> <body> <div style="display: flex;"><div>Hello,</div><div> World!</div></div> </body> </html> </s>
<s>[INST] <<SYS>> How to write an HTML page that displays the number from 1 to 10? <</SYS>> [/INST] <html> <body> <div> <h2>Number from 1 to 10</h2> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6</li> <li>7</li> <li>8</li...
<s>[INST] <<SYS>> Create a simple HTML webpage without using any external stylesheets. <</SYS>> [/INST] <html> <head> <title>My Web Page</title> </head> <body> <h1>Welcome to My Web Page</h1> <p>This is my first web page.</p> </body> </html> </s>
<s>[INST] <<SYS>> Create a new HTML page with two buttons. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Two Buttons</title> </head> <body> <button>Button 1</button> <button>Button 2</button> </body> </html> </s>
<s>[INST] <<SYS>> Create a web page with a CSS style to hide all paragraphs in the HTML body. <</SYS>> [/INST] <html> <head> <style> p { display: none; } </style> </head> <body> <p>This paragraph is hidden.</p> <p>This paragraph is also hidden.</p> </body> </html> </s>
<s>[INST] <<SYS>> Create an HTML page containing a list of all US states. <</SYS>> [/INST] <html> <head> <title> US States </title> </head> <body> <ul> <li>Alabama</li> <li>Alaska</li> <li>Arizona</li> <li>Arkansas</li> <li>California</li> <li>Colorado</li> <li>Connecticut</li> ...
<s>[INST] <<SYS>> Develop a web application that converts text to speech. <</SYS>> [/INST] <html> <head> <title>Text to Speech</title> <script src="https://code.responsivevoice.org/responsivevoice.js?key=KEY_HERE"></script> </head> <body> <textarea id="text-input" rows="10" cols="50"></textarea><br> <button typ...
<s>[INST] <<SYS>> Create a dynamic web page using HTML and CSS to display a list of books. <</SYS>> [/INST] <html> <head> <style> ul { list-style-type: none; padding: 0; margin: 0; } li { font-family: sans-serif; font-size: 20px; padding: 10px; ...
<s>[INST] <<SYS>> Using HTML and CSS, design a landing page for a blog website. <</SYS>> [/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,...
<s>[INST] <<SYS>> Create an HTML page that displays an alert when a page is visited. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Alert Message Box</title> <script> window.onload = function() { alert("Welcome to my webpage!"); } </script> </head> <body> </body> </html> </s>
<s>[INST] <<SYS>> Create a HTML page with a fixed header bar and a scrolling content area. <</SYS>> [/INST] <html> <head> </head> <body> <div id="header"> <!-- header content --> </div> <div id="content" style="overflow-y:scroll;"> <!-- content here --> </div> ...
<s>[INST] <<SYS>> Construct an HTML page to display a table with 10 rows, 5 columns, and a header row. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Table Example</title> </head> <body> <table> <thead> <tr> <th>Header 1</th> <th>Header 2</th> <th>Header 3</th> <th>H...
<s>[INST] <<SYS>> Create an HTML page with a navigation bar containing a heading and a search field. <</SYS>> [/INST] <html> <head> <title>My Page</title> </head> <body> <nav> <h1>My Navigation</h1> <input type="text" placeholder="search..."> </nav> </body> </html> </s>
<s>[INST] <<SYS>> Using an array, create a web page that prints out all of the array elements. <</SYS>> arr = [1, 2, 3, 4, 5] [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Array values</title> </head> <body> <ul> ...
<s>[INST] <<SYS>> Construct a HTML template using Bootstrap. <</SYS>> [/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/bootstra...
<s>[INST] <<SYS>> Create a HTML page which includes two input fields and a button that generates output field that should contain the sum of the two numbers given in the two input fields. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Sum Calculator</title> <script> function calculate() { ...
<s>[INST] <<SYS>> Edit this HTML snippet such that it displays 'Hello World' in bold. <</SYS>> <div>Hello World</div> [/INST] <div><b>Hello World</b></div> </s>
<s>[INST] <<SYS>> Create a web page with a JavaScript function to search for a product in a product inventory using user input. <</SYS>> const products = [ {name: "iPhone", price: 499}, {name: "MacBook Pro", price: 1499}, {name: "iPad Pro", price: 799}, ]; [/INST] <html> <head> <title>Product Search</title>...
<s>[INST] <<SYS>> Construct an HTML page including a heading, button, and paragraph. <</SYS>> [/INST] <html> <head> <title>My Webpage</title> </head> <body> <h1>My Webpage</h1> <button>Click Here!</button> <p>This is some sample text.</p> </body> </html> </s>
<s>[INST] <<SYS>> Construct an HTML page using semantic elements to display a heading with "Hello World!". <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Hello World!</title> </head> <body> <h1>Hello World!</h1> </body> </html> </s>
<s>[INST] <<SYS>> Create a HTML page to display a given list of items <</SYS>> [/INST] <html> <head> <title>List of Items</title> </head> <body> <h1>List of Items</h1> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> <li>Item 4</li>...
<s>[INST] <<SYS>> Design a web page with HTML and CSS so that it displays four boxes of different colors. <</SYS>> [/INST] <html> <head> <style> div { width:200px; height:200px; box-sizing:border-box; border-radius: 10px; } .box-1 { background: #F78181; } .box-2 { background: #FBB117...
<s>[INST] <<SYS>> Create a basic HTML page with a title, a heading and a brief introduction to yourself. <</SYS>> 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...
<s>[INST] <<SYS>> Create a basic HTML page with a table that displays the index, name, and link of the top 10 global universities. <</SYS>> index | name | link 1. Massachusetts Institute of Technology | https://www.mit.edu/ 2. Stanford University | https://www.stanford.edu/ 3. Harvard University | https://www.har...
<s>[INST] <<SYS>> Write an HTML web page that displays a list of three job titles and their corresponding descriptions. <</SYS>> Developer Designer Project Manager Developer: Responsible for developing applications based on customer requirements Designer: Designs and implements user interfaces for applications Project...
<s>[INST] <<SYS>> Write an HTML page that takes an email address as input and displays a "Thank you" message after the submission. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Thank You</title> </head> <body> <form method="POST" action=""> <label> Email: <input type="email...
<s>[INST] <<SYS>> Create a HTML page to display the top 5 scores from a given array. <</SYS>> An array with 10 elements [7, 8, 10, 3, 2, 9, 5, 1, 6, 4] [/INST] <html> <head> <title>Top 5 scores</title> </head> <body> <h1>Top 5 scores</h1> <ul> <li>10</li> <li>9</li> <li>8</li> ...
<s>[INST] <<SYS>> Create a web page with a navigation bar at the top. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Navigation Bar Demo</title> </head> <body> <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a>...
<s>[INST] <<SYS>> Create an HTML page that prints the current date. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Current Date</title> </head> <body> <p>Today's date is <script> document.write(new Date().toDateString()); </script></p> </body> </html> </s>
<s>[INST] <<SYS>> Create a HTML page that contains the following text: "Welcome to my website!". <</SYS>> [/INST] <html> <head> <title>Website</title> </head> <body> <h1>Welcome to my website!</h1> </body> </html> </s>
<s>[INST] <<SYS>> Create a basic HTML structure to show a blog post with the title, "My First Blog Post." <</SYS>> [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My First Blog Post</title> </head> <body> <h1>My Fir...
<s>[INST] <<SYS>> Create a basic HTML structure with a table to display a list of cities and their population. <</SYS>> [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Cities and Population</title> </head> <body> <h...
<s>[INST] <<SYS>> Create a web page that shows your favorite color, name, and age. <</SYS>> [/INST] <html> <head> <title>Favorite Things</title> </head> <body> <h1>My Favorite Things</h1> <ul> <li>My favorite color is blue.</li> <li>My name is John.</li> <li>I am 24 years old.</li> ...
<s>[INST] <<SYS>> Create a HTML page that displays the given text in a headline. <</SYS>> This is a headline! [/INST] <!DOCTYPE html> <html> <head> <title>Headline</title> </head> <body> <h1>This is a headline!</h1> </body> </html> </s>
<s>[INST] <<SYS>> Print the following string in HTML. <</SYS>> "Welcome to my website!" [/INST] <html> <head> <title>Welcome to my website!</title> </head> <body>Welcome to my website!</body> </html> </s>
<s>[INST] <<SYS>> Create an HTML page with two input fields, one for the first name, one for the last name, and a button. When the button is clicked, the input fields should be validated and an alert should be presented if the fields are empty. <</SYS>> [/INST] <html> <head> <title>Input Validation</title> </head> <b...
<s>[INST] <<SYS>> Construct a simple web page with two fields, a login input and a password input. <</SYS>> [/INST] <html> <body> <form> <div> <label>Login:</label> <input type="text" id="login" name="login"> </div> <div> <label>Password:</label> <input type="password" id="...
<s>[INST] <<SYS>> Create a webpage with a button to allow the user to log in. <</SYS>> [noinput] [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login Page</title> </head> <body> <form action="login.php" method=...
<s>[INST] <<SYS>> Write an HTML page that displays a Javascript alert when a button is clicked. <</SYS>> [/INST] <html> <head> <!-- Include the script --> <script src="alert.js"></script> </head> <body> <button id="btnAlert" onclick="alertFunction()">Alert</button> </body> </html> // alert.js func...
<s>[INST] <<SYS>> Insert correction in the following HTML code <</SYS>> <html> <body> <h1> This is a heading <h2> </body> </html> [/INST] <html> <body> <h1> This is a heading </h1> </body> </html> </s>
<s>[INST] <<SYS>> Create an HTML page which contains a heading with the text "Hello World". <</SYS>> [/INST] <html> <head> <title>Hello World</title> </head> <body> <h1>Hello World</h1> </body> </html> </s>
<s>[INST] <<SYS>> Create an HTML page that displays the contents of a given URL. <</SYS>> https://www.example.com [/INST] <html> <head> <title>Loaded URL</title> </head> <body> <iframe src="https://www.example.com" width="100%" height="100%"></iframe> </body> </html> </s>
<s>[INST] <<SYS>> Create a web page with a table of 4 columns and a submit button to submit the table data. <</SYS>> [/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 he...
<s>[INST] <<SYS>> Write an HTML page to display a table of products at a retail store. <</SYS>> Table Name: products Attributes: id, name, price, description [/INST] <html> <head> <title>Retail Store Products</title> </head> <body> <h2>Retail Store Products</h2> <table> <tr> <th>ID</th> ...
<s>[INST] <<SYS>> Create a HTML page with a form containing two input boxes, one to enter a number and another to enter an operator (+, -, *, /). <</SYS>> [/INST] <html> <head> <title>Calculator Form</title> </head> <body> <form action="/calculate" method="post"> <input type="number" name="num1" placeholder="Enter...
<s>[INST] <<SYS>> Create a web page using HTML and CSS that contains a heading and a button. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>My Web Page</title> </head> <body> <h1>My Web Page</h1> <button type="button">Click Me!</button> </body> </html> </s>
<s>[INST] <<SYS>> Write a code to print "hello world" on a web page using HTML. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Hello World</title> </head> <body> <h1>Hello World!</h1> </body> </html> </s>
<s>[INST] <<SYS>> Write an HTML web page from scratch that displays a list of 10 different CSS colors randomly. <</SYS>> [/INST] <html> <head> <title>Random Colors</title> <style> .random-color { background-color: #9b024a; } </style> </head> <body> <h1>Random Colors</h1> ...
<s>[INST] <<SYS>> Create a HTML page that shows a profile page for a user. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Profile Page</title> </head> <body> <h1>Profile Page</h1> <div> <h2>User Details</h2> <p>Name: John Doe</p> <p>Email: John.Doe@example.com</p> <p>Date of Birth: 01/01/1900</p> </d...
<s>[INST] <<SYS>> Create an HTML page with two columns and a tabular structure showing the employee salaries. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Employee Salaries</title> </head> <body> <table> <tr> <th>Employee Name</th> <th>Salary</th> </tr> <tr> <td>John Smi...
<s>[INST] <<SYS>> Write Angular code to bind a variable to the HTML view. <</SYS>> [/INST] <div> {{my_variable}} </div> </s>
<s>[INST] <<SYS>> Change the HTML structure above to set the title and content language to Italian. <</SYS>> [/INST] <!DOCTYPE html> <html lang="it"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>La mia prima pagina web</title> </head> <body> <...
<s>[INST] <<SYS>> Create a program in HTML to display a basic table with 3 columns and 2 rows. <</SYS>> [/INST] <html> <body> <table style="width:100%"> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> </tr> <tr> <td>John</td> <td>Doe</td> <td>40</td> </tr> <tr> <td>Kathy<...
<s>[INST] <<SYS>> Create a web page with styles. <</SYS>> [/INST] <html> <head> <title>Styled Web Page</title> <style> body { background-color: lightblue; } h1 { color: white; text-align: center; } p { font-family: verdana; font-size: 15px;...
<s>[INST] <<SYS>> Create a HTML web page containing two boxes on a single line. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> </head> <body> <div style="display: inline-block; width: 300px; height: 100px; border: 1px solid #000;"></div> <div style="display: inline-block; width: 300p...
<s>[INST] <<SYS>> Create an HTML page with a basic structure and text. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Basic HTML Page Structure</title> </head> <body> <h1>Hello, World!</h1> <p>This is a basic HTML page structure.</p> </body> </html> </s>
<s>[INST] <<SYS>> Edit the following HTML document and change the font color of the level 2 heading tag to red <</SYS>> <html><head><title>My Title</title></head><body><h1>Heading 1</h1><h2>Heading 2</h2></body></html> [/INST] <html><head><title>My Title</title></head><body><h1>Heading 1</h1><h2 style="color:red;">Head...
<s>[INST] <<SYS>> Create a web page that displays "Hello, World!" <</SYS>> [/INST] <html> <head> <title>Hello World</title> </head> <body> <h1>Hello, World!</h1> </body> </html> </s>
<s>[INST] <<SYS>> Create a HTML program that displays student records <</SYS>> <No input> [/INST] <!DOCTYPE html> <html> <head> <title>Student Records</title> </head> <body> <h1>Student Records</h1> <table> <tr> <th>Name</th> <th>Age</th> <th>Gender</th> <...
<s>[INST] <<SYS>> Edit the following HTML page to add a table to the page. <</SYS>> <!DOCTYPE html> <html> <head> <title>My HTML Page</title> </head> <body> <h1>My HTML Page</h1> </body> </html> [/INST] <!DOCTYPE html> <html> <head> <title>My HTML Page</title> </head> <body> <h1>My HTML Page</h1> <table> <tr> ...
<s>[INST] <<SYS>> Write an HTML page that shows a table with the heading "Famous Actors" and columns for the actor's name, age, and nationality. <</SYS>> [/INST] <html> <head> <title>Famous Actors</title> </head> <body> <table> <tr> <th>Name</th> <th>Age</th> <th>Nationality<...
<s>[INST] <<SYS>> Write an HTML page which contains a form with fields for a user's first name, last name, and email address. <</SYS>> [/INST] <html> <head> <title>User Info Form</title> </head> <body> <form> <label>First Name:</label> <input type="text" id="firstname" name="firstname" > ...
<s>[INST] <<SYS>> Create an HTML page that displays a table with all the prime numbers up to 100. <</SYS>> [/INST] <html> <head> <title>Prime Numbers</title> </head> <body> <h1>Prime Numbers</h1> <table> <tr> <th>Number</th> <th>Prime</th> </tr> ...
<s>[INST] <<SYS>> Write an HTML page with a form to input the following information: name, age, gender. <</SYS>> [/INST] <html> <head> <title>Form Example</title> </head> <body> <form> <label for="name">Name:</label> <input type="text" id="name" name="name"> <label for="age">Age:</labe...
<s>[INST] <<SYS>> Create a HTML page that has a table displaying the names, phone numbers and email addresses of 5 employees. <</SYS>> [/INST] <html> <head> <title>Employees</title> </head> <body> <h1>Employees</h1> <table> <tr> <th>Name</th> <th>Phone</th> <th>Email</th> </tr> <tr> <t...
<s>[INST] <<SYS>> Create a web page that uses CSS to style a given piece of text. <</SYS>> [/INST] <html> <head> <style> p { font-size: 16px; font-family: Arial, sans-serif; color: #333; } .bold { font-weight: bold; } </style> </head> <body> <p ...
<s>[INST] <<SYS>> Edit the HTML structure shown below to include a form tag with an input for a user's name. <</SYS>> <!DOCTYPE html> <html> <head> <title>My Webside</title> </head> <body> </body> </html> [/INST] <!DOCTYPE html> <html> <head> <title>My Webside</title> </head> <body> <form> <input type="text" name...
<s>[INST] <<SYS>> Create an HTML/CSS webpage which displays the given text: "Hello, Welcome to my website!" <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Welcome to My Website!</title> </head> <body> <div> <h1>Hello, Welcome to my website!</h1> </div> </body> </html> </s>
<s>[INST] <<SYS>> Create an HTML/CSS webpage which contains two identical paragraphs with red font. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>My Webpage</title> </head> <body> <div> <p style="color:red;">This is paragraph one.</p> <p style="color:red;">This is paragraph two.</p> </div> </body> </html>...
<s>[INST] <<SYS>> Using the below HTML code, replace the "TODO" comment with the appropriate code to add a hover effect on the div element. <</SYS>> <div>hello</div> <style> div { padding: 10px; //TODO } </style> [/INST] <div>hello</div> <style> div { padding: 10px; transition: all 0.5s ease-in;...
<s>[INST] <<SYS>> Compose an HTML webpage with a title and two paragraphs <</SYS>> [/INST] <html> <head> <title>Webpage Title</title> </head> <body> <h1>Webpage Title</h1> <p>Paragraph 1</p> <p>Paragraph 2</p> </body> </html> </s>
<s>[INST] <<SYS>> Write HTML code to create a webpage that has two paragraphs and a header. <</SYS>> [/INST] <!DOCTYPE html> <html> <head> <title>Two Paragraphs & a Header</title> </head> <body> <h1>Header</h1> <p>Paragraph 1</p> <p>Paragraph 2</p> </body> </html> </s>
<s>[INST] <<SYS>> Using HTML, write a page structure for a basic web page. <</SYS>> [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Web Page</title> </head> <body> </body> </html> </s>
<s>[INST] <<SYS>> Create an HTML page with a text box that stores entered data in the local storage. <</SYS>> [/INST] <html> <head> <title>Text Box</title> </head> <body> <input type="text" id="text_box" /> </body> <script> // Store data in localStorage function storeData() { let inputValue = document.get...
<s>[INST] <<SYS>> Edit the following HTML to change the font of the page <</SYS>> <html> <head> <title>My Page</title> </head> <body> <h2>Hello World!</h2> </body> </html> [/INST] <html> <head> <title>My Page</title> <style> body { font-fam...
<s>[INST] <<SYS>> Create a HTML page with a table showing the contact information of all members in a information. <</SYS>> [ { "name": "John", "phone": "123-456-7890", "address": "123 Main Street" }, { "name": "Sarah", "phone": "098-765-4321", "address": "456 Ocean Drive" } ] [/INST] <!DOCTYPE html> <html> ...