text
stringlengths
68
4.92k
[INST] <> Create a simple webpage to welcome visitors with a centered heading "Welcome". <> [/INST] <!DOCTYPE html> <html> <head> <title>Welcome</title> <style> h1 { text-align: center; } </style> </head> <body> <h1>Welcome</h1> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a blog subscription? It should have a minimalistic design, a blog title and description, a 'Subscribe' button, and links to previous blog posts at the bottom. <> [/INST] <!DOCTYPE html> <html> <head> <title>Blog Subscription Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.blog-title{font-size:20px;font-weight:bold;margin-bottom:10px}.blog-description{font-size:16px;margin-bottom:20px}.subscribe-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}.previous-posts{margin-top:20px}.previous-post{margin-bottom:10px}.previous-post a{font-size:14px}</style> </head> <body> <div class="container"> <h1 class="blog-title">Welcome to Our Blog!</h1> <p class="blog-description">Stay up to date with the latest articles and news from our blog. Subscribe now to receive email notifications.</p> <a href="https://example.com/subscribe" class="subscribe-button">Subscribe</a> <div class="previous-posts"> <p class="previous-post">Check out our previous blog posts:</p> <ul> <li><a href="https://example.com/post1">Blog Post 1</a></li> <li><a href="https://example.com/post2">Blog Post 2</a></li> <li><a href="https://example.com/post3">Blog Post 3</a></li> </ul> </div> </div> </body> </html>
[INST] <> 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> [/INST] <!DOCTYPE html> <html> <head> <title>TITLE</title> <script src="https://unpkg.com/@angular/core@8.2.14/bundles/core.umd.js"></script> <script src="https://unpkg.com/@angular/common@8.2.14/bundles/common.umd.js"></script> <script src="https://unpkg.com/@angular/platform-browser@8.2.14/bundles/platform-browser.umd.js"></script> <script src="https://unpkg.com/@angular/platform-browser-dynamic@8.2.14/bundles/platform-browser-dynamic.umd.js"></script> </head> <body> <h1>HEADER</h1> <app-root>Paragraph</app-root> <script> //This will handle the rendering of the Angular app platformBrowserDynamic().bootstrapModule(AppModule); </script> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a wellness challenge? It should have a calming color scheme, daily wellness tasks, a 'Join the Challenge' button, and a progress tracker. <> [/INST] <!DOCTYPE html> <html> <head> <title>Wellness Challenge</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #F0F5F9; } .header { text-align: center; margin-bottom: 20px; } .tasks { margin-bottom: 20px; } .task { background-color: #FFFFFF; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 20px; margin-bottom: 20px; } .button { display: inline-block; background-color: #3498DB; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .progress { background-color: #FFFFFF; border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 20px; text-align: center; } </style> </head> <body> <div class="container"> <h1>Join Our Wellness Challenge!</h1> <div class="header"> <img src="logo.png" alt="Logo"> </div> <div class="tasks"> <div class="task"> <h2>Day 1: Mindful Meditation</h2> <p>Spend 10 minutes practicing mindful meditation to calm your mind and reduce stress.</p> </div> <div class="task"> <h2>Day 2: Healthy Meal</h2> <p>Prepare and enjoy a nutritious and balanced meal that fuels your body.</p> </div> </div> <a href="join-the-challenge.html" class="button">Join the Challenge</a> <div class="progress"> <h2>Your Progress</h2> <p>Day 1 of 30</p> </div> </div> </body> </html>
[INST] <> Create a HTML page using a basic text editor <> [/INST] <html> <head> <title>My Title</title> </head> <body> <h1>Hello World!</h1> </body> </html>
[INST] <> Please generate a html. I need an email template for an industry report download. It should have a brief overview of the report, key findings, a 'Download Now' button, and an option to share the report with others. <> [/INST] <!DOCTYPE html> <html> <head> <title>Industry Report Download</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.overview{margin-bottom:20px}.key-findings{margin-bottom:20px}.download-button{display:inline-block;background-color:#ff0000;color:#fff;padding:10px 20px;text-decoration:none;border-radius:4px;font-weight:bold;margin-bottom:20px}.share-button{display:inline-block;background-color:#000;color:#fff;padding:10px 20px;text-decoration:none;border-radius:4px;font-weight:bold}</style> </head> <body> <div class="container"> <p class="overview">Thank you for your interest in our industry report. This comprehensive report provides valuable insights into the latest trends and market analysis.</p> <p class="key-findings">Key findings from the report:</p> <ul> <li>Finding 1</li> <li>Finding 2</li> <li>Finding 3</li> </ul> <a class="download-button" href="https://example.com/report.pdf">Download Now</a> <a class="share-button" href="mailto:?subject=Check%20out%20this%20industry%20report&amp;body=I%20thought%20you%20might%20find%20this%20industry%20report%20interesting:%20https%3A%2F%2Fexample.com%2Freport.pdf">Share with Others</a> </div> </body> </html>
[INST] <> Design a HTML document to display a chart with the sales of a particular item. <> [/INST] <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', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Month', 'Sales'], ['Jan', 1000], ['Feb', 1170], ['Mar', 660], ['April', 1030] ]); var options = { title: 'Sales of a particular item', legend: 'none', hAxis: {title: 'Month', titleTextStyle: {color: '#333'}}, vAxis: {minValue: 0} }; var chart = new google.visualization.AreaChart(document.getElementById('chart_div')); chart.draw(data, options); } </script> </head> <body> <div id="chart_div" style="width: 900px; height: 500px;"></div> </body> </html>
[INST] <> Create an HTML page that displays the following text in the body: "Hello World!". <> [/INST] <html> <head> </head> <body> Hello World! </body> </html>
[INST] <> Write an HTML page containing a heading with the text "Welcome". <> [/INST] <!DOCTYPE html> <html> <head> <title>Welcome</title> </head> <body> <h1>Welcome</h1> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a product review request? It should have a personalized introduction, a reminder of the purchased item, a review request, and links to popular review platforms. <> [/INST] <!DOCTYPE html> <html> <head> <title>Product Review Request Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.intro-text{font-size:18px;margin-bottom:20px}.product-reminder{font-size:16px;font-weight:bold;margin-bottom:20px}.review-request{font-size:16px;margin-bottom:20px}.review-platforms{margin-bottom:20px}.platform-link{display:inline-block;margin-right:10px}.platform-link img{width:24px;height:auto}</style> </head> <body> <div class="container"> <p class="intro-text">Hi [Customer Name],</p> <p class="product-reminder">Just a friendly reminder that you recently purchased:</p> <p class="product-reminder">[Product Name]</p> <p class="review-request">We would love to hear your feedback! Please take a moment to write a review and let us know about your experience.</p> <div class="review-platforms"> <p>You can leave a review on:</p> <a href="https://example.com/review-platform1" class="platform-link"><img src="platform1_logo.png" alt="Review Platform 1"></a> <a href="https://example.com/review-platform2" class="platform-link"><img src="platform2_logo.png" alt="Review Platform 2"></a> <a href="https://example.com/review-platform3" class="platform-link"><img src="platform3_logo.png" alt="Review Platform 3"></a> </div> </div> </body> </html>
[INST] <> Create a basic HTML structure with a table to display a list of cities and their population. <> [/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> <h1>Cities and Population</h1> <table> <thead> <tr> <th>City</th> <th>Population</th> </tr> </thead> <tbody> <tr> <td>Insert City Name</td> <td>Insert Population</td> </tr> </tbody> </table> </body> </html>
[INST] <> Create an HTML and CSS layout to display a list of books with their author, title and description. <> Book 1: Author - John, Title - The Catcher in the Rye, Description - “The Catcher in the Rye is a 1951 novel by J. D. Salinger.” Book 2: Author - Jane, Title - Sense and Sensibility, Description - “Sense and Sensibility is a novel by Jane Austen, published in 1811.” [/INST] <html> <head> <style> .book-container{ display: flex; flex-wrap: wrap; } .book{ width: 300px; padding: 10px; border: 1px solid #ccc; margin: 10px; box-sizing : border-box; } .author { font-weight: bold; } .title { font-style: italic; } .description { font-size: 12px; } </style> </head> <body> <div class="book-container"> <div class="book"> <p class="author">Author: John</p> <p class="title">Title: The Catcher in the Rye</p> <p class="description">Description: “The Catcher in the Rye is a 1951 novel by J. D. Salinger.”</p> </div> <div class="book"> <p class="author">Author: Jane</p> <p class="title">Title: Sense and Sensibility</p> <p class="description">Description: “Sense and Sensibility is a novel by Jane Austen, published in 1811.”</p> </div> </div> </body> </html>
[INST] <> Write an HTML page that displays one heading and two paragraphs. <> [/INST] <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>Heading</h1> <p>Paragraph 1</p> <p>Paragraph 2</p> </body> </html>
[INST] <> Create a HTML page that contains a text box and a submit button. <> [/INST] <html> <head> <title>Input Form</title> </head> <body> <form> <input type="text" name="inputbox"> <input type="submit" value="Submit"> </form> </body> </html>
[INST] <> Please generate a html. I need an email template for a post-purchase follow-up. It should have a thank-you message, order confirmation details, a request for a product review, and related product recommendations. <> [/INST] <!DOCTYPE html> <html> <head> <title>Post-Purchase Follow-Up Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.thank-you-message{font-size:24px;font-weight:bold;margin-bottom:20px}.order-details{margin-bottom:20px}.product-review-request{margin-bottom:20px}.related-products{list-style:none;padding:0}.related-products li{margin-bottom:10px}.related-products li a{display:inline-block;font-weight:bold}</style> </head> <body> <div class="container"> <h1 class="thank-you-message">Thank You for Your Purchase!</h1> <p class="order-details">Here are the details of your order:<br>Order ID: <strong>#123456789</strong><br>Order Date: <strong>June 1, 2023</strong><br>Shipping Address: <strong>123 Main St, City, State</strong></p> <p class="product-review-request">We would greatly appreciate it if you could take a moment to leave a review for the product you purchased. Your feedback helps us improve our products and serve you better.</p> <ul class="related-products"> <li><a href="https://example.com/product1">Related Product 1</a></li> <li><a href="https://example.com/product2">Related Product 2</a></li> <li><a href="https://example.com/product3">Related Product 3</a></li> </ul> </div> </body> </html>
[INST] <> Create a simple website using HTML/CSS. <> [/INST] <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> </head> <body> <h1> Welcome to my website! </h1> <p> This is a simple website created using HTML and CSS. </p> </body> </html>
[INST] <> Please generate a html. I want an email template for a seasonal newsletter. It should have a seasonal background image, highlights of new products or services, upcoming events, and a 'Learn More' button. <> [/INST] <!DOCTYPE html> <html> <head> <title>Seasonal Newsletter Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.header-image{width:100%;max-width:600px;height:auto;display:block;margin-bottom:20px}.product-highlight{margin-bottom:20px}.product-image{width:100px;height:auto;display:inline-block;vertical-align:middle;margin-right:10px}.product-title{font-weight:bold}.event-section{margin-bottom:20px}.event-title{font-weight:bold}.learn-more-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}</style> </head> <body> <div class="container"> <img src="seasonal_background.jpg" alt="Seasonal Background Image" class="header-image"> <div class="product-highlight"> <img src="product1_image.jpg" alt="Product 1" class="product-image"> <p class="product-title">New Product 1</p> </div> <div class="product-highlight"> <img src="product2_image.jpg" alt="Product 2" class="product-image"> <p class="product-title">New Product 2</p> </div> <div class="event-section"> <p class="event-title">Upcoming Events:</p> <ul> <li>Event 1</li> <li>Event 2</li> <li>Event 3</li> </ul> </div> <a href="https://example.com/learnmore" class="learn-more-button">Learn More</a> </div> </body> </html>
[INST] <> Create an HTML webpage to display a welcome message. <> [/INST] <html> <head> <title>Welcome</title> </head> <body> <h1>Welcome!</h1> </body> </html>
[INST] <> Create a HTML page with a paragraph and a button to toggle the paragraph's text color between red and blue. <> [/INST] <html> <head> <title>Color Toggle</title> <script> let isRed = true; let toggleButton = document.getElementById('toggle-button'); toggleButton.addEventListener('click', () => { let paragraph = document.getElementsByTagName('p')[0]; paragraph.style.color = isRed ? 'blue' : 'red'; isRed = !isRed; }); </script> </head> <body> <p>This is a paragraph.</p> <button id='toggle-button'>Toggle color</button> </body> </html>
[INST] <> Design an HTML form to register users on a website. <> [/INST] <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" required><br><br> <label>Last Name:</label><br> <input type="text" name="lastName" required><br><br> <label>Email:</label><br> <input type="text" name="email" required><br><br> <label>Password:</label><br> <input type="password" name="password" required><br><br> <input type="submit" value="Register"> </form> </body> </html>
[INST] <> Create a basic HTML page using HTML tags. <> [/INST] <!DOCTYPE html> <html> <head> <title>My page</title> </head> <body> <h1>This is my page</h1> </body> </html>
[INST] <> Create a HTML page that displays the given text in a headline. <> This is a headline! [/INST] <!DOCTYPE html> <html> <head> <title>Headline</title> </head> <body> <h1>This is a headline!</h1> </body> </html>
[INST] <> Design a user interface in HTML for a login form. <> [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login Form</title> </head> <body> <form> <label>Username:</label> <input type="text" name="username" required> <label>Password:</label> <input type="password" name="password" required> <input type="submit" value="Login"> </form> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a motivational quote of the week? It should have an inspirational design, a powerful quote, a 'Stay Inspired' button, and an option to share the quote on social media. <> [/INST] <!DOCTYPE html> <html> <head> <title>Motivational Quote of the Week</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #F3F3F3; } .header { text-align: center; margin-bottom: 20px; } .quote { text-align: center; margin-bottom: 20px; } .button { display: inline-block; background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .share { text-align: center; margin-top: 20px; } </style> </head> <body> <div class="container"> <h1>Motivational Quote of the Week</h1> <div class="header"> <h2>Stay Inspired</h2> </div> <div class="quote"> <blockquote> <p>"Your time is limited, don't waste it living someone else's life."</p> <p>- Steve Jobs</p> </blockquote> </div> <a href="#" class="button">Stay Inspired</a> <div class="share"> <p>Share this quote with your friends:</p> <a href="#" class="button">Share on Social Media</a> </div> </div> </body> </html>
[INST] <> Create an HTML layout for a website. Make sure the layout has a header, a navigation menu, and a footer. <> [/INST] <!DOCTYPE html> <html> <head> <title>Webpage Layout</title> </head> <body> <header> <h1>Header</h1> </header> <nav> <ul> <li>Home</li> <li>About</li> <li>Contact</li> <li>FAQ</li> </ul> </nav> <footer> <p>Footer</p> </footer> </body> </html>
[INST] <> Create a website using HTML and CSS. <> [/INST] <!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 { font-family: sans-serif; font-size: 14px; color: #000; background-color: #fff; } h1 { text-align: center; color: #444; font-size: 20px; margin-top: 20px; } .content { font-size: 12px; padding: 10px; }
[INST] <> Use HTML and CSS to create a navigation bar. <> [/INST] <!DOCTYPE html> <html> <head> <style> nav { position: relative; background-color: #e9ecef; display: flex; z-index: 999; } nav ul { list-style-type: none; margin: 0; padding: 0; } nav li { float: left; font-size: 14px; } </style> </head> <body> <nav> <ul> <li>Home</li> <li>About</li> <li>Contact</li> </ul> </nav> </body> </html>
[INST] <> Create a HTML page that takes your name as input and welcomes you on page load. <> [/INST] <html> <body> <script> function onPageLoad() { var name = prompt('Please enter your name: '); alert('Welcome ' + name + '!'); } onPageLoad(); </script> </body> </html>
[INST] <> Create a HTML page containing a form with three input boxes. <> [/INST] <html> <body> <form> <input type="text" name="box1" /> <input type="text" name="box2" /> <input type="text" name="box3" /> </form> </body> </html>
[INST] <> Generate a valid HTML page given the body contents. <> <h1>Hello World!</h1> <p>This is a simple HTML page.</p> [/INST] <html> <head> </head> <body> <h1>Hello World!</h1> <p>This is a simple HTML page.</p> </body> </html>
[INST] <> 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> <tr> <td>Max</td> <td>28</td> <td>Doctor</td> </tr> <tr> <td>Jill</td> <td>23</td> <td>Teacher</td> </tr> </table> </body> </html> [/INST] <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> <tr> <td>Max</td> <td>28</td> <td>Doctor</td> </tr> <tr> <td>Jill</td> <td>23</td> <td>Teacher</td> </tr> </table> </body> </html>
[INST] <> Create an HTML page that displays one web page with two vertical panenls. <> [/INST] <html> <head> <style> #left, #right{ height: 300px; width: 200px; float: left; padding: 10px; background-color: #ddd; } </style> </head> <body> <div contenteditable="true" id="left"></div> <div contenteditable="true" id="right"></div> </body> </html>
[INST] <> 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> [/INST] <div> <button onclick="toggleFunction()">Toggle</button> <p>This is a text paragraph.</p> <div id="myDIV" style="display:none;"> <p>This is the toggleable content.</p> </div> <script> function toggleFunction() { let x = document.getElementById("myDIV"); if (x.style.display === "none") { x.style.display = "block"; } else { x.style.display = "none"; } } </script> </div>
[INST] <> Create a HTML page which displays the text "Hello World!" <> [/INST] <html> <head> <title>Hello World!</title> </head> <body> <h1>Hello World!</h1> </body> </html>
[INST] <> Construct a JavaScript program that consumes a specified API endpoint and displays the result in an HTML element. <> API Endpoint: 'https://jsonplaceholder.typicode.com/posts/1', HTML Element ID: 'output' [/INST] <html> <head> <script> async function fetchPost() { const response = await fetch('https://jsonplaceholder.typicode.com/posts/1'); const data = await response.json(); document.getElementById('output').textContent = JSON.stringify(data);} window.addEventListener('load', () => { fetchPost();}); </script> </head> <body> <div id="output">Loading...</div> </body> </html>
[INST] <> Write an HTML code to create a basic structure for a website. <> [/INST] <!DOCTYPE html> <html> <head> <title>My Website</title> </head> <body> </body> </html>
[INST] <> Construct a set of HTML tags to design a simple two-column layout. <> [/INST] <html> <head> <title>Two-column layout</title> </head> <body> <div class="container"> <div class="column-left"> <!--Your content here--> </div> <div class="column-right"> <!--Your content here--> </div> </div> </body> </html>
[INST] <> Please generate a html. I need an email template for a flash giveaway announcement. It should have an attention-grabbing headline, entry requirements, a 'Enter Now' button, and a countdown timer. <> [/INST] <!DOCTYPE html> <html> <head> <title>Flash Giveaway Announcement</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.headline{font-size:24px;font-weight:bold;margin-bottom:20px}.entry-requirements{margin-bottom:20px}.enter-now-button{margin-bottom:20px}.countdown-timer{font-size:18px;font-weight:bold}</style> </head> <body> <div class="container"> <h1 class="headline">Flash Giveaway Announcement!</h1> <p class="entry-requirements">To enter the giveaway, follow these requirements:</p> <ol> <li>Requirement 1</li> <li>Requirement 2</li> <li>Requirement 3</li> </ol> <p class="enter-now-button"><a href="https://example.com/enter">Enter Now</a> for a chance to win!</p> <p class="countdown-timer">Hurry! The giveaway ends in:</p> <div id="countdown-timer">00:00:00</div> <script>/* Countdown timer script goes here */</script> </div> </body> </html>
[INST] <> 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 [/INST] <!DOCTYPE html> <html> <head> <title>Table example</title> </head> <body> <h1>Names and Usernames</h1> <table> <thead> <tr> <th>Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <td>Jenny</td> <td>jenny123</td> </tr> <tr> <td>John</td> <td>john123</td> </tr> <tr> <td>Alice</td> <td>alice123</td> </tr> <tr> <td>Bob</td> <td>bob123</td> </tr> </tbody> </table> </body> </html>
[INST] <> Generate a HTML code which has a black background and white font. <> [/INST] <!DOCTYPE html> <html> <head> <style> body { background-color: black; color: white; } </style> </head> <body> </body> </html>
[INST] <> Edit the following HTML code snippet to give the <body> tag the class 'main'. <> <html> <head> <title>Page Title</title> </head> </html> [/INST] <html> <head> <title>Page Title</title> </head> <body class="main"> </body> </html>
[INST] <> Generate an HTML page with a heading and a paragraph. <> [/INST] <html> <head> <title>My page</title> </head> <body> <h1>My Page</h1> <p>This is the content of my page.</p> </body> </html>
[INST] <> Create an HTML page that renders two checkboxes and a button using JavaScript. <> [/INST] <html> <head> <script> function renderCheckboxes() { var checkboxes = document.createElement("input"); checkboxes.type = "checkbox"; checkboxes.name = "checkbox"; checkboxes.value = "1"; document.body.appendChild(checkboxes); var checkboxes2 = document.createElement("input"); checkboxes2.type = "checkbox"; checkboxes2.name = "checkbox2"; checkboxes2.value = "2"; document.body.appendChild(checkboxes2); var btn = document.createElement("BUTTON"); btn.innerHTML = "Submit"; document.body.appendChild(btn); } </script> </head> <body onLoad="renderCheckboxes()"> </body> </html>
[INST] <> Using an array, create a web page that prints out all of the array elements. <> 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> <% for (let i = 0; i < arr.length; i++) { %> <li><%= arr[i] %></li> <% } %> </ul> </body> </html>
[INST] <> Create a HTML page to display the top 5 scores from a given array. <> 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> <li>7</li> <li>6</li> </ul> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a blog post roundup? It should have a catchy title, excerpts from recent blog posts, a 'Read More' button, and social media sharing options. <> [/INST] <!DOCTYPE html> <html> <head> <title>Blog Post Roundup</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.post{margin-bottom:20px}.post-title{font-size:20px;font-weight:bold}.post-excerpt{margin-top:10px}.read-more-button{display:inline-block;background-color:#007bff;color:#fff;padding:10px 20px;text-decoration:none;border-radius:5px}.read-more-button:hover{background-color:#0056b3}.social-media-icons{margin-top:20px}.social-media-icons a{display:inline-block;margin-right:10px}.social-media-icons img{height:30px}</style> </head> <body> <div class="container"> <h1>Check out our Latest Blog Posts!</h1> <div class="post"> <h2 class="post-title">Blog Post Title 1</h2> <p class="post-excerpt">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eget lorem placerat, fringilla nisl id, sagittis nunc.</p> <a class="read-more-button" href="https://example.com/post1">Read More</a> </div> <div class="post"> <h2 class="post-title">Blog Post Title 2</h2> <p class="post-excerpt">Vivamus convallis interdum libero, eget faucibus mauris rhoncus id. Aenean sed massa a purus blandit interdum.</p> <a class="read-more-button" href="https://example.com/post2">Read More</a> </div> <div class="post"> <h2 class="post-title">Blog Post Title 3</h2> <p class="post-excerpt">Curabitur non lectus augue. Sed id ligula sit amet mauris fringilla lacinia a a arcu.</p> <a class="read-more-button" href="https://example.com/post3">Read More</a> </div> <div class="social-media-icons"> <a href="#"><img src="facebook.png" alt="Facebook"></a> <a href="#"><img src="twitter.png" alt="Twitter"></a> <a href="#"><img src="instagram.png" alt="Instagram"></a> </div> </div> </body> </html>
[INST] <> Create an HTML page that displays an ordered list of strings provided in an array. <> [/INST] <html> <body> <h1>My List</h1> <ol> <li>String1</li> <li>String2</li> <li>String3</li> <!-- and so on --> </ol> </body> </html>
[INST] <> Generate a web page with a navigation bar on it. <> [/INST] <!DOCTYPE html> <html> <head> <title>Navbar Page</title> <style> .navbar { width: 100%; background-color: #555; } .navbar a { float: left; padding: 12px; color: white; text-decoration: none; font-size: 17px; } .navbar a:hover { background-color: #000; } </style> </head> <body> <div class="navbar"> <a href="#home">Home</a> <a href="#about">About</a> <a href="#contact">Contact</a> </div> </body> </html>
[INST] <> 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 [/INST] <html> <head> <title>John Doe's information</title> </head> <body> <h1>John Doe</h1> <p> Address: 123 Main Street <br> Email: john@example.com <br> Phone: 987654321 </p> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a webinar registration? It should include a captivating header image, a brief description of the webinar, and a 'Register Now' button in green at the center. <> [/INST] <!DOCTYPE html> <html> <head> <title>Webinar Registration Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0;text-align:center}.container{max-width:600px;margin:0 auto;padding:20px}h1{font-size:24px;font-weight:bold;margin-bottom:20px}p{font-size:16px;margin-bottom:20px}.header-image{width:100%;max-width:600px;height:auto;display:block;margin-bottom:20px}.register-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#00b300;text-decoration:none;border-radius:4px}</style> </head> <body> <div class="container"> <img src="header_image.jpg" alt="Webinar Header Image" class="header-image"> <h1>Join Our Webinar!</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum fermentum ultricies sem vitae fringilla. Duis efficitur eget turpis ut ullamcorper.</p> <a href="https://example.com/register" class="register-button">Register Now</a> </div> </body> </html>
[INST] <> Create a webpage with a two-column layout using HTML. <> Create two columns with width of 1/3 and 2/3 respectively [/INST] <html> <head> <style> .column { float: left; width: 33.33%; padding: 0 10px } </style> </head> <body> <div class="column"> Your content in the first column goes here </div> <div class="column"> Your content in the second column goes here </div> </body> </html>
[INST] <> Create a HTML page with text "Hello, World!" <> [/INST] <html> <head> <title>Hello, World!</title> </head> <body> <h1>Hello, World!</h1> </body> </html>
[INST] <> Make a HTML page that displays a table displaying numbers from 1 to 10. <> [/INST] <html> <body> <h1>Table showing numbers from 1 to 10</h1> <table> <tr> <th>Number</th> </tr> <tr> <td>1</td> </tr> <tr> <td>2</td> </tr> <tr> <td>3</td> </tr> <tr> <td>4</td> </tr> <tr> <td>5</td> </tr> <tr> <td>6</td> </tr> <tr> <td>7</td> </tr> <tr> <td>8</td> </tr> <tr> <td>9</td> </tr> <tr> <td>10</td> </tr> </table> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a self-care challenge? It should have a calming color palette, daily self-care activities, a 'Join the Challenge' button, and a section for participants to share their experiences. <> [/INST] <!DOCTYPE html> <html> <head> <title>Self-Care Challenge</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #E6F2F0; } .header { text-align: center; margin-bottom: 20px; } .activities { margin-bottom: 20px; } .button { display: inline-block; background-color: #00BFFF; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .experiences { margin-bottom: 20px; } </style> </head> <body> <div class="container"> <h1>Self-Care Challenge</h1> <div class="header"> <h2>Take Time for Yourself and Prioritize Self-Care</h2> </div> <div class="activities"> <h3>Activities for Each Day:</h3> <ol> <li>Day 1: Activity 1</li> <li>Day 2: Activity 2</li> <li>Day 3: Activity 3</li> </ol> <p>Engage in these self-care activities to nurture your mind, body, and soul.</p> </div> <a href="self-care-challenge.html" class="button">Join the Challenge</a> <div class="experiences"> <h3>Share Your Self-Care Experiences</h3> <p>We'd love to hear about your self-care journey. Share your experiences and connect with fellow participants:</p> <p>Visit our website or tag us on social media using #SelfCareChallenge.</p> </div> </div> </body> </html>
[INST] <> Create an HTML page with a form to capture the user's name and age. <> [/INST] <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"></p> <p>Age: <input type="number" name="age"></p> <input type="submit" value="Submit"> </form> </body> </html>
[INST] <> Please generate a html. I want an email template for a holiday promotion. It should have a festive background image, a 'Shop Now' button in red, and sections for featured products with images and descriptions. <> [/INST] <!DOCTYPE html> <html> <head> <title>Holiday Promotion Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.festive-background{background-image:url('festive_background.jpg');background-repeat:no-repeat;background-size:cover}.shop-now-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#ff0000;text-decoration:none;border-radius:4px}.product{margin-bottom:20px}.product-image{width:100%;max-width:400px;height:auto;display:block;margin-bottom:10px}.product-title{font-size:18px;font-weight:bold;margin-bottom:5px}.product-description{font-size:14px;margin-bottom:10px}</style> </head> <body> <div class="container festive-background"> <a href="https://example.com/shop" class="shop-now-button">Shop Now</a> <div class="product"> <img src="product1_image.jpg" alt="Product 1 Image" class="product-image"> <h2 class="product-title">Product 1 Title</h2> <p class="product-description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum fermentum ultricies sem vitae fringilla.</p> </div> <div class="product"> <img src="product2_image.jpg" alt="Product 2 Image" class="product-image"> <h2 class="product-title">Product 2 Title</h2> <p class="product-description">Vestibulum fermentum ultricies sem vitae fringilla. Duis efficitur eget turpis ut ullamcorper.</p> </div> <div class="product"> <img src="product3_image.jpg" alt="Product 3 Image" class="product-image"> <h2 class="product-title">Product 3 Title</h2> <p class="product-description">Duis efficitur eget turpis ut ullamcorper. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </div> </div> </body> </html>
[INST] <> Please generate a html. I want an email template for an event reminder. It should have a vibrant background, event details, a 'Add to Calendar' button, and a section for frequently asked questions. <> [/INST] <!DOCTYPE html> <html> <head> <title>Event Reminder Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px;background-color:#f8c50c;color:#ffffff}.event-details{font-size:18px;font-weight:bold;margin-bottom:20px}.add-to-calendar-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}.faq{margin-top:20px}.faq-question{font-weight:bold;margin-bottom:10px}.faq-answer{margin-bottom:20px}</style> </head> <body> <div class="container"> <h1 class="event-details">Event Reminder: [Event Name]</h1> <p class="event-details">Date: [Event Date]</p> <p class="event-details">Time: [Event Time]</p> <p class="event-details">Location: [Event Location]</p> <a href="https://example.com/addtocalendar" class="add-to-calendar-button">Add to Calendar</a> <div class="faq"> <p class="faq-question">Frequently Asked Questions:</p> <p class="faq-question">Q: [Question 1]?</p> <p class="faq-answer">A: [Answer 1]</p> <p class="faq-question">Q: [Question 2]?</p> <p class="faq-answer">A: [Answer 2]</p> </div> </div> </body> </html>
[INST] <> Create a JavaScript program to provide real-time search results for a given list of elements. <> 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.min.js"></script> <script> function search() { var input = document.getElementById('search_box').value; var list = ["Apple","Banana","Orange"]; var output = ""; for (i=0; i<list.length; i++) { if (list[i].includes(input)) { output+="<li>" + list[i] + "</li>"; } } if (output == "") { document.getElementById("search_results").innerHTML = "No results found"; } else { document.getElementById("search_results").innerHTML = output; } } </script> </head> <body> <input type="text" id="search_box" onkeyup="search()" /> <ul id="search_results" > </ul> </body> </html>
[INST] <> Create a web page with two text fields for username and password. <> [/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 for="password">Password:</label> <input type="password" name="password" id="password" /> <input type="submit" value="Login" /> </form> </body> </html>
[INST] <> Create a HTML page which displays "Hello, World!" on the screen. <> [/INST] <html> <head> <title>Hello, World!</title> </head> <body> <h1>Hello, World!</h1> </body> </html>
[INST] <> Write an HTML web page from scratch that displays a list of 10 different CSS colors randomly. <> [/INST] <html> <head> <title>Random Colors</title> <style> .random-color { background-color: #9b024a; } </style> </head> <body> <h1>Random Colors</h1> <ul> <li class="random-color">#9b024a</li> <li class="random-color">#f06f56</li> <li class="random-color">#ffb003</li> <li class="random-color">#37478d</li> <li class="random-color">#82e3d3</li> <li class="random-color">#2e2fbb</li> <li class="random-color">#b82da9</li> <li class="random-color">#0093fa</li> <li class="random-color">#4dadf4</li> <li class="random-color">#ee2f88</li> </ul> </body> </html>
[INST] <> Create an HTML page that displays a table with all the prime numbers up to 100. <> [/INST] <html> <head> <title>Prime Numbers</title> </head> <body> <h1>Prime Numbers</h1> <table> <tr> <th>Number</th> <th>Prime</th> </tr> <?php for ($i = 2; $i <= 100; $i++) { if (isPrime($i)) { echo "<tr><td>$i</td><td>Yes</td></tr>"; } else { echo "<tr><td>$i</td><td>No</td></tr>"; }; }; ?> </table> </body> </html>
[INST] <> 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> [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>My Webpage</title> </head> <body> <ol> <li>List Item 1</li> <li>List Item 2</li> <li>List Item 3</li> </ol> </body> </html>
[INST] <> Develop a CSS/HTML page with a 3-column layout and a sticky navigation bar. <> [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Layout</title> <style> .row { display: flex; flex-wrap: wrap; } .column { flex: 25%; } #nav { position: sticky; top: 0; background-color: #000; padding: 10px; text-align: center; } </style> </head> <body> <div id="nav">Navigation Bar</div> <div class="row"> <div class="column">Column1</div> <div class="column">Column2</div> <div class="column">Column3</div> </div> </body> </html>
[INST] <> Write a HTML page that has a section of two columns and six rows. <> [/INST] <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="cell"></div> </div> <div class="section"> <div class="cell"></div> <div class="cell"></div> </div> <div class="section"> <div class="cell"></div> <div class="cell"></div> </div> <div class="section"> <div class="cell"></div> <div class="cell"></div> </div> <div class="section"> <div class="cell"></div> <div class="cell"></div> </div> <div class="section"> <div class="cell"></div> <div class="cell"></div> </div> </body> </html>
[INST] <> Create an HTML page with a table containing 2 columns. <> [/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>
[INST] <> Create a basic HTML page with a <title> tag and a <h1> tag. <> [/INST] <!DOCTYPE html> <html> <head> <title>Create a basic HTML page</title> </head> <body> <h1>Hello, World!</h1> </body> </html>
[INST] <> 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. <> [/INST] <html> <head> <title>Text Boxes</title> </head> <body> <form> Name: <input type="text" name="name" /> <br><br> Age: <input type="text" name="age" /> <br><br> <input type="submit" value="Submit"> </form> </body> </html>
[INST] <> Create a HTML program that displays student records <> <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> </tr> <tr> <td>Jerry</td> <td>21</td> <td>Male</td> </tr> <tr> <td>Janice</td> <td>18</td> <td>Female</td> </tr> <tr> <td>Jack</td> <td>20</td> <td>Male</td> </tr> </table> </body> </html>
[INST] <> Please generate a html. I want an email template for a customer testimonial video showcase. It should have a video thumbnail, a short description of the testimonial, a 'Watch Now' button, and social media sharing options. <> [/INST] <!DOCTYPE html> <html> <head> <title>Customer Testimonial Video Showcase</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; } .video-thumbnail { margin-bottom: 20px; } .description { margin-bottom: 20px; } .button { display: inline-block; background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .social-media { margin-top: 20px; } .social-media a { display: inline-block; margin-right: 10px; } </style> </head> <body> <div class="container"> <img src="video-thumbnail.jpg" alt="Video Thumbnail" class="video-thumbnail" /> <p class="description">Check out what our customers have to say about our product/service in this video testimonial.</p> <a href="video-link.html" class="button">Watch Now</a> <p class="social-media">Share this video:</p> <div class="social-media"> <a href="https://facebook.com/share" target="_blank"><img src="facebook-icon.png" alt="Facebook" /></a> <a href="https://twitter.com/share" target="_blank"><img src="twitter-icon.png" alt="Twitter" /></a> <a href="https://linkedin.com/share" target="_blank"><img src="linkedin-icon.png" alt="LinkedIn" /></a> </div> </div> </body> </html>
[INST] <> Create an HTML page that contains a simple form with two input fields. <> [/INST] <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"> <input type="submit" value="Submit"> </form> </body> </html>
[INST] <> Design a web page with HTML and CSS so that it displays four boxes of different colors. <> [/INST] <html> <head> <style> div { width:200px; height:200px; box-sizing:border-box; border-radius: 10px; } .box-1 { background: #F78181; } .box-2 { background: #FBB117; } .box-3 { background: #99E1D9; } .box-4 { background: #CDC5C2; } </style> </head> <body> <div class="box-1"></div> <div class="box-2"></div> <div class="box-3"></div> <div class="box-4"></div> </body> </html>
[INST] <> Create an HTML page with a title and a heading. <> [/INST] <html> <head> <title>My Page</title> </head> <body> <h1>My Page</h1> </body> </html>
[INST] <> Write an HTML program to capture the entered text in an input box <> [/INST] <html> <head> <title>Text Capturing</title> </head> <script> function captureText() { var text = document.getElementById("inputBox").value; alert("Entered text: " + text); } </script> <body> <h1> Text Capturing </h1> <input type="text" id="inputBox" /> <button onclick="captureText()">Capture Text</button> </body> </html>
[INST] <> 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 [/INST] <!DOCTYPE html> <html> <head> <title>Table of Names and Information</title> </head> <body> <table> <tr> <th>Name</th> <th>Age</th> <th>Phone</th> </tr> <tr> <td>John</td> <td>25</td> <td>555-555-5555</td> </tr> <tr> <td>Jane</td> <td>32</td> <td>333-333-3333</td> </tr> </table> </body> </html>
[INST] <> Create a CSS stylesheet that colors the background of a webpage with a random color whenever the page is refreshed. <> [/INST] <!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', STR_PAD_LEFT); ?>; } </style> </head> <body> </body> </html>
[INST] <> Create a HTML page which displays the result of multiplying two user-provided numbers. <> [/INST] <!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="num1"><br> Enter the second number: <input type="text" name="num2"><br> <input type="submit" value="Submit"> </form> <p> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { $num1=$_POST['num1']; $num2=$_POST['num2']; echo "Result: ".$num1*$num2; } ?> </p> </body> </html>
[INST] <> Create an HTML page with two columns and a tabular structure showing the employee salaries. <> [/INST] <!DOCTYPE html> <html> <head> <title>Employee Salaries</title> </head> <body> <table> <tr> <th>Employee Name</th> <th>Salary</th> </tr> <tr> <td>John Smith</td> <td>$22,000</td> </tr> <tr> <td>Jane Doe</td> <td>$21,000</td> </tr> <tr> <td>Joseph Brown</td> <td>$25,000</td> </tr> </table> </body> </html>
[INST] <> Create a web page with a header and a paragraph, both with some text. <> [/INST] <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>
[INST] <> Write an HTML page including the given text. <> This is a test page [/INST] <html> <head> <title>Test Page</title> </head> <body> <h1>This is a test page</h1> </body> </html>
[INST] <> Draft an HTML page with a table that contains three columns and two rows. <> [/INST] <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</td> <td>Row 1 Data 2</td> <td>Row 1 Data 3</td> </tr> <tr> <td>Row 2 Data 1</td> <td>Row 2 Data 2</td> <td>Row 2 Data 3</td> </tr> </table> </body> </html>
[INST] <> Create a HTML program to simulate a digital clock <> [/INST] <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 = date.getSeconds(); // 0 - 59 var session = "AM"; if(h == 0){ h = 12; } if(h > 12){ h = h - 12; session = "PM"; } h = (h < 10) ? "0" + h : h; m = (m < 10) ? "0" + m : m; s = (s < 10) ? "0" + s : s; var time = h + ":" + m + ":" + s + " " + session; document.getElementById("MyClockDisplay").innerText = time; document.getElementById("MyClockDisplay").textContent = time; setTimeout(showTime, 1000); } showTime(); </script> </head> <body> <div> <h2>Digital Clock:</h2> <div id="MyClockDisplay" class="clock"></div> </div> </body> </html>
[INST] <> Create an HTML page with a header containing the text "Welcome to our website". <> [/INST] <html> <head><title>Welcome to our website</title></head> <body> <h1>Welcome to our website</h1> </body> </html>
[INST] <> 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; } [/INST] <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Title of the document</title> </head> <body> <table> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> </table> </body> </html>
[INST] <> Build a HTML page with the provided structure. <> <html> <head> </head> <body> </body> </html> [/INST] <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> </body> </html>
[INST] <> Modify the CSS in the given HTML code to style the web page <> <html> <head> <title>Styled Page</title> </head> <body> <h1>Styled Page</h1> </body> </html> [/INST] <html> <head> <title>Styled Page</title> <style type="text/css"> body { background-color: white; } h1 { font-family: 'Arial', sans-serif; font-size: 30px; color: black; text-align: center; } </style> </head> <body> <h1>Styled Page</h1> </body> </html>
[INST] <> Create a HTML page that shows the data provided in an interactive table. <> data = [ { "id": 1, "first_name": "John", "last_name": "Doe" }, { "id": 2, "first_name": "Amy", "last_name": "Smith" }, { "id": 3, "first_name": "Brian", "last_name": "Green" } ] [/INST] <html> <head> <title>Interactive Table</title> </head> <body> <table> <thead> <tr> <th>ID</th> <th>First Name</th> <th>Last Name</th> </tr> </thead> <tbody> {% for item in data %} <tr> <td>{{ item.id }}</td> <td>{{ item.first_name }}</td> <td>{{ item.last_name }}</td> </tr> {% endfor %} </tbody> </table> </body> </html>
[INST] <> Generate a valid HTML page with the following styles and content <> background color: yellow; padding: 10px; Content: "Hello World!" [/INST] <html> <head> <title>Hello World!</title> <style> body { background-color: yellow; padding: 10px; } </style> </head> <body> <p>Hello World!</p> </body> </html>
[INST] <> Create a HTML page that containsthe loading icon for a web page request. <> [/INST] <!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 type="text/css"> #loading-icon { margin: auto; text-align: center; width: 120px; } #loading-icon span { background-color: #E3EEF6; border-radius: 50%; display: inline-block; height: 10px; margin-right: 10px; width: 10px; animation: loader 2s ease-in infinite; } #loading-icon span:nth-child(1) { animation-delay: 0s; } #loading-icon span:nth-child(2) { animation-delay: 0.3s; } #loading-icon span:nth-child(3) { animation-delay: 0.6s; } #loading-icon span:nth-child(4) { animation-delay: 0.9s; } #loading-icon span:nth-child(5) { animation-delay: 1.2s; } @keyframes loader { 25% { transform: scale(1.3); } 50% { transform: scale(1.1); } 75% { transform: scale(1.3); } } </style> </body> </html>
[INST] <> Create a HTML page with a form that takes in two numbers as input and adds them together when the form is submitted. <> [/INST] <!DOCTYPE html> <html> <head> <title>Adding Form</title> </head> <body> <form action="" method="post"> <input type="number" name="a"> <input type="number" name="b"> <input type="submit" value="Submit" /> </form> <script> document.querySelector('form').onsubmit = function(event) { event.preventDefault(); const a = Number(document.querySelector('input[name="a"]').value); const b = Number(document.querySelector('input[name="b"]').value); const result = a + b; alert(`The result of adding ${a} with ${b} is ${result}`); } </script> </body> </html>
[INST] <> Construct an HTML form with five input fields: Name, Username, Password, Email, and Phone number. <> [/INST] <html> <body> <form> <label for="name">Name:</label> <input type="text" id="name" name="name"> <br> <label for="username">Username:</label> <input type="text" id="username" name="username"> <br> <label for="password">Password:</label> <input type="password" id="password" name="password"> <br> <label for="email">Email:</label> <input type="text" id="email" name="email"> <br> <label for="phone">Phone number:</label> <input type="number" id="phone" name="phone"> <br> </form> </body> </html>
[INST] <> Please generate a html. I want an email template for a customer appreciation campaign. It should have a personalized message, a special discount code as a token of gratitude, and a 'Shop Now' button. <> [/INST] <!DOCTYPE html> <html> <head> <title>Customer Appreciation Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.personalized-message{margin-bottom:20px}.discount-code{font-size:24px;font-weight:bold;margin-bottom:10px}.shop-now-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}</style> </head> <body> <div class="container"> <p class="personalized-message">Hi [Customer Name],</p> <p>Thank you for being a valued customer! As a token of our gratitude, please enjoy a special discount on your next purchase:</p> <p class="discount-code">Use code: [Discount Code]</p> <a href="https://example.com/shop-now" class="shop-now-button">Shop Now</a> </div> </body> </html>
[INST] <> Please generate a html. I want an email template for a customer onboarding series. It should have a warm welcome message, step-by-step instructions, helpful resources, and a 'Get Started' button. <> [/INST] <!DOCTYPE html> <html> <head> <title>Customer Onboarding Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.welcome-message{font-size:24px;font-weight:bold;margin-bottom:20px}.instructions{margin-bottom:20px}.instructions ol{padding-left:20px}.resources{margin-bottom:20px}.resources a{display:block;margin-bottom:5px}.get-started-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}</style> </head> <body> <div class="container"> <h1 class="welcome-message">Welcome to Our Service!</h1> <div class="instructions"> <ol> <li>Step 1: Set up your account by visiting our website.</li> <li>Step 2: Explore the features and functionalities of our service.</li> <li>Step 3: Refer to our detailed user guide for any questions or assistance.</li> </ol> </div> <div class="resources"> <a href="https://example.com/getting-started">Getting Started Guide</a> <a href="https://example.com/video-tutorials">Video Tutorials</a> <a href="https://example.com/faq">Frequently Asked Questions</a> </div> <a href="https://example.com/get-started" class="get-started-button">Get Started</a> </div> </body> </html>
[INST] <> Create a HTML page that displays the top 5 countries in the world by population. <> 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> table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } </style> </head> <body> <h1>World's Top 5 Countries By Population</h1> <table> <tr> <th>Country</th> <th>Population (Millions)</th> </tr> <tr> <td>China</td> <td>1400</td> </tr> <tr> <td>India</td> <td>1351</td> </tr> <tr> <td>United States</td> <td>329</td> </tr> <tr> <td>Indonesia</td> <td>265</td> </tr> <tr> <td>Brazil</td> <td>212</td> </tr> </table> </body> </html>
[INST] <> Improve the following HTML structure. <> <div> <h2>Welcome!</h2> <p>This is my website.</p> </div> [/INST] <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>
[INST] <> Please generate a html. Can you create an email template for a customer testimonial showcase? It should have a compelling headline, featured testimonials with photos, a 'Read More' button, and social media sharing options. <> [/INST] <!DOCTYPE html> <html> <head> <title>Customer Testimonial Showcase</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.headline{font-size:24px;font-weight:bold;margin-bottom:20px}.testimonial{margin-bottom:20px}.testimonial-photo{display:block;width:80px;height:80px;border-radius:50%;object-fit:cover;margin-bottom:10px}.testimonial-text{font-size:16px;margin-bottom:10px}.read-more-button{display:inline-block;background-color:#ff0000;color:#fff;padding:10px 20px;text-decoration:none;border-radius:4px;font-weight:bold}.social-media-icons{margin-top:20px}.social-media-icons img{display:inline-block;width:24px;height:24px;margin-right:10px;vertical-align:middle}</style> </head> <body> <div class="container"> <h1 class="headline">Customer Testimonial Showcase</h1> <div class="testimonial"> <img class="testimonial-photo" src="https://example.com/customer1.jpg" alt="Customer 1"> <p class="testimonial-text">"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac lorem et dolor tincidunt fermentum."</p> </div> <div class="testimonial"> <img class="testimonial-photo" src="https://example.com/customer2.jpg" alt="Customer 2"> <p class="testimonial-text">"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac lorem et dolor tincidunt fermentum."</p> </div> <a class="read-more-button" href="https://example.com/testimonials">Read More</a> <div class="social-media-icons"> <a href="https://example.com/facebook"><img src="https://example.com/facebook-icon.png" alt="Facebook"></a> <a href="https://example.com/twitter"><img src="https://example.com/twitter-icon.png" alt="Twitter"></a> <a href="https://example.com/instagram"><img src="https://example.com/instagram-icon.png" alt="Instagram"></a> </div> </div> </body> </html>
[INST] <> Please generate a html. I want an email template for a welcome series. It should have a personalized greeting, a brief introduction to the company, links to helpful resources, and a 'Get Started' button. <> [/INST] <!DOCTYPE html> <html> <head> <title>Welcome Series Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.greeting{font-size:20px;font-weight:bold;margin-bottom:20px}.company-introduction{margin-bottom:20px}.helpful-resources{margin-bottom:20px}.resource-link{display:block;margin-bottom:10px}.get-started-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}</style> </head> <body> <div class="container"> <p class="greeting">Dear [First Name],</p> <p class="company-introduction">Welcome to our company! We're thrilled to have you on board.</p> <p class="helpful-resources">Here are some helpful resources to get you started:</p> <a href="https://example.com/resource1" class="resource-link">Resource 1</a> <a href="https://example.com/resource2" class="resource-link">Resource 2</a> <a href="https://example.com/resource3" class="resource-link">Resource 3</a> <a href="https://example.com/getstarted" class="get-started-button">Get Started</a> </div> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a customer feedback survey? It should have a friendly tone, a brief explanation of the survey's purpose, a 'Give Feedback' button, and an incentive for participation. <> [/INST] <!DOCTYPE html> <html> <head> <title>Customer Feedback Survey Email</title> <style>body{font-family:Arial,sans-serif;margin:0;padding:0}.container{max-width:600px;margin:0 auto;padding:20px}.intro-text{font-size:18px;margin-bottom:20px}.survey-purpose{margin-bottom:20px}.give-feedback-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}.incentive{font-weight:bold}</style> </head> <body> <div class="container"> <p class="intro-text">Hi [Customer Name],</p> <p class="survey-purpose">We value your opinion! Help us improve our products and services by taking a moment to provide your feedback through our customer feedback survey.</p> <a href="https://example.com/give-feedback" class="give-feedback-button">Give Feedback</a> <p class="incentive">As a token of appreciation, participants will have a chance to win a [Incentive]!</p> </div> </body> </html>
[INST] <> Create a web page that displays a message in different languages by using HTML, CSS, and JavaScript. <> [/INST] <!DOCTYPE html> <html> <head> <title>Hello World in Different Languages</title> <style> body { font-family: sans-serif; background-color: #eee; text-align: center; padding: 20px; } select { background-color: #f0f0f0; font-size: 1rem; padding: 5px 10px; margin-top: 20px; border: none; border-radius: 5px; } button { background-color: #444; color: #fff; font-size: 1rem; padding: 5px 10px; margin-top: 20px; border: none; border-radius: 5px; } .language-message { font-size: 2rem; margin: 20px; color: #444; } </style> </head> <body> <h1>Hello World in Different Languages</h1> <select id="language-selector"> <option value="English">English</option> <option value="French">French</option> <option value="Spanish">Spanish</option> <option value="German">German</option> <option value="Italian">Italian</option> </select> <button type="button" id="language-button">Show!</button> <label class="language-message" id="language-message"></label> <script> // Get language button, message label, and language selector elements const languageButton = document.querySelector('#language-button'); const languageMessage = document.querySelector('#language-message'); const languageSelector = document.querySelector('#language-selector'); let messages = { 'English': 'Hello, World!', 'French': 'Bonjour le monde!', 'Spanish': 'Hola Mundo!', 'German': 'Hallo Welt!', 'Italian': 'Ciao Mondo!' }; languageButton.addEventListener('click', () => { let language = languageSelector.value; languageMessage.innerText = messages[language]; }); </script> </body> </html>
[INST] <> Generate a dynamic HTML table displaying 10 random numbers from 1 to 100. <> [/INST] <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); ?></td></tr> <tr><td><?php echo rand(1,100); ?></td></tr> <tr><td><?php echo rand(1,100); ?></td></tr> <tr><td><?php echo rand(1,100); ?></td></tr> <tr><td><?php echo rand(1,100); ?></td></tr> <tr><td><?php echo rand(1,100); ?></td></tr> <tr><td><?php echo rand(1,100); ?></td></tr> <tr><td><?php echo rand(1,100); ?></td></tr> <tr><td><?php echo rand(1,100); ?></td></tr> </table> </div> </body> </html>
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
2
Edit dataset card