Imperial Valley College Faculty Websites

You are here:Instructors»Robert Gallegos»CIS 212»Homework #8
Monday, 24 October 2011 18:11

Homework #8

Written by Robert Gallegos
Rate this item
(0 votes)

CIS 212          Fall 2011         Homework 8                                                              Date handed out: 10/24/2011

Reading Assignment:            14 Getting Interactive: XHTML Forms
                                                
Appendix: The Top Ten Topics (we didn’t cover)

Note: Your answers must be turned in handwritten, (no typed responses will be accepted). Students can print out the homework and write in their answers.

Homework is due at beginning of class on Monday October 31th, 2011.
Chapter 14

  1. Once you enable your pages with ____________________ (along with a little help from a Web server) your pages are going to be able to gather customer feedback, take an online order, get the next move in an online game, or collect the votes in a “hot or not” contest.

  2. A form is basically a Web page with input fields that allow you to enter ____________________.

  3. A control is just something like a ____________________ or a text input box or a drop down menu – basically something that allows you to input data.

  4. Once the server has the form data, it passes it off to the appropriate Web ____________________ for processing.

  5. To create a form you use a <__________> element.

  6. The <form> element – not only does it hold all the elements that make up the form, but it also tells the ____________________ where to send your form data when you submit the form.

  7. The ____________________ attribute holds the URL of the Web server… and the name of the application that will process the form data.

  8. The ____________________ attribute determines how the form data will be sent to the server.

  9. To create Web applications you need to know a scripting or programming ____________________, and one that is supported by your hosting company.

  10. The text <_________> element is for entering one line of text.

  11. The <input> element is an ____________________ element, so you end it with a “/>”.

  12. The submit <_________> element creates a button that allows you to submit a from.

  13. For a submit button, specify “____________________” as the <input> element’s type.

  14. The radio <input> element creates a single control with several buttons only one of which can be ____________________ at any time.

  15. All the radio buttons associated with a given set of choices must have the same ____________________, but each choice has a different value.

  16. A checkbox <input> element creates a checkbox control that can be either checked or ____________________.
     
  17. Unlike radio buttons, a checkbox allows zero or more of a set of ____________________.

  18. The <textarea> element creates a multi-line text area that you can ____________________ into.

  19. The <textarea> element is not an empty element so it has both an opening and ____________________ tags.

  20. The <_________> element creates a menu control in the web page.

  21. The <select> element works in combination with the <_________> element below to create a menu.

  22. Just like the other form elements, give the select element a unique name using the ____________________ attribute. 

  23. The <option> element works with the <_________> element to create a menu. Use an <option> element for each menu item.

  24. The first thing you have to know when creating a <form> element is the URL of the Web application that is going to process your form ____________________.

  25. Once you know the ____________________ of the Web application that will process your form, all you need to do is plug it onto the action attribute for your <form> element.

  26. The name ____________________ acts as an identifier for the data the user types in.

  27. The ____________________ attribute: it acts as the glue between your form and the Web application that processes it.

  28. The Web application needs the ____________________ data to be labeled so it can tell what is what.

  29. Yes     or      No      Can I make the submit button say something other than “Submit”.

  30. POST ____________________ up your form variables and sends them behind the scenes to your server.

  31. Get also ____________________ up your form variables, but appends them on the end of the URL before it sends a request to the server.

  32. A situation when you’d never want to use a ____________________ is when the data in your form is private, like a credit card or a password.

  33. Get requests have a limit of 256 characters; ____________________ has no limit on the size of the data package you send.

    Appendix

  34. ____________________-____________________ pseudo-element can be used to select the first letter of the text in a block element, allowing you to create effects like caps and drop caps.

  35. There’s one other pseudo-element called ____________________-____________________, which you can use to select the first line of a paragraph.

  36. You can also select elements based on their preceding, ____________________.
     
  37. These days frames are, for the most part, considered “____________________   ____________________” because they cause navigation and usability problems, and they are not recommended by the W3C.

  38. HTML supports these types of media through an element called <____________________> that is responsible for embedding external content into your Web page.

  39. All these applications attempt to provide what-you-see-is-what-you-get ____________________ tools for creating Web pages.

  40. HTML pages don’t have to be passive documents; they can also have content that is ____________________.

  41. ____________________ actually has access to the entire document tree of elements (the same element the you worked with in Chapter 3) and can programmatically change value and elements in the tree.

  42. Many Web pages aren’t created by hand, but are generated by Web applications running on a ____________________.

  43. If your new to programming, ____________________ may be the easiest language to start with, and there are millions of PHP-driven Web pages, so you’d be in good company.

  44. In some cases you may not want your site to be listed in the search engine rankings, and you can use ____________________ to request that they not be listed.

  45. To improve your rankings and help search engines determine what your page is about, start with two <____________> tags in your <head> element: one to list leywords and the other to provide a description of your content.

  46. If you want to request that your site not be listed, which works with most of the major search engines, just put a <___________> tag in the head of your XHTML.

  47. If you specify a value of “____________________” in the media attribute of a style sheet, then that style sheet is used when your page is printed.

  48. While mobile devices are getting more sophisticated, their support for ____________________ and CSS still varies widely among the various devices.

  49. Webblogs – or “blogs” as they are commonly known – are like personal Web pages, except they are written in ____________________ style.