Rewrite the document of Exercise 3.6 to use inline style

Rewrite the document of Exercise 3.6 to use inline style sheets only.

Data from exercise 3.6

Create and test an HTML document that describes nested ordered lists of cars. The outer list must have three entries: compact, midsize, and sports. Inside each of these three lists there must be two sublists of body styles. The compact- and midsize-car sublists are two door and four door; the sports-car sublists are coupe and convertible. Each body style sublist must have at least three entries, each of which is the make and model of a particular car that fits the category. The outer list must use uppercase Roman numerals, the middle lists must use uppercase letters, and the inner lists must use Arabic numerals. The background color for the compact-car list must be pink; for the midsize-car list, it must be blue; for the sports-car list, it must be red. All the styles must be in a document style sheet.

Rewrite the document of Exercise 3.6 to put all style-sheet

Rewrite the document of Exercise 3.6 to put all style-sheet information in an external style sheet. Validate your external style sheet with the W3C CSS validation service.

Data from exercise 3.6

Create and test an HTML document that describes nested ordered lists of cars. The outer list must have three entries: compact, midsize, and sports. Inside each of these three lists there must be two sublists of body styles. The compact- and midsize-car sublists are two door and four door; the sports-car sublists are coupe and convertible. Each body style sublist must have at least three entries, each of which is the make and model of a particular car that fits the category. The outer list must use uppercase Roman numerals, the middle lists must use uppercase letters, and the inner lists must use Arabic numerals. The background color for the compact-car list must be pink; for the midsize-car list, it must be blue; for the sports-car list, it must be red. All the styles must be in a document style sheet.

Create and test an HTML document that has six short

Create and test an HTML document that has six short paragraphs of text that describe various aspects of the state in which you live. You must define three different paragraph styles, p1, p2, and p3. The p1 style must use left and right margins of 20 pixels, a background color of pink, and a foreground color of blue. The p2 style must use left and right margins of 30 pixels, a background color of black, and a foreground color of yellow. The p3 style must use a text indent of 1 centimeter, a background color of green, and a foreground color of white. The first and fourth paragraphs must use p1, the second and fifth must use p2, and the third and sixth must use p3.

Revise the document of Exercise 5.3 to use the DOM

Revise the document of Exercise 5.3 to use the DOM 2 event model.

Data from exercise 5.3

Develop and test an HTML document that has checkboxes for apple (59 cents each), orange (49 cents each), and banana (39 cents each), along with a Submit button. Each of the checkboxes should have its own onclick event handler. These handlers must add the cost of their fruit to a total cost. An event handler for the Submit button must produce an alert window with the message Your total cost is $xxx, where xxx is the total cost of the chosen fruit, including 5 percent sales tax. This handler must return false (to avoid actual submission of the form data).

Develop and test an HTML document that has checkboxes for

Develop and test an HTML document that has checkboxes for apple (59 cents each), orange (49 cents each), and banana (39 cents each), along with a Submit button. Each of the checkboxes should have its own onclick event handler. These handlers must add the cost of their fruit to a total cost. An event handler for the Submit button must produce an alert window with the message Your total cost is $xxx, where xxx is the total cost of the chosen fruit, including 5 percent sales tax. This handler must return false (to avoid actual submission of the form data).

Create an XSLT style sheet for one patient element of

Create an XSLT style sheet for one patient element of the XML document of Exercise 7.7, and use it to create a display of that element.

Data from exercise 7.7

Design an XML schema for documents that store information about patients in a hospital. Information about patients must include their name (in three parts), Social Security number, age, room number, primary insurance company—including member identification number, group number, phone number, and address—secondary insurance company (with the same parts as the primary insurance company has), known medical problems, and known drug allergies. Both attributes and nested tags must be included.

Create an XML document with at least four instances of

Create an XML document with at least four instances of the patients element defined in the XML schema of Exercise 7.6. Process this document by using the XML schema of Exercise 7.6, and produce a display of the raw XML document.

Data from Exercise 7.6

Design an XML schema for documents that store information about patients in a hospital. Information about patients must include their name (in three parts), Social Security number, age, room number, primary insurance company—including member identification number, group number, phone number, and address—secondary insurance company (with the same parts as the primary insurance company has), known medical problems, and known drug allergies. Both attributes and nested tags must be included.

Write a PHP script that computes the total cost of

Write a PHP script that computes the total cost of the ordered light bulbs from Exercise 9.9 after adding 6.2 percent sales tax. The program must inform the buyer of exactly what was ordered, in a table.

Write, test, and debug (if necessary) PHP scripts for the specifications that above.

Data from exercise 9.9

Write an HTML document to create a form with the following capabilities:
a. A text widget to collect the user’s name
b. Four checkboxes, one each for the following items:
i. Four 25-watt light bulbs for $2.39
ii. Eight 25-watt light bulbs for $4.29
iii. Four 25-watt long-life light bulbs for $3.95
iv. Eight 25-watt long-life light bulbs for $7.49
c. A collection of three radio buttons that are labeled as follows:
i. Visa
ii. Master Card
iii. Discover

Write and test a JSP document that displays the form

Write and test a JSP document that displays the form of Exercise 11.8 and produces the same response document as Exercise 11.9.

Data from exercise 8

Write the markup document to create a form with the following capabilities:

a. A text widget to collect the user’s name

b. Four checkboxes, one each for the following items:
i. Four 25-watt light bulbs for $2.39
ii. Eight 25-watt light bulbs for $4.29
iii. Four 25-watt long-life light bulbs for $3.95
iv. Eight 25-watt long-life light bulbs for $7.49

c. A collection of three radio buttons that are labeled as follows:
i. Visa
ii. Master Card
iii. Discover

Data from exercise 11.9

Write a servlet that computes the total cost of the ordered light bulbs from Exercise 11.8 after adding 6.2 percent sales tax. The servlet must inform the buyer of exactly what was ordered, in a table.

Write a servlet that computes the total cost of the

Write a servlet that computes the total cost of the ordered light bulbs from Exercise 11.8 after adding 6.2 percent sales tax. The servlet must inform the buyer of exactly what was ordered, in a table.

Data from exercise 8

Write the markup document to create a form with the following capabilities:

a. A text widget to collect the user’s name

b. Four checkboxes, one each for the following items:
i. Four 25-watt light bulbs for $2.39
ii. Eight 25-watt light bulbs for $4.29
iii. Four 25-watt long-life light bulbs for $3.95
iv. Eight 25-watt long-life light bulbs for $7.49

c. A collection of three radio buttons that are labeled as follows:
i. Visa
ii. Master Card
iii. Discover