Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134323534
Author: FELKE-MORRIS
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 9, Problem 4MC
Program Description Answer
In this case, the HTML code where size of the text box is mentioned as 40 generates the text box of width 40 characters.
Hence, the correct answer is option “B”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Make a calculator from javascript. the HTML code is presented below.
<html> <head> <style> button { font-size: 200%; width: 40px; } input { font-size: 14px; height: 40px; text-align: right; } </style> </head> <body> <table> <tr> <td colspan="4"><input id="display" name="display" disabled></input></td> </tr> <tr> <td><button id="button1" value="1">1</button></td> <td><button id="button2" value="2">2</button></td> <td><button id="button3" value="3">3</button></td> <td><button id="addButton">+</button></td> </tr> <tr> <td><button id="button4" value="4">4</button></td> <td><button id="button5" value="5">5</button></td> <td><button id="button6" value="6">6</button></td> <td><button…
The following style is being used in an HTML document. Which letter will have only a line through it but not be underlined when the style is applied to the HTML below?: *
A) A
B) B
C) C
D) D
Build a html form with the following elements
Find: a text box for the user to key in text he/she wants to find.• Replace: a text box for the user to key in the replacement text. If th
Chapter 9 Solutions
Web Development and Design Foundations with HTML5 (8th Edition)
Ch. 9.4 - Prob. 1CPCh. 9.4 - Prob. 2CPCh. 9.4 - Prob. 3CPCh. 9.6 - Prob. 1CPCh. 9.6 - Describe the purpose of the access key attribute...Ch. 9.6 - Prob. 3CPCh. 9.8 - Prob. 1CPCh. 9.8 - Prob. 2CPCh. 9 - Prob. 1MCCh. 9 - Prob. 2MC
Ch. 9 - Prob. 3MCCh. 9 - Prob. 4MCCh. 9 - Prob. 5MCCh. 9 - Prob. 6MCCh. 9 - Prob. 7MCCh. 9 - Prob. 8MCCh. 9 - Prob. 9MCCh. 9 - Prob. 10MCCh. 9 - Prob. 11MCCh. 9 - Prob. 12FIBCh. 9 - Prob. 13FIBCh. 9 - Prob. 14FIBCh. 9 - Prob. 15SACh. 9 - Prob. 1AYKCh. 9 - Prob. 2AYKCh. 9 - Prob. 3AYKCh. 9 - Prob. 1HOECh. 9 - Prob. 2HOECh. 9 - Prob. 3HOECh. 9 - Prob. 4HOECh. 9 - Prob. 5HOECh. 9 - Prob. 1WRCh. 9 - Prob. 2WRCh. 9 - Prob. 3WRCh. 9 - Prob. 1FWD
Knowledge Booster
Similar questions
- Write a JavaScript code that generates a random number between 5 and 30. Then Design an html Form that contains: Textbox1: allow the user to enter a temperature in Fahrenheit. Textbox2: allow the user to enter a temperature in Celsius. Textbox3: The temperature result after Conversion from Fahrenheit to Celsius. Paragraph1: The temperature result after Conversion from Celsius to Fahrenheit. Paragraph2: the result of generation random number between [5-30]. Note: if the user insert in the textbox1 which is the value of a temperature in Fahrenheit 400, and then click on the toCelsius button, then the value of conversion from Fahrenheit to Celsius is typed in the textbox3. If the user insert in the textbox2 which is the value of a temperature in Celsius 8, and then click on the toFahrenheit button, then the value of conversion from Celsius to Fahrenheit is typed in the Paragraph1. Note: -The formula to convert from Fahrenheit to Celsius is: Celsius= (5/9) *…arrow_forwardDesign a simple HTML form to read the radius and height of a cone and send them to a Java Servlet to compute surface area and volume for displaying. (Hint: Surface area-3.14r(r+((hh)+(rr)) Volume= (h/3)*3.14°rrarrow_forwardWhat is displayed when the following style is applied to the HTML below? A) Choice A B) Choice B C) Choice C D) Choice Darrow_forward
- Create an HTML document that has text boxes for apple (52 cents each), orange (46 cents each), and banana (34 cents each), along with a Submit button. These text boxes take a number, which is the purchased number of a particular fruit. Each of the text boxes should have its own onclick event handler. These handlers must add the cost of their fruit to a total cost. An event handler for the Submit button must produce an alert window with the message: Your total cost is $xyz, where xyz is the total cost of the chosen fruit, including 6 percent sales tax.arrow_forwardWrite Html code to print the given statement as h1 heading in blue color. "H1 is the largest heading."arrow_forwardCreate an HTML form to allow the user to enter student names, one at a time, and displays all the names entered in a text area. Each time, the user types a name into a text box, and then presses the ENTER key to add the name in the text box to an array. The array is then sorted in alphabetical order and text area is updated with the new content in the array. Hints: you may use use keypress event. The event handler can take a parameter event. When the Enter key is pressed, the corresponding event.keyCode would be equal to 13.arrow_forward
- Write a JavaScript code with the following three different conditions: • Create the HTML document containing an element with id="myImage" for any images you want. • Use the HTML DOM to get the element with id="myImage". • Write a JavaScript function to change the JavaScript src attribute of element from " pet.gif" to " cat.jpg" when clicking on a button. Note: Students can use any gif and jpg files according to their choice. Important notes: 1. You should have to copy and paste the script as your answer to this question. DON’T take a screenshot for your script. It must be an editable script. 2. Take a screenshot of your output web page and paste it as a part of your answer.arrow_forwardWrite a JavaScript code with the following three different conditions: Create the HTML document containing an <img> element with id="myImage" for any images you want. Use the HTML DOM to get the element with id="myImage". Write a JavaScript function to change the JavaScript src attribute of <img> element from " pet.gif" to " cat.jpg" when clicking on a button. Note: Students can use any gif and jpg files according to their choice.arrow_forwardInstruction : Please add some css on the alert boxes. Change the color. Thank you! The HTML code with javascript is already provided. You just need to customize the alert prompt. Thanks! CODE: <!DOCTYPE html> <html lang="en"> <head> <title>Applying Javascript in HTML</title> <script> function userPrompt() { var lastName = prompt("Enter your Last name:"); var firstName = prompt("Enter your First name:"); alert("Hello " + lastName + ", " + firstName + "!"); const number1 = parseInt(prompt("Enter your 1st number:")); const number2 = parseInt(prompt("Enter your 2nd number:")); const sum = number1 + number2; alert("The sum is: " + sum); confirm(lastName + ", " + firstName + " you have added the numbers: " + number1 + " & " + number2 + " and got the sum: " + sum + "."); } </script> </head> <body onload='userPrompt()'>…arrow_forward
- Using HTML, create a webpage that contains a form with the following fields: A text box to enter name (mandatory) b. A text box to enter CGPA C. A submit button Write a PHP script that performs the following on clicking the submit button: a. Using regular expression check if the CGPA entered is a number less than or equal to 10. If no, display error message b. Check if the mandatory fields are filled in. If yes, display the message "Welcome <name>". If no, display error messagearrow_forwardWrite and HTML page to display a simple slot machine: The slot machine has 3 reels. Each reel has the following fruits: Grape Watermelon Orange Peach Lemon Apple Cherry Strawberry Pear Add a <button element with the text "Spin!" on the page When the user clicks the button, pick a random fruit for each reel and display the three fruits in a row as emojis It all three fruits match, output "Winner, winner, chicken dinner!" to a <div> element below the fruitsarrow_forwardDesign a webpage in HTML using CSS and JavaScript to show the monthly payment and the total payment of a loan. create two Buttons to compute the monthly loan payment and total payment given the loan amount of $367000, yearly_interest_rate= 5.25% and a number of years=30. Create two separate functions in JavaScript. function monthlyPayment() function totalPayments()arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- New Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning