Creating a Form on a Web Page

Slides:



Advertisements
Similar presentations
Chapter 1: Introduction. Contents Whats New in Dreamweaver CS4? The Dreamweaver CS4 Interface Setting Up a Site Creating a Web Page Adding Text to Your.
Advertisements

Project 8 Creating Style Sheets.
Creating and Editing a Web Page Using Inline Styles
Using Advanced Cascading Style Sheets
Chapter 8 Creating Style Sheets.
Chapter 5 Creating an Image Map
Microsoft Office 2007 Excel Web Feature Creating Web Pages Using Excel.
Microsoft Office 2007 Excel Web Feature Creating Web Pages Using Excel.
Creating and Editing a Web Page
Creating a Form on a Web Page
Creating a Form with Selection Menus The SELECT control creates a selection menu This control only allows the visitor to choose pre-defined choices There.
Chapter 1 Creating a Flyer
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Using a Template to Create a Resume and Sharing a Finished Document
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Word Project 2 Creating a Research Paper.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t PowerPoint Project 1 Using a Design Template and Text Slide Layout to Create a Presentation.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Word Web Feature Creating Web Pages Using Word.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
Using Frames in a Web Site
EDITING AND FORMATTING A DOCUMENT Presented by: Dr. Ennis-Cole.
Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize.
Microsoft Office 2007 Word Integration Feature Linking an Excel Worksheet and Chart to a Word Document.
HTML Concepts and Techniques Fourth Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML Comprehensive Concepts and Techniques Third Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML Concepts and Techniques Fourth Edition Project 8 Creating Style Sheets.
Creating Tables in a Web Site
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
Project 1: Creating a Dreamweaver Web Page and Local Site 1 Project Objectives Add a background image Open and close panels Display and describe the Property.
Creating a Web Site to Gather Data and Conduct Research.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Creating and Editing a Web Page using HTML IMED1316.
Creating and Editing a Web Page Project 2. Project Objectives Project 2: Creating and Editing a Web Page 2 Identify elements of a Web page Start Notepad.
HTML Concepts and Techniques Fourth Edition Project 6 Using Frames in a Web Site.
HTML, XHTML, and CSS Chapter 8 Adding Multimedia Content to Web Pages.
Dreamweaver CS4 Concepts and Techniques Chapter 4 Forms.
HTML Concepts and Techniques Fourth Edition Project 7 Creating a Form on a Web Page.
HTML Concepts and Techniques Fourth Edition Project 12 Creating and Using XML Documents.
Dreamweaver CS4 Concepts and Techniques Chapter 9 Using Spry to Create Interactive Web Pages.
Dreamweaver CS4 Concepts and Techniques Chapter 2 Adding Web Pages, Links, and Images.
Chapter 1 Creating a Dreamweaver Web Page and Local Site
HTML Comprehensive Concepts and Techniques Third Edition 2 nd Project Creating and Editing a Web Page.
Microsoft Publisher 2010 Chapter 1 Creating a Flyer.
HTML Concepts and Techniques Fourth Edition Project 5 Creating an Image Map.
Using Frames in a Web Site Project 6. Project Objectives Project 6: Using Frames in a Web Site 2 Define terms related to frames Describe the steps used.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
Starting BBEdit or Notepad and Opening the HTML File Start BBEdit or Notepad Select Open from the File Menu Open survey1.htm from the Public Folder.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
Creating and Editing a Web Page
Creating and Editing a Web Page Using Inline Styles
1 Your Web Page title body of Web page main heading H2 heading bulleted list paragraph.
Creating Web Pages with Links, Images, and Embedded Style Sheets
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
Project 1 Creating a Dreamweaver Web Page and Local Site.
PowerPoint Web Feature
Project 8 Creating Style Sheets.
Creating Tables in a Web Site Using an External Style Sheet
Using Frames in a Web Site
Creating Web Pages with Links, Images, and Formatted Text
Integrating JavaScript and HTML
Creating Tables in a Web Site
Project 5 Creating an Image Map.
Creating Forms on a Web Page
DREAMWEAVER 8 Creating a Dreamweaver Web Page and Local Site.
Presentation transcript:

Creating a Form on a Web Page Chapter 6 Creating a Form on a Web Page

Chapter Objectives Define terms related to forms Describe the different form controls and their uses Use the <form> </form> tags Use the <input/> tag Create a text box Chapter 6: Creating a Form on a Web Page

Chapter Objectives Create check boxes Create a selection menu with multiple options Use the <select> tag Use the <option> tag Create Radio Buttons Chapter 6: Creating a Form on a Web Page

Chapter Objectives Create a textarea box Create a Submit button Create a Reset button Use the <fieldset> and <legend> tags to group form information Chapter 6: Creating a Form on a Web Page

Starting Notepad++ and Opening an HTML File Start Notepad++ and, if necessary, maximize the window With a USB drive plugged into your computer, click File on the menu bar and then click Open If necessary, navigate to the Chapter06\ChapterFiles folder on the USB drive Click sabatinasorderform.html in the list of files Click the Open button to open the sabatinasorderform.html file in Notepad++ Chapter 6: Creating a Form on a Web Page

Starting Notepad++ and Opening an HTML File Chapter 6: Creating a Form on a Web Page

Creating a Form and Identifying the Form Process Highlight the words <!--Insert form method statement here --> on line 13 Type <form method=”post” action=”mailto: sabatinas@isp .com”> to replace the highlighted words with the new tag Click the blank line 62 and press the ENTER key Type </form> but do not press the ENTER key Chapter 6: Creating a Form on a Web Page

Creating a Form and Identifying the Form Process Chapter 6: Creating a Form on a Web Page

Changing the Text Message Highlight line 18 Enter the HTML code shown in Table 6–4, indenting as shown, but do not press the ENTER key Highlight lines 22 through 57 (ending above the blank line 58) and then press the DELETE key Chapter 6: Creating a Form on a Web Page

Changing the Text Message Chapter 6: Creating a Form on a Web Page

Adding Text Boxes If necessary, click line 22 Enter the HTML code shown in Table 6–5 and then press the ENTER key twice Chapter 6: Creating a Form on a Web Page

Adding Text Boxes Chapter 6: Creating a Form on a Web Page

Saving an HTML File With the USB flash drive connected to one of the computer’s USB ports, hold down the CTRL key and then press the S key Chapter 6: Creating a Form on a Web Page

Adding Radio Buttons Check that the insertion point is on Line 30, indented one Tab stop Enter the HTML code shown in Table 6–6 and then press the ENTER key twice Chapter 6: Creating a Form on a Web Page

Adding Radio Buttons Chapter 6: Creating a Form on a Web Page

Adding Check Boxes Check that the insertion point is on Line 41, indented one Tab stop Enter the HTML code shown in Table 6–7 and then press the ENTER key twice Chapter 6: Creating a Form on a Web Page

Adding Check Boxes Chapter 6: Creating a Form on a Web Page

Adding a Selection Menu Check that the insertion point is on Line 46, indented one Tab stop Enter the HTML code shown in Table 6–8 and then press the ENTER key twice Chapter 6: Creating a Form on a Web Page

Adding a Selection Menu Chapter 6: Creating a Form on a Web Page

Adding Additional Text Boxes Check that the insertion point is on Line 53, indented two Tab stops Enter the HTML code shown in Table 6–9 and then press the ENTER key twice. Use the BACKSPACE key, if necessary, to align the insertion point at the beginning of Line 59 Chapter 6: Creating a Form on a Web Page

Adding Additional Text Boxes Chapter 6: Creating a Form on a Web Page

Adding a Textarea Box If necessary, click line 59 Enter the HTML code shown in Table 6–10 and then press the ENTER key Chapter 6: Creating a Form on a Web Page

Adding a Textarea Box Chapter 6: Creating a Form on a Web Page

Adding Submit and Reset Buttons Highlight the statement <!--Insert Submit and Reset buttons here --> on line 62 Type <p><input type=”submit” value=”Submit” /> to create the Submit button and then press the ENTER key Type <input type=”reset” value=”Reset” /> to create the Reset button. Do not press the ENTER key Chapter 6: Creating a Form on a Web Page

Adding Submit and Reset Buttons Table 6-6 Chapter 6: Creating a Form on a Web Page

