text
stringlengths
68
4.92k
[INST] <> Please generate a html. Can you create an email template for a financial advice newsletter? It should have a professional layout, expert financial tips, a 'Learn More' button for in-depth articles, and a section for user-submitted questions. <> [/INST] <!DOCTYPE html> <html> <head> <title>Financial Advice Newsletter</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #F5F7FA; } .header { text-align: center; margin-bottom: 20px; } .article { margin-bottom: 20px; } .button { display: inline-block; background-color: #3498DB; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .questions { margin-top: 20px; } </style> </head> <body> <div class="container"> <h1>Financial Advice Newsletter</h1> <div class="header"> <img src="logo.png" alt="Logo"> </div> <div class="article"> <h2>Expert Financial Tips</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tempus semper lectus, id iaculis lorem aliquet et.</p> </div> <a href="learn-more.html" class="button">Learn More</a> <div class="questions"> <h2>Ask the Experts</h2> <p>Have a financial question? Submit it to our experts and get personalized advice.</p> <a href="submit-question.html" class="button">Submit a Question</a> </div> </div> </body> </html>
[INST] <> Please generate a html. I need an email template for a pet adoption campaign. It should have a heartwarming design, featured adoptable pets, a 'Find Your Furry Friend' button, and an option to share the campaign on social media. <> [/INST] <!DOCTYPE html> <html> <head> <title>Pet Adoption Campaign</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #F5F7FA; } .header { text-align: center; margin-bottom: 20px; } .featured-pets { margin-bottom: 20px; } .button { display: inline-block; background-color: #3498DB; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .social-media { text-align: center; margin-bottom: 20px; } .social-media img { margin: 0 5px; } </style> </head> <body> <div class="container"> <h1>Pet Adoption Campaign</h1> <div class="header"> <img src="logo.png" alt="Logo"> </div> <div class="featured-pets"> <h2>Featured Adoptable Pets</h2> <p>Meet these adorable pets looking for their forever homes.</p> </div> <a href="find-pets.html" class="button">Find Your Furry Friend</a> <div class="social-media"> <p>Help spread the word by sharing this campaign on social media:</p> <img src="facebook.png" alt="Facebook"> <img src="twitter.png" alt="Twitter"> <img src="instagram.png" alt="Instagram"> </div> </div> </body> </html>
[INST] <> Construct a HTML page for a registration form. <> [/INST] <html> <head> <title>Registration Form</title> </head> <body> <h1>Registration Form</h1> <form action="register.php" method="POST"> <div class="form-row"> <label>Username:</label> <input type="text" name="username" required> </div> <div class="form-row"> <label>Email:</label> <input type="email" name="email" required> </div> <div class="form-row"> <label>Password:</label> <input type="password" name="password" required> </div> <div class="form-row"> <input type="submit" value="Register"> </div> </form> </body> </html>
[INST] <> Correct the syntax error in the following HTML structure. <> <div> <h1>My Web Page</h> <div/> [/INST] <div> <h1>My Web Page</h1> </div>
[INST] <> Create an HTML page that contains an input field and a submit button; when the button is clicked, it should print the input text in the HTML page. <> [/INST] <html> <head> <script> function printInput() { let input = document.getElementById("input").value; document.getElementById("result").innerHTML = input; } </script> </head> <body> <input type="text" id="input" /> <button type="submit" onclick="printInput()">submit</button> <div id="result"></div> </body> </html>
[INST] <> Create an HTML page which displays Hello World in the center of the page. <> [/INST] <!DOCTYPE html> <html> <head> <title>Hello World</title> <style> body { display: flex; justify-content: center; align-items: center; margin: 0; } </style> </head> <body> <h1>Hello World</h1> </body> </html>
[INST] <> Generate an HTML page on the browser with the text "Hello world." <> [/INST] <html> <head> </head> <body> Hello world. </body> </html>
[INST] <> Create an HTML page with a table showing the results of the following SQL query: <> SELECT student_name, grade FROM students ORDER BY grade DESC [/INST] <html> <head> <title>Student Grades</title> </head> <body> <h2>Student Grades</h2> <table> <thead> <tr> <th>Student Name</th> <th>Grade</th> </tr> </thead> <tbody> <?php // Connect to the database // Run the query // Loop through the results ?> </tbody> </table> </body> </html>
[INST] <> Please generate a html. I need an email template for a home decor inspiration newsletter. It should have a stylish design, featured home decor trends, a 'Shop the Look' button, and tips for creating a cozy home. <> [/INST] <!DOCTYPE html> <html> <head> <title>Home Decor Inspiration Newsletter</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #F4F4F4; } .header { text-align: center; margin-bottom: 20px; } .trends { margin-bottom: 20px; } .trend { 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: #FF6600; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .tips { margin-top: 20px; } </style> </head> <body> <div class="container"> <h1>Welcome to Our Home Decor Inspiration Newsletter!</h1> <div class="header"> <img src="logo.png" alt="Logo"> </div> <div class="trends"> <div class="trend"> <img src="trend1.jpg" alt="Trend 1"> <h2>Trendy Minimalism</h2> <p>Discover how to create a minimalist and stylish look for your home with clean lines and neutral colors.</p> </div> <div class="trend"> <img src="trend2.jpg" alt="Trend 2"> <h2>Boho Chic</h2> <p>Get inspired by the eclectic and vibrant Boho Chic style that combines different patterns and textures.</p> </div> </div> <a href="shop-the-look.html" class="button">Shop the Look</a> <div class="tips"> <h2>Tips for Creating a Cozy Home</h2> <p>1. Use warm colors and soft textures to create a cozy ambiance.</p> <p>2. Incorporate natural elements like plants and wood for a calming effect.</p> <p>3. Arrange comfortable seating areas for relaxation and socializing.</p> </div> </div> </body> </html>
[INST] <> Construct a HTML page that takes a user input and display the response. <> [/INST] <html> <body> <form action="" method="POST"> Enter your name: <input type="text" name="name"><br> <input type="submit" value="Submit"> </form> <?php if (isset($_POST['name'])) { echo "Hello, " . $_POST['name']; } ?> </body> </html>
[INST] <> Create a web page to display two input fields to enter the two numbers <> [/INST] <!DOCTYPE html> <html> <head> <title>Input fields</title> </head> <body> <h1>Input fields to enter two numbers</h1> <form> <p>Enter the first number:<p> <input type="number" name="number1"><br><br> <p>Enter the second number:</p> <input type="number" name="number2"><br><br> <input type="submit" value="Submit"> </form> </body> </html>
[INST] <> Write an HTML program to display an output as a table. <> [/INST] <html> <head> <title>Table example</title> </head> <body> <table border = "1"> <tr> <td>Row 1, Column 1</td> <td>Row 1, Column 2</td> </tr> <tr> <td>Row 2, Column 1</td> <td>Row 2, Column 2</td> </tr> </table> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a customer advocacy program? It should have a supportive and community-focused design, program details, a 'Join the Advocates' button, and a section for advocates to share their success stories. <> [/INST] <!DOCTYPE html> <html> <head> <title>Customer Advocacy Program</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; } .program-details { margin-bottom: 20px; } .success-stories { margin-bottom: 20px; } .button { display: inline-block; background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } </style> </head> <body> <div class="container"> <h1>Welcome to Our Customer Advocacy Program</h1> <div class="header"> <h2>Join Our Community of Advocates</h2> </div> <div class="program-details"> <h3>Program Details:</h3> <p>Learn about our customer advocacy program and the benefits of becoming an advocate. Participate in exclusive events, access early releases, and contribute to product development.</p> </div> <div class="success-stories"> <h3>Share Your Success Story:</h3> <p>We want to hear how our products/services have made a difference in your life. Share your success story and inspire others in our community.</p> </div> <a href="#" class="button">Join the Advocates</a> </div> </body> </html>
[INST] <> 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. <> [/INST] <html> <head> <title>Input Validation</title> </head> <body> <form action=""> <input type="text" name="firstName" placeholder="First Name"> <input type="text" name="lastName" placeholder="Last Name"> <input type="button" value="Submit" onclick="validateData()"> </form> <script> function validateData() { let firstName = document.querySelector('[name="firstName"]').value; let lastName = document.querySelector('[name="lastName"]').value; if (firstName.trim() === '' || lastName.trim() === '') { alert('First and last name are required.'); } } </script> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a new course announcement? It should have an engaging header image, a course description, instructor details, a 'Enroll Now' button, and customer testimonials. <> [/INST] <!DOCTYPE html> <html> <head> <title>New Course Announcement 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}.course-description{font-size:18px;margin-bottom:20px}.instructor-details{margin-bottom:20px}.instructor-name{font-weight:bold}.enroll-button{display:inline-block;padding:10px 20px;font-size:16px;font-weight:bold;color:#ffffff;background-color:#007bff;text-decoration:none;border-radius:4px}.testimonial{margin-bottom:20px}.testimonial-quote{font-style:italic}.testimonial-author{font-weight:bold}</style> </head> <body> <div class="container"> <img src="header_image.jpg" alt="Course Header Image" class="header-image"> <p class="course-description">Introducing our new course! Join us to learn the latest skills and techniques in [Course Topic].</p> <div class="instructor-details"> <p class="instructor-name">Instructor: [Instructor Name]</p> <p>[Instructor Bio]</p> </div> <a href="https://example.com/enroll" class="enroll-button">Enroll Now</a> <div class="testimonial"> <p class="testimonial-quote">"This course changed my life. Highly recommended!"</p> <p class="testimonial-author">- [Customer Name]</p> </div> <div class="testimonial"> <p class="testimonial-quote">"The best course I've ever taken. The instructor is amazing!"</p> <p class="testimonial-author">- [Customer Name]</p> </div> </div> </body> </html>
[INST] <> Create a HTML page to display a table with 5 rows and 4 columns of data. <> [/INST] <html> <head> <title>Table Example</title> </head> <body> <table> <tr> <td>Row 1, Column 1</td> <td>Row 1, Column 2</td> <td>Row 1, Column 3</td> <td>Row 1, Column 4</td> </tr> <tr> <td>Row 2, Column 1</td> <td>Row 2, Column 2</td> <td>Row 2, Column 3</td> <td>Row 2, Column 4</td> </tr> <tr> <td>Row 3, Column 1</td> <td>Row 3, Column 2</td> <td>Row 3, Column 3</td> <td>Row 3, Column 4</td> </tr> <tr> <td>Row 4, Column 1</td> <td>Row 4, Column 2</td> <td>Row 4, Column 3</td> <td>Row 4, Column 4</td> </tr> <tr> <td>Row 5, Column 1</td> <td>Row 5, Column 2</td> <td>Row 5, Column 3</td> <td>Row 5, Column 4</td> </tr> </table> </body> </html>
[INST] <> Create an HTML page with an input field and a button, and write a JavaScript function that sets the font size of the entered text in the input field to 16pt when the button is clicked. <> [/INST] <html> <head> <title>Change Font Size</title> <script type="text/javascript"> function changeFontSize() { var inputField = document.getElementById("inputField"); inputField.style.fontSize = "16pt"; } </script> </head> <body> <input type="text" id="inputField" placeholder="Enter Text Here"> <button type="button" onclick="changeFontSize()">Change Font Size</button> </body> </html>
[INST] <> What is a JavaScript code to fetch data from an API and display it on an HTML page? <> API_URL [/INST] <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Data Fetching</title> </head> <body> <div id="output"></div> <script> async function fetchData() { const API_URL = 'https://api.example.com/data'; const response = await fetch(API_URL); const data = await response.json(); const outputElem = document.getElementById('output'); outputElem.innerHTML = JSON.stringify(data, null, 2); } fetchData(); </script> </body> </html>
[INST] <> Edit the following HTML code to allow Google Chrome to accurately render the page. <> <html> <head> <title>My Webpage</title> </head> <body> <table> <tr> <th>Column 1</th> <th>Coloumn 2</th> </tr> </body> </html> [/INST] <html> <head> <title>My Webpage</title> </head> <body> <table> <tr> <th>Column 1</th> <th>Column 2</th> </tr> </table> </body> </html>
[INST] <> Create a HTML form to allow users to enter an email address and a message. <> [/INST] <!DOCTYPE html> <html> <head> </head> <body> <form action="submit.php" method="post"> Email: <input type="text" name="email"> Message: <input type="text" name="message"> <input type="submit" value="Submit"> </form> </body> </html>
[INST] <> Write an HTML page which displays the current time and date. <> [/INST] <html> <body> <p>Today is <span id="date"> </span> and the time is <span id="time"> </span>.</p> <script> let d = new Date(); let date = d.toDateString(); document.getElementById("date").innerHTML = date; let time = d.toLocaleTimeString(); document.getElementById("time").innerHTML = time; </script> </body> </html>
[INST] <> Construct an HTML page with a table that displays employee information, including name, age, and salary. <> [/INST] <html> <head> <title>Employee Information</title> </head> <body> <table> <tr> <th>Name</th> <th>Age</th> <th>Salary</th> </tr> <tr> <td>John</td> <td>32</td> <td>50000</td> </tr> <tr> <td>Karen</td> <td>30</td> <td>45000</td> </tr> <tr> <td>Bob</td> <td>35</td> <td>55000</td> </tr> </table> </body> </html>
[INST] <> Insert correction in the following HTML code <> <html> <body> <h1> This is a heading <h2> </body> </html> [/INST] <html> <body> <h1> This is a heading </h1> </body> </html>
[INST] <> Using HTML and JavaScript, write a script to display the current date in the format "Monday, June 15th" <> [/INST] <html> <head> <title>Displaying Date</title> <script type="text/javascript"> function getDate() { var d = new Date(); var month = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var day = d.getDate(); var sup = ""; if (day == 1 || day == 21 || day ==31) { sup = "st"; } else if (day == 2 || day == 22) { sup = "nd"; } else if (day == 3 || day == 23) { sup = "rd"; } else { sup = "th"; } alert("Today is " + d.getDay() + " " + month[d.getMonth()] + " " + day + sup); } </script> </head> <body> <input type="button" onclick="getDate()" value="Click Me to Get the Date"> </body> </html>
[INST] <> Create an HTML page containing a list of all US states. <> [/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> <li>Delaware</li> <li>Florida</li> <li>Georgia</li> <li>Hawaii</li> <li>Idaho</li> <li>Illinois</li> <li>Indiana</li> <li>Iowa</li> <li>Kansas</li> <li>Kentucky</li> <li>Louisiana</li> <li>Maine</li> <li>Maryland</li> <li>Massachusetts</li> <li>Michigan</li> <li>Minnesota</li> <li>Mississippi</li> <li>Missouri</li> <li>Montana</li> <li>Nebraska</li> <li>Nevada</li> <li>New Hampshire</li> <li>New Jersey</li> <li>New Mexico</li> <li>New York</li> <li>North Carolina</li> <li>North Dakota</li> <li>Ohio</li> <li>Oklahoma</li> <li>Oregon</li> <li>Pennsylvania</li> <li>Rhode Island</li> <li>South Carolina</li> <li>South Dakota</li> <li>Tennessee</li> <li>Texas</li> <li>Utah</li> <li>Vermont</li> <li>Virginia</li> <li>Washington</li> <li>West Virginia</li> <li>Wisconsin</li> <li>Wyoming</li> </ul> </body> </html>
[INST] <> Create a script in HTML to output a horizontal line. <> [/INST] <html> <head> <title>Horizontal Line</title> </head> <body> <hr> </body> </html>
[INST] <> Please generate a html. I need an email template for a travel destination guide. It should have a wanderlust-inspired design, featured destinations, a 'Plan Your Adventure' button, and recommendations for local attractions, restaurants, and accommodations. <> [/INST] <!DOCTYPE html> <html> <head> <title>Travel Destination Guide</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; } .featured-destinations { margin-bottom: 20px; } .attractions { margin-bottom: 20px; } .restaurants { margin-bottom: 20px; } .accommodations { margin-bottom: 20px; } .button { display: inline-block; background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } </style> </head> <body> <div class="container"> <h1>Explore Your Next Adventure</h1> <div class="header"> <h2>Discover Amazing Destinations</h2> </div> <div class="featured-destinations"> <h3>Featured Destinations:</h3> <ul> <li>Destination 1</li> <li>Destination 2</li> <li>Destination 3</li> </ul> </div> <div class="attractions"> <h3>Must-See Attractions:</h3> <ul> <li>Attraction 1</li> <li>Attraction 2</li> <li>Attraction 3</li> </ul> </div> <div class="restaurants"> <h3>Local Restaurants:</h3> <ul> <li>Restaurant 1</li> <li>Restaurant 2</li> <li>Restaurant 3</li> </ul> </div> <div class="accommodations"> <h3>Accommodations:</h3> <ul> <li>Accommodation 1</li> <li>Accommodation 2</li> <li>Accommodation 3</li> </ul> </div> <a href="#" class="button">Plan Your Adventure</a> </div> </body> </html>
[INST] <> Write an HTML page that takes an email address as input and displays a "Thank you" message after the submission. <> [/INST] <!DOCTYPE html> <html> <head> <title>Thank You</title> </head> <body> <form method="POST" action=""> <label> Email: <input type="email" name="email"> </label> <input type="submit" value="Submit"> </form> <?php if ($_POST) { echo 'Thank you for signing up!'; } ?> </body> </html>
[INST] <> Create a JavaScript function to sort a list of strings alphabetically and display it in the web page. <> ["apple", "banana", "kiwi", "grape"] [/INST] <!DOCTYPE html> <html> <head> <script> function sortAndDisplayStrings(strings) { strings.sort(); const listElem = document.createElement('ul'); for (const str of strings) { const itemElem = document.createElement('li'); itemElem.textContent = str; listElem.appendChild(itemElem); } document.body.appendChild(listElem);} const strings = ["apple", "banana", "kiwi", "grape"]; sortAndDisplayStrings(strings); </script> </head> <body> </body> </html>
[INST] <> Rewrite this HTML code so that it is valid HTML5. <> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Example website</title> </head> <body> <h1>My example website</h1> <p>This is some example text</p> </body> </html> [/INST] <!DOCTYPE html> <html> <head> <title>Example website</title> </head> <body> <h1>My example website</h1> <p>This is some example text</p> </body> </html>
[INST] <> Use HTML to create a webpage which featured a table. <> [/INST] <html> <head> <title>Page Title</title> </head> <body> <h1>My Table Webpage</h1> <table> <tr> <th>Column 1</th> <th>Column 2</th> </tr> <tr> <td>Row 1, Column 1</td> <td>Row 1, Column 2</td> </tr> <tr> <td>Row 2, Column 1</td> <td>Row 2, Column 2</td> </tr> <tr> <td>Row 3, Column 1</td> <td>Row 3, Column 2</td> </tr> </table> </body> </html>
[INST] <> Build a HTML page using the given CSS class <> CSS Classes: .container { width: 300px; height: 200px; background-color: blue; } .text { color: white; font-family: Arial; font-size: 16px; padding: 15px; text-align: center; } [/INST] <html> <head> <style> .container { width: 300px; height: 200px; background-color: blue; } .text { color: white; font-family: Arial; font-size: 16px; padding: 15px; text-align: center; } </style> </head> <body> <div class="container"> <div class="text">Hello World!</div> </div> </body> </html>
[INST] <> Please generate a html. I want an email template for a customer survey follow-up. It should have a thank-you message, a summary of survey results, actionable insights, and an invitation to discuss further. <> [/INST] <!DOCTYPE html> <html> <head> <title>Customer Survey Follow-up</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}.survey-summary{margin-top:20px}.survey-insights{margin-top:20px}.discussion-invitation{margin-top:20px}.discussion-invitation a{display:inline-block;background-color:#007bff;color:#fff;padding:10px 20px;text-decoration:none;border-radius:5px}.discussion-invitation a:hover{background-color:#0056b3}</style> </head> <body> <div class="container"> <h1 class="thank-you-message">Thank You for Your Feedback!</h1> <p class="survey-summary">Based on the survey results, here is a summary of the key findings:</p> <ul class="survey-insights"> <li>Insight 1</li> <li>Insight 2</li> <li>Insight 3</li> </ul> <p class="discussion-invitation">We value your input and would love to discuss these insights further with you. Please <a href="mailto:[email protected]">contact us</a> to schedule a conversation.</p> </div> </body> </html>
[INST] <> Create an HTML page with a form that has two inputs: Name and Email. <> [/INST] <html> <head> <title>Submission Form</title> </head> <body> <form> <label for="name">Name: </label> <input type="text" name="name" id="name" /> <label for="email">Email: </label> <input type="email" name="email" id="email" /> <input type="submit" value="Submit" /> </form> </body> </html>
[INST] <> Create an HTML document with a table containing book information. <> [/INST] <html> <body> <h2>Book Information</h2> <table> <tr> <th>Title</th> <th>Author</th> <th>Price</th> </tr> <tr> <td>Harry Potter and the Sorcerer's Stone</td> <td>J.K. Rowling</td> <td>$10.99</td> </tr> <tr> <td>The Cat in the Hat</td> <td>Dr. Seuss</td> <td>$7.99</td> </tr> </table> </body> </html>
[INST] <> Generate a valid HTML markup from the given JSON data. <> { "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>City: New Delhi</li> <li>State: Delhi</li> </ul> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a company anniversary celebration? It should have a festive theme, a timeline of company milestones, a 'Celebrate with Us' button, and employee testimonials. <> [/INST] <!DOCTYPE html> <html> <head> <title>Company Anniversary Celebration</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #F4F4F4; } .header { text-align: center; margin-bottom: 20px; } .timeline { margin-bottom: 20px; } .button { display: inline-block; background-color: #FF6600; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .testimonials { margin-top: 20px; } .testimonial { margin-bottom: 20px; } </style> </head> <body> <div class="container"> <img src="header.jpg" alt="Company Anniversary Header" class="header" /> <div class="timeline"> <h1>Company Anniversary Celebration</h1> <p>Timeline of company milestones:</p> <ul> <li>Year 1: Milestone 1</li> <li>Year 2: Milestone 2</li> <li>Year 3: Milestone 3</li> </ul> </div> <a href="celebrate.html" class="button">Celebrate with Us</a> <div class="testimonials"> <h2>Employee Testimonials</h2> <div class="testimonial"> <p>Employee testimonial 1 goes here.</p> <p> - Employee Name 1</p> </div> <div class="testimonial"> <p>Employee testimonial 2 goes here.</p> <p> - Employee Name 2</p> </div> </div> </div> </body> </html>
[INST] <> Please generate a html. Can you create an email template for a motivational newsletter? It should have an uplifting design, inspiring quotes, personal anecdotes, a 'Stay Motivated' button, and an option for readers to submit their success stories. <> [/INST] <!DOCTYPE html> <html> <head> <title>Motivational Newsletter</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 { font-size: 24px; font-weight: bold; margin-bottom: 10px; } .anecdote { margin-bottom: 20px; } .button { display: inline-block; background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .success-story { text-align: center; } .success-story p { margin-bottom: 10px; } .success-story textarea { width: 100%; min-height: 100px; padding: 10px; border-radius: 5px; border: none; margin-bottom: 10px; } .success-story input[type="submit"] { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 5px; } </style> </head> <body> <div class="container"> <h1>Motivational Newsletter</h1> <div class="header"> <h2>Stay Inspired and Motivated!</h2> </div> <div class="quote"> <p>"Inspiring Quote of the Day"</p> </div> <div class="anecdote"> <p>Share a personal anecdote or story to motivate and uplift:</p> <p>[Personal anecdote goes here]</p> </div> <a href="#" class="button">Stay Motivated</a> <div class="success-story"> <p>Share your success story with us:</p> <form action="#" method="post"> <textarea name="story" placeholder="Share your success story" required></textarea> <input type="submit" value="Submit"> </form> </div> </div> </body> </html>
[INST] <> Using HTML and CSS, create an interactive button. <> [/INST] <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; cursor: pointer; } </style> </head> <body> <h1>Interactive Button</h1> <button class="button">Click Me!</button> </body> </html>
[INST] <> Please generate a html. I need an email template for a sustainability campaign. It should have a nature-themed design, eco-friendly tips, a 'Take Action' button linking to resources, and an invitation to share personal sustainability stories. <> [/INST] <!DOCTYPE html> <html> <head> <title>Sustainability Campaign</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%; margin-bottom: 20px; } .eco-tips { font-size: 16px; margin-bottom: 20px; } .action-button { display: inline-block; background-color: #4CAF50; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; } .stories-text { font-size: 14px; margin-top: 20px; } </style> </head> <body> <div class="container"> <img src="nature-image.jpg" alt="Nature" class="header-image" /> <h1>Join Our Sustainability Campaign!</h1> <p class="eco-tips">Here are some eco-friendly tips to make a difference:</p> <ul> <li>Reduce your plastic usage by using reusable bags.</li> <li>Save energy by switching off lights when not in use.</li> <li>Conserve water by taking shorter showers.</li> </ul> <a href="resources.html" class="action-button">Take Action Now</a> <p class="stories-text">We invite you to share your personal sustainability stories with us. Together, we can create a greener future!</p> </div> </body> </html>
[INST] <> Edit the following HTML document and add a CSS style to changes the background color to blue. <> <html> <head> </head> <body> <h1>Hello, World!</h1> </body> </html> [/INST] <html> <head> <style> body { background-color: blue; } </style> </head> <body> <h1>Hello, World!</h1> </body> </html>
[INST] <> Write an HTML page which contains a form with fields for a user's first name, last name, and email address. <> [/INST] <html> <head> <title>User Info Form</title> </head> <body> <form> <label>First Name:</label> <input type="text" id="firstname" name="firstname" > <br><br> <label>Last Name:</label> <input type="text" id="lastname" name="lastname"> <br><br> <label>Email:</label> <input type="text" id="email" name="email"> <br><br> <input type="submit" value="Submit" > </form> </body> </html>
[INST] <> Generate an HTML page which contains the following elements: a heading, a paragraph, and a button. <> [/INST] <html> <head> <title>My HTML Page</title> </head> <body> <h1>Hello World!</h1> <p>This is a simple HTML page created using code.</p> <button>Click Me!</button> </body> </html>
[INST] <> Construct an HTML table that contains the following headers: "Year", "Make", "Model". <> [/INST] <html> <table> <thead> <tr> <th>Year</th> <th>Make</th> <th>Model</th> </tr> </thead> </table> </html>
[INST] <> Produce an HTML webpage that shows a table of 10 colors and their corresponding hexcodes. <> [/INST] <html> <head> </head> <body> <table> <thead> <tr> <th>Color</th> <th>Hexcode</th> </tr> </thead> <tbody> <tr> <td>Red</td> <td>#FF0000</td> </tr> <tr> <td>Blue</td> <td>#0000FF</td> </tr> <tr> <td>Green</td> <td>#00FF00</td> </tr> <tr> <td>Yellow</td> <td>#FFFF00</td> </tr> <tr> <td>Orange</td> <td>#FFA500</td> </tr> <tr> <td>Pink</td> <td>#FFC0CB</td> </tr> <tr> <td>Purple</td> <td>#800080</td> </tr> <tr> <td>Cyan</td> <td>#00FFFF</td> </tr> <tr> <td>Brown</td> <td>#A52A2A</td> </tr> <tr> <td>White</td> <td>#FFFFFF</td> </tr> </tbody> </table> </body> </html>