Web Development and Design Foundations with HTML5 (8th Edition)
Web Development and Design Foundations with HTML5 (8th Edition)
8th Edition
ISBN: 9780134322759
Author: Terry Felke-Morris
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 14, Problem 2AYK

Explanation of Solution

Missing code:

  • The first missing code is “prompt” keyword. This keyword is to get the input for favorite song from user and store it on the “userSong” variable.
  • The second missing code is “write” keyword. This keyword is to print the contents on the screen.
  • Third one is missing the variable name inside the “write()” method. The variable name “userSong” missing inside on the “write()” method.

Modified code:

<!--HTML Tag-->

<!DOCTYPE html>

<html lang="en">

<!--Head Tag-->

<head>

<!--Title Tag-->

<title>JavaScript Practice</title>

<...

Blurred answer
Students have asked these similar questions
<!DOCTYPE html><html lang="en"> below is box-styles.css <style> @import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap'); body {    font-size: 62.5%;    margin: 0;} h1 {font-size:4em;text-align: center;font-family: 'Rubik Mono One', sans-serif;} h3 {font-size: 2em;} p {font-size: 1.5em;} h3, p {    margin:0; } .title-padding {    padding: 5% 10%; } .body-padding {    padding-left: inherit;    padding-right: inherit;    padding-top: 7%; } .light-shadow {    box-shadow: transparent;    } .max-width {    max-width: 50em;} /* .full-width { } */ .center-element {    margin-top:8em;    margin-left:inherit;    margin-right: inherit;    text-align: center; } .round-borders {    border:1px solid black;    border-radius: 0.25em;    font-size: 2em; } .bb {    box-sizing: content-box;    width:100%;    padding: inherit;    margin: inherit; } .cb {    box-sizing: content-box; }  </style>above is the box-styles.css <head>    <meta…
Design  HTML Form in javascriptApply the data validation :1. Mobile number field data must be a numeric data and not less than 8 digits,2. The email field must accept the data which must contain the character '@' and dot (.). Andthe character @ must not be the first character and the last dot must at least be onecharacter after the @.On submitting the form, If all these validations are followed, another Html page.
HTML: Write a jQuery code to format a phone number as the following example below when you enter them to an online input field. You need also to add a paragraph about the purpose of this code. (xxx) xxx-xxxx
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education