Create an XML document that marks up the nutrition facts for a package of Grandm
ID: 3827062 • Letter: C
Question
Create an XML document that marks up the nutrition facts for a package of Grandma White’s cookies. A package of cookies has a serving size of 1 package and the following nutritional value per serving: 260 calories, 100 fat calories, 11 grams of fat, 2 grams of saturated fat, 5 milligrams of cholesterol, 210 milligrams of sodium, 36 grams of total carbohydrates, 2 grams of fiber, 15 grams of sugars and 5 grams of protein. Name this document nutrition.xml. Load the XML document into Internet Explorer. [Hint: Your markup should contain elements describing the product name, serving size/amount, calories, sodium, cholesterol, proteins, etc. Mark up each nutrition fact/ingredient listed above.]
Explanation / Answer
<?xml version="1.0" encoding="UTF-8"?>
<product>
<product-name>Grandma White’s Cookies</product-name>
<serving>1 Package</serving>
<calories>260 Calories</calories>
<fat-calories>100 Fat Calories</fat-calories>
<fat>11 g</fat>
<saturated-fat>2 g</saturated-fat>
<cholesterol>5 mg</cholesterol>
<sodium>210 mg</sodium>
<carbohydrates>36 g</carbohydrates>
<fiber>2 g</fiber>
<sugar>15 g</sugar>
<proteins>5 g</proteins>
</product>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.