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
Question
Chapter 14, Problem 2WR
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.
- Make a style for “h2” with background-color property.
- Make a style for “input” type.
- 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”.
- Define the function named “validateForm()” to validate the user name, age and city.
- Close the script tag using “</script>”.
- Close the head tag using “</head>”.
- Include the body tag using “<body>”.
- Open the heading tag with appropriate heading using “<h1>” tag and close it.
- Descript the purpose of form validation in the paragraph tag “<p>”.
- Include the unordered list using “<ul>” tag.
- Create the list of URL of the websites in the list tag “<li>” with anchor tag “<a>”.
- Close each list with anchor tag using “</li>”.
- Close the unordered list “</ul>”.
- Open the form tag with “post” method, when the “onsubmit” event handler clicks by the user the “validateForm()” function called to validate the inputs.
- Include the inputs using “<input>” tag and label using “<label>” tag.
- Close the form tag using “</form>”.
- Include the anchor tag for the email link using “<a>”.
- Close the body tag using “</body>”.
- Include the heading tag using “<head>”.
- Close the file using “</html>” tag.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
design a search form about the coffee shop: you can specify the type of coffee and the price also the cold or hot type, and make it responsive, by using HTML and CSS, javascript (optional).
Different method for finding HTML element
document.getElementsByClassName(name)
document.getElementsByTag(tag)
All of these
Both A and C
document.getElementById(id)
Is it possible to create a user comment section like on YouTube using only HTML?
Chapter 14 Solutions
Web Development and Design Foundations with HTML5 (8th Edition)
Ch. 14.4 - Prob. 1CPCh. 14.4 - Prob. 2CPCh. 14.4 - Prob. 3CPCh. 14.6 - Prob. 1CPCh. 14.6 - Prob. 2CPCh. 14.6 - Prob. 3CPCh. 14.8 - Describe a method that can be used to gather a...Ch. 14.8 - Prob. 2CPCh. 14.8 - Prob. 3CPCh. 14.9 - Prob. 1CP
Ch. 14.9 - Prob. 2CPCh. 14.9 - Prob. 3CPCh. 14.18 - Prob. 1CPCh. 14.18 - Prob. 2CPCh. 14.18 - Prob. 3CPCh. 14 - Prob. 1MCCh. 14 - Prob. 2MCCh. 14 - Prob. 3MCCh. 14 - Prob. 4MCCh. 14 - Prob. 5MCCh. 14 - Prob. 6MCCh. 14 - Prob. 7MCCh. 14 - Prob. 8MCCh. 14 - Prob. 9MCCh. 14 - Prob. 10MCCh. 14 - Prob. 11MCCh. 14 - Prob. 12FIBCh. 14 - Prob. 13FIBCh. 14 - The ________ object is assumed to exist and it is...Ch. 14 - Prob. 15FIBCh. 14 - A form control button can be used with a(n)...Ch. 14 - Prob. 17FIBCh. 14 - Prob. 18FIBCh. 14 - Prob. 19SACh. 14 - Prob. 20SACh. 14 - Prob. 1AYKCh. 14 - Prob. 2AYKCh. 14 - Prob. 3AYKCh. 14 - Prob. 1HOECh. 14 - Prob. 2HOECh. 14 - Prob. 3HOECh. 14 - Prob. 4HOECh. 14 - Prob. 5HOECh. 14 - Prob. 6HOECh. 14 - Prob. 7HOECh. 14 - Prob. 8HOECh. 14 - Prob. 1WRCh. 14 - Prob. 2WRCh. 14 - Prob. 3WR
Knowledge Booster
Similar questions
- Please explain what jQuery-UI widget is in Interactive Web Applications. Please give a coding example. Thanksarrow_forwardBy referring to the specifications given below, use HTML code and JavaScript to create the form as shown in Figure 6. WEBINAR REGISTRATION FORM Name : Contact Number : Email : Webinar Title : Select Webinar Date : dd/mm/yyyy Time : 10am - 12pm O 2pm - 4pm Number of participants : 1 Total Registration Fees(RM) : 0.00 O Add me to your mailing list for upcoming webinars. Submit Cancel Figure 6 Specifications: Create the form by assigning suitable id and name. Add a legend containing the text "WEBINAR REGISTRATION FORM" and use inline style to design the legend. Use to arrange the form elements. Create different form elements/controls with proper data for their attributes such as name, id, value and type. There is no need to create element for each form element. Set Webinar Title as a selection list that consists of 4 options: Select Webinar, Web for Beginners (RM100), Web for Intermediate (RM200) and Web for Advanced (RM300). Set Number of participants as a spinner control with range…arrow_forwardCreate an HTML5 form as close to the listed below as possible. And process it on back end using PHP programming language. Use GET method.arrow_forward
- Assignment Create a web page that can calculate the roots of aparabola using the quadratic formula Your web page should have 3 input fields,representing the a, b and c values of a quadraticfunction in standard form, and a button thatcalculates the roots when clicked You must: use HTML5 use CSS use JavaScript solve for 1, 2 or no rootsarrow_forwardDifferent method for finding HTML element Both A and C All of these document.getElementByld(id) document. getElementsByTag(tag) document. getElementsByClassName(name)arrow_forwardTopic: JSON and AJAX Please choose the correct answer (or answers) from the following choices notated by blank circles or squares.arrow_forward
- Create this webpage using formatting tagsarrow_forwardYou are required to design HTML page based on the following descriptions (add a screen shot of your web page in this document + paste the HTML code you create): Create tag to display the web page title called “IT Blog”. Add “Technology Blog” as Heading 1. Add “Types of Viruses” as Heading 3. Under Types of viruses heading add the following list and nested list: Malware Denial of Service attack (DoS) Distributed Denial of Service attack (DDoS) Spyware Add numbered list of the following questions: What are the best technology, gadget, app, industry, sites to follow? What is the best technology blog? Why? What are the best technology analyst blogs? What are the best blogs that cover emerging technologies? Create definition list for the following: Internet Explorer (IE): is a World Wide Web browser that comes bundled with the Microsoft Windows operating system (OS). The browser was deprecated in Windows 10 in favor of Microsoft's new…arrow_forwardDifferent method for finding HTML element document. getElementsBy Tag(tag) document. getElementsByClassName(name) O Both A and C All of these document.getElementByld(id)arrow_forward
- Course HTMLarrow_forwardWrite down HTML codes that will display a form with the following details: STUDENT LOGIN FORM (Heading) First Name (should have an input textbox) Last Name (should have an input textbox) Sex: Male & Female (use radio buttons) Nationality (use a drop down list) Password (should have an input text box and the password should be encrypted) Address (use a text area) Reset (use a button) Submit (use a button)arrow_forwardInstructions Blood pressure monitor: Over the following three chapters, we will create an app that monitors blood pressure. You can model the app based on the Thyroid app. In this chapter, we will create the skeleton of the app, similar to the Thyroid app. Now, just create the pages and the links to navigate between them; you will implement the functionality of the pages in later chapters. The app will have A password-based entry page. A page to get basic information about the person such as name, date of birth, and health insurance card number, along with an ability to change the password. A menu page with four choices An option and corresponding page to allow you to change the basic information about the person. An option and corresponding page to enter data—blood pressure. An option and corresponding page to graph the data. An option and corresponding page to make recommendations based on the values of blood pressure. Note: post solution not steps. I need the code.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L