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
Question
Book Icon
Chapter 14, Problem 6HOE
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.
      • Set the “meta” tag using “<meta>”.
      • Open the style tag “<style>” to make style for HTML tags.
        • Make a style for “input” type.
          • Set the display as “block”.
          • Set the “margin-bottom” as “1em”.
        • Make a style for “label” element and set the properties of label.
        • Make a style for “submit” element with margin-left property.
    • Open the script tag using “<script>”.
      • Define the function named “validateForm()” to validate the user name, age and city.
        • Check the condition for user name, if user name is “Null” then display the alert message and return “false”.
        • Check the condition for age. If user’s age is less than 18 display the alert message and return “false”.
        • Check the condition for city input. If the input box for city is “Null” then display the alert message “City field cannot be empty” and return “false”.
      • Display the alert message for valid inputs and return “true”.
    • Close the script tag using “</script>”.
    • Close the head tag using “</head>”.
    • Open the heading tag with appropriate heading using “<h1>” tag and close it.
    • Open the form tag with “post” method, when the “onsubmit” event handler clicks by the user the “validateForm()” function called to validate the inputs.
    • Create the additional label and input type for “City” input.
    • Close the form tag using “</form>”.
    • Close the body tag using “</body>”.
  • Close the file using “</html>” tag.

Blurred answer
Students have asked these similar questions
Write JavaScript codes to validate a name text field so that when a user submits the form with the name field empty or with numeric value an alert message should be displayed to the user. The form submission should be accepted when the user enters a non-numeric value with a success alert message.
As stated in the last module, this week you will exchange your draft with a partner so they can review it with the rubric. The goal of this exchange is to help mold and rework your draft for submission by Saturday. Because this is a quick turnaround, please make sure you complete the review of your peer’s paper by Thursday so that they will have time to make any changes prior to submission. Additionally, posting your draft prior to Tuesday is strongly encouraged as this will allow additional time for your peer to review your draft. Remember, in total, your research paper needs to be written and formatted using the APA style guide and should include 5-6 pages of text. Your page requirement does not include the cover page, abstract, or reference page. Your research paper should also include a minimum of 3-4 reputable sources.  Apa research paper on prymids
Thank you very much for your help. I do need the btnSubmitPrice to work when clicked though, and via the assignment given, I cannot have an InputBox unless I am also allowed to have the btnSubmitPrice to be clicked when a user adds another item. When a user adds another item, the txtTotalSales and txtAverageSalePrice have to change as well and update with the new values. I do not know how to do this. I tried moving the text under btnSubmitPrice_Click instead of FrmMain_Load and it did not work.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning