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
bartleby

Concept explainers

Question
Book Icon
Chapter 14, Problem 5HOE
Program Plan Intro

Program Plan:

  • Include the HTML tag using “<html>”.
    • Include the heading tag using “<head>”.
      • Open the title tag using “<title>” with appropriate title and close the tag.
    • Close the heading tag using “</head>”.
    • Open the body tag using “<body>”.
    • Open the script tag using “<script>”.
      • Declare the variable named “color” to get favorite color from user.
      • Prompt the user for color and change it into uppercase letters.
      • Check the condition for favorite color.
        • If the favorite color is “White”, change the background color as black.
      • Write the text “This is your favorite color!” on HTML page.
    • Close the script tag using “</script>”.
    • Open the heading tag with appropriate heading using “<h1>” tag and close it.
    • Close the body tag using “</body>”.
  • Close the file using “</html>” tag.

Blurred answer
Students have asked these similar questions
You’re trying to use the new Canvas element in HTML5 to draw some fancy graphics on the page. You’ve been using the rect() function to draw a rectangle but the shape isn’t appearing to users of the page. What mistake have you made?     You forgot to use stroke()     You forgot to use clearRect()     You forgot to use beginPath()     You forgot to use closePath()
Create an HTML page with two paragraphs and a button. Every time the button is clicked, the contents of the two paragraphs would swap with each other.( by jquery)
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]
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning