Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
9th Edition
ISBN: 9780134801148
Author: Terry Felke-Morris
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 9, Problem 11MC
Program Description Answer
The browser displays an input text box when it encounters a new HTML5 form control which it does not support.
Hence, the correct answer is option “D”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Create an HTML form that has a number of textboxes write a javascript code that verifies all textboxes have been filled. if it is empty. popup at least indicating which textbox is empty.
Instruction : 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()'>…
You are going to add some javascript to your webpage to greet the user. All the below instructions can be found with further explanations in the Javascript lectures.
Don not only give me the html code, i need javascript
If you do not already have them, add two <h1> title tags so they display at the top of your webpage
The first tag should have the contents: “Welcome”
The second tag should have an id='username' and contents: “Placeholder”
All Javascript must go in a file with the extension “.js”, such as “main.js” or “script.js”. Create a file to hold your javascript if one is not already there.
Add a script tag at the end of your body tag that includes your javascript file.
In your script tag, use the javascript prompt command to save input from the user into a variable
Ask the user their name in the prompt command
You can name the variable whatever you like
Change the second <h1 id=’username’> contents to the name entered by the user
it should be stored in the…
Chapter 9 Solutions
Web Development and Design Foundations with HTML5 (9th Edition) (What's New in Computer Science)
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. 7MCCh. 9 - Prob. 4MCCh. 9 - Prob. 5MCCh. 9 - Prob. 6MCCh. 9 - Prob. 3MCCh. 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
- 3- According to HTML code, which color will be the background color of the paragraph that has text "Second Line" in it. (hint: red+green = yellow, red+blue=purple, red+yellow:orange, green+blue: cyan, blue+red:magenta ) 0pacity Example .red {background-color: red;} .f-bg {background-color: rgb (255,255,0); } .f-bg2 {background-color: rgba(255,255, 0,.5);} .f-bg3 {background-color: rgb(255,255,0); opacity: .4;} First Line Second line Third linearrow_forwardSuppose there is a text box on your browser window called FirstName. When you scroll up or down, the text box does not move at all while other elements on the page do move. What value for the position property would FirstName have? A) absolute B) relative C) fixed D) staticarrow_forwardHereWrite the code necesary in javascript to create a webpage that contains a contact form like the one in the attatched picture. To create and style this form, copy the following HTML and CSS code exactly as follows: HTML: <form><label for="myName">Name:</label><input type="text" name="myName" id="myName"><label for="myEmail">E-mail:</label><input type="text" name="myEmail" id="myEmail"›<label for="myComments">Comments:</label><textarea name="myComments" id="myComments" rows="2" cols="20"></textarea><input id="mySubmit" type="submit" value="Submit"›</form> CSS: form { background-color:#eaeaea;font-family: Arial, sans-serif;padding: lOpx; }label { float: left;width: 100px;clear: left;text-align: right;padding-right: lOpx;margin-top: lOpx; }input, textarea { margin-top: lOpx;display: block; }#mySubmit { margin-left: 110px; }.arrow_forward
- SUBJECT:INTERNET FUNDAMENTALS AND SCRIPTING Write a program to display the sum of numbers between 2 numbers inclusively. These are the Javascript program requirements:• The user types 2 values in 2 html input boxes, then clicks on the "calculate" button to display the sum of the numbers between the 2 values.• The 2 values must be a number, if any of the 2 values is not, display a warning on the web page, and do nothing else until numbers are entered• The use must enter a value. If one of the 2 inputs is empty, display a warning in the result span on the web page.• The value of number 1 must be greater than number 2, otherwise display a warning in the result span on the web page.12• Call the function sumBetween(n1,n2)• Display the sum in the result span on the web page.arrow_forwardJavaScript all design notvsame as web page remember that. Allala Write the code necesary in javascript to create a webpage that contains a contact form like the one in the attatched picture. To create and style this form, copy the following HTML and CSS code exactly as follows: HTML: <form><label for="myName">Name:</label><input type="text" name="myName" id="myName"><label for="myEmail">E-mail:</label><input type="text" name="myEmail" id="myEmail"›<label for="myComments">Comments:</label><textarea name="myComments" id="myComments" rows="2" cols="20"></textarea><input id="mySubmit" type="submit" value="Submit"›</form> CSS: form { background-color:#eaeaea;font-family: Arial, sans-serif;padding: lOpx; }label { float: left;width: 100px;clear: left;text-align: right;padding-right: lOpx;margin-top: lOpx; }input, textarea { margin-top: lOpx;display: block; }#mySubmit { margin-left: 110px; }.arrow_forwardCreate a web page with three paragraphs and three buttons. Write code for these buttons by following the instructions given below: • When buttonl 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. This is first paragraph. This is first paragraph. This is second paragraph. This is second paragraph. This is third paragraph. This is third paragraph. Button1 Button2 Button3 Button1 Button2 Button3arrow_forward
- Evaluate the following statement: DOM is a limited interface which works only on JavaScript and HTML 4.0arrow_forwardJavaScript Do the following using JavaScript: 1. Once the page is loaded an alert message will be displayed Example: “Yehey! Last Hurray!” 2. Display your name in any HTML element/s you’ve learned to use. Ex: paragraphs, headers 3. Display today’s date in any HTML element/s you’ve learned to use. 4. Input your age (either in prompt/form element) and test it using the following criteria: Example: Input: 41 Output: Millenials Generations Born Current Ages Gen Z 1997 – 2012 10 – 25 Millennials 1981 – 1996 26 – 41 Gen X 1965 – 1980 42 – 57 Boomers II (a/k/a Generation Jones)* 1955 – 1964 58 – 67 Boomers I* 1946 – 1954 68 – 76 Post War 1928 – 1945 77 – 94 WWII 1922 – 1927 95 – 100 1. Display a picture of a younger and present you using onmouseover and onmouseout events 2. Asks for your top 2 favorite colors: either using a radio, checkbox, dropdown menu, prompt, or textbox o set the…arrow_forwardAPPLYING JavaScript IN AN HTML DOCUMENT Create an HTML document and name it as act14.html. The HTML must contain JavaScript that displays the following: An interaction that prompts for the user’s Last name and First name, then displays it. C. An interaction that prompts the user to input two numbers and then displays its sum. D. An interaction that confirms the user’s full name, selected numbers, and the sum. Your HTML webpage should display the following interactions sequentially: (see the attached image for your reference)arrow_forward
- In Javascript, Create a mouseOver event function, that will change the colour of an HTML item (i.e. a button or a list item) to green, then to black after 5 secondsarrow_forwardCreate a web page that contains three buttons and two images. To meet the requirements follow the instructions given below by writing JavaScript and jquery: • When user clicks the "Hide Images" button, both images should be vanished (jquery). • When user clicks the "Show Images" button, both images should be appeared again (jquery). • When user clicks the swap button, the height of both images should be swapped (JavaScript). Hide Images Show Images Swap Height| Hide Images Show Images Swap Heightarrow_forwardIn html and CSS Create a regular expression that will check whether either 4 words are contained inside a string.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education