Adding Fieldset Controls to Create Form Groupings Click just before <p>Last Name at the beginning of line 22, and then press the ENTER key Move the insertion point back up to line 22. If necessary, use the backspace key to move back to the left margin. Type <fieldset><legend> Customer Information</legend> as the tag to begin the first fieldset Click just after the </p> on line 29, and then press the ENTER key If necessary, use the backspace key to move back to the left margin, type </fieldset> on line 30 to end the first fieldset, and then press the ENTER key With the insertion point on line 32, type <fieldset> <legend>Your Order</legend> to start the second fieldset Chapter 6: Creating a Form on a Web Page

Adding Fieldset Controls to Create Form Groupings Click to the right of the </p> on line 47 (at the end of the Pepperoni</p> line), and then press the ENTER key If necessary, use the backspace key to move back to the left margin, type </fieldset>, and then press the ENTER key On line 50, type <fieldset><legend> Payment Method </legend> to start the third fieldset Click to the right of the </p> on line 62 (at the end of the <input name="cardexp" type="text" size="4“ maxlength="4" /></p> line), and then press the ENTER key If necessary, use the backspace key to move back to the left margin, and type </fieldset> to end the third fieldset Chapter 6: Creating a Form on a Web Page

Adding Fieldset Controls to Create Form Groupings Chapter 6: Creating a Form on a Web Page

Adding an Embedded Style Sheet Highlight the statement <!--Insert embedded style sheet here --> on line 9 Enter the HTML code shown in Table 6–11 but do not press the ENTER key on line 18 Chapter 6: Creating a Form on a Web Page

Adding an Embedded Style Sheet Chapter 6: Creating a Form on a Web Page

Saving the HTML File With a USB drive plugged into your computer, click File on the menu bar and then click Save to again save the sabatinasorderform.html file Chapter 6: Creating a Form on a Web Page

Validating, Viewing, and Testing a Web Page Validate the sabatinasorderform.html file by file upload at validator.w3.org In Internet Explorer, click the Address bar to select the URL on the Address bar, type g:\Chapter06\ChapterFiles\sabatinasorderform.html or the location of your file and then press the ENTER key to display the completed order form for Sabatina’s Pizza Review the form to make sure all spelling is correct and the controls are positioned appropriately Test all of the text boxes on the form. Try to type more than the maximum number of allowable characters in the cardnum and cardexp boxes Click the check boxes to test them. You should be able to choose one, two, or three of the boxes at the same time because check boxes are designed to select more than one option Chapter 6: Creating a Form on a Web Page

Validating, Viewing, and Testing a Web Page Test the selection control by clicking the list arrow and selecting one of the three options Click the radio buttons to test them. You should be able to make only one choice (Thick or Thin; Medium or Large; Cheese, Sausage, or Veggie) Test the textarea by entering a paragraph of text. Verify that it allows more characters to be entered than are shown in the textarea Click the Reset button. It should clear and reset all controls to their original (default) state Chapter 6: Creating a Form on a Web Page

Validating, Viewing, and Testing a Web Page Chapter 6: Creating a Form on a Web Page

Printing a Web Page and HTML Click the Print icon on the Command bar to print the Web page Click the Notepad++ button on the taskbar to activate sabatinasorderform.html Click File on the menu bar and then click Print. Click the Print button in the Print dialog box to print the HTML file Chapter 6: Creating a Form on a Web Page

Printing a Web Page and HTML Chapter 6: Creating a Form on a Web Page

Quitting Notepad and a Browser In Notepad++, click the File menu, then Close All Click the Close button on the Notepad++ title bar Click the Close button on the browser title bar. If necessary, click the Close all tabs button Chapter 6: Creating a Form on a Web Page

Chapter Summary Define terms related to forms Describe the different form controls and their uses Use the <form> </form> tags Use the <input/> tag Create a text box Chapter 6: Creating a Form on a Web Page

Chapter Summary Create check boxes Create a selection menu with multiple options Use the <select> tag Use the <option> tag Create Radio Buttons Chapter 6: Creating a Form on a Web Page

Chapter Summary Create a textarea box Create a Submit button Create a Reset button Use the <fieldset> and <legend> tags to group form information Chapter 6: Creating a Form on a Web Page

Creating a Form on a Web Page Chapter 6 Complete Creating a Form on a Web Page