Create an XML document that marks up the nutrition facts for a package of Grandm
ID: 3759845 • 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 sugar and 5 grams of protein. Name this document nutrition.xml. Load the XML document into your web browser.
HTML PLZ
Explanation / Answer
1<?xml version="1.0" ?>
2<!-- nutrition.xml -->
3<!-- Nutritional information XML document -->
4 <nutrition xmlns="http://www.deitel.com/nutrition">
5 <productname>Grandma White's Cookies</productname>
6 <servingsize>28</servingsize>
7 <calories>140</calories>
8 <fatcalories>60</fatcalories>
9 <gramsfat>8</gramsfat>
10 <saturatedfat>2</saturatedfat>
11 <mgcholesterol>5</mgcholesterol>
12 <sodium>110</sodium>
13 <carbohydrates>15</carbohydrates>
14 <fiber>2</fiber>
15 <sugar>15</sugar>
16 <protein>1</protein>
17 </nutrition>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.