Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134322759
Author: Terry Felke-Morris
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 9, Problem 8MC
Program Description Answer
In this case, the HTML code where size of the scrolling text box is mentioned as 30 characters and 2 rows generates the scrolling text box of width 30 characters and 2 rows.
Hence, the correct answer is option “C”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
<!DOCTYPE html><html><head><style>p {font-family: arial; font-size: 20px;} </style></head><body>
<button onclick='buyApple()'>Purchase Appple</button><button onclick='buyOrange()'>Purchase Orange</button>
<!-- This marks space for a paragraph that we can update during the program --><p id="balance"></p>
<script>// javascript code begin// Step 1. initialize variables:change=100 // starting balanceapple=10 // price of 1 appleorange=20 // price of 1 orangetortilla=30 // price of 1 tortillafoundMoney=25 // pretend found $25// initialize the user-interface when this page loads:document.getElementById("balance").innerHTML = "$"+change;// Step 2. define event functions for each buttonfunction buyApple(){change -= apple;document.getElementById("balance").innerHTML = "$"+change;}function buyOrange(){change -= orange;document.getElementById("balance").innerHTML = "$"+change;}// Make 2 more functions here,…
Which of the following statements is true?
A
Any particular HTML5 form input types must render identically in every HTML5-
compliant browser.
B
If the user enters an improperly formatted URL in a url input type, it will not validate.
HTML5 does not validate that the URL entered actually exists.
C
The header element may be used only one time on a page.
D
When the focus is placed in the text field (i.e., the cursor is in the text field), the placeholder
text is submitted to the server.
All variables declared in function definitions are ____________ variables.
A
local
B
global
C
constant
D
special
Use the given code snippet to answer the following question.
<style>
.one.two {
Color : blue;
}
</style>
Which HTML block should be used to display the text in red?
<div id “one”>
<div class = ‘two”> This should be red</div>
</div>
<div class =”one two”> This should be red</div>
<div class =”one” id= “two”> This should be red</div>
<div class =”one”>
<div class=”two”> This should be red</div>
</div>
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
- Which JavaScript expression references the first element in an HTML document that belongs to the “sideBar” class? a. document.getElementByClassName("sideBar")[0] b. document.getElementsByClassName("sideBar")[1] c. document.getElementByName("sideBar") d. document.getElementsByClassName("sideBar")[0]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_forwardBy using the program below: Kindly use CSS, Set the text color for the page to "red", and the text color for <h1> to "blue". <!DOCTYPE html> <html> <head> <style> </style> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>arrow_forward
- Q5. By using the program below: Kindly Set the background color for the page to "linen" and the background color for <h1> to "lightblue". <!DOCTYPE html> <html> <head> </head> <body> <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>arrow_forwardMake 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…arrow_forwardWrite an appropriate HTML code to get the following output: Title: Lab Exercise Five Background color: DarksalmonHeading style (Heading 2): Background color = Ghostwhite; Font type = Verdana; Font align = Center; Font color = Black Table style: Border 5px; solid white; collapse; width = 100% Table Headings: Beverages; Coffee; Tea; JuicesCoffee (unordered list): Black Coffee; Milk Coffee; Cappucino; EspressoTea (ordered list): Black Tea; Milk Tea; Green Tea; Earl Grey Tea; Jasmine Tea; Peppermint TeaJuices (description list): Morning Green Juice (Green Apple, Ginger, Spinach, Celery, Fresh Mint Leaves); Sweet Sunrise (Rasberries, Banana, Orange, Mango); Tropical Treat (Banana, Mango, Strawberry).arrow_forward
- I want to make a checker game. I have these codes started. <DOCTYPE html> <html> <head> <style> #mainChessBoard { width:160px; height:160px; border:1px solid black; } div { width:20px; height:20px; float:left; } </style> </head> <body> <div id="mainChessBoard"> </div> <script type="text/javascript"> for (var i=0; i< 64; i++){ document.getElementById("mainChessBoard").appendChild(document.createElement("div")).style.backgroundColor = parseInt((i / 8) + i) % 2 == 0 ? '#ababab' : 'white'; } </script> </body> </html>arrow_forwardCreate another HTML File with YourNameReqgNoJavaScript.html (Add this step screen shot too). Design the form and show the output as shown below (using table, text fields, buttons, radio buttons and formatting tags). Also define External CSS file and apply CSS to all the Text Fields, Buttons and Lables. Ask User to enter Name, Reg No, Obtain and Total Marks. When User Presses the Calculate Grade Button, then Percentage should be computed and displayed in Text field against percentage label. Finally, based on the Percentage compute the Grade and show in the Grade Text field. Using JavaScript, write code to calculate the percentage and when user clicks the Submit button then following output should be printed in Browser. When User Clicks the Clear button all the field text should be cleared. Also, include the following Checks/Validations Student Name only contain Alphabets, Numeric value can not be entered in this filed Student Name must be atleast 5 Characters in length Marks obt and…arrow_forwardq35- What is the correct HTML for making a checkbox? Select one: a. <input type="check"> b. <check> c. <input type="checkbox"> d. <checkbox> Clear my choicearrow_forward
- HTML/CSS: Below is the code and I need help in making sure the toggle switch along with the title at the top of the button to be aligned in the middle. Make sure to show the correct code and the screenshot of the output. Code: .toggle-switch { position: relative; display: inline-block; width: 60px; height: 34px; } .toggle-switch .switch-track { background-color: var(--mode-btn-bg); border-radius: 34px; display: block; height: 100%; width: 100%; position: absolute; transition: background-color 0.3s; } .toggle-switch .switch-thumb { background-color: var(--p-text); border-radius: 50%; width: 26px; height: 26px; position: absolute; top: 4px; left: 4px; transition: transform 0.3s, background-color 0.3s; } input[type="checkbox"]:checked+.toggle-switch .switch-track { margin: auto; background-color: var(--mode-btn-bg) } input[type="checkbox"]:checked+.toggle-switch .switch-thumb { transform: translateX(26px); } .toggle-switch+p::before {…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_forwardCreate a web page with three paragraphs and three buttons. Write code for these buttons by following the instructions given below: When button1 will be clicked, color of first paragraphs should be blue. When button2 will be clicked, color of first two paragraphs should be red. When button3 will be clicked, color of all paragraphs should be green.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