HTML and XML Projects
HTML and XML Projects
<LI><A HREF = "Katrina.html"> Katrina Hurricanes </LI></A> <LI><A HREF = "Old.html"> Hurricanes in the Past </LI></A> </UL> <LI><A HREF = "Faqs.html"> Faqs about Hurricanes </LI> </OL> <HR> <FONT SIZE = 3> Contact us : email link to <A HREF = "[email protected]">[email protected]</A> </BODY> </HTML>
Result :
</UL> </OL> <FONT SIZE = 3> <CENTER> <A HREF = "[email protected]">Contact us via email for Enquiries</A> </CENTER> </BODY> </HTML>
Result :
Contact us : <A HREF = "[email protected]">Live & Let Live </FONT></B></A> </BODY> </HTML>
Result :
Result:
1. XML Coding :
<?xml version ="1.0" ?> <?xml-stylesheet href="booklist.css" type="text/css" ?> <BookDetails> <Details> <Asin>059600396x</Asin> <ProductName>Introduction to wonderful world of XML </ProductName> <Catalog>Book</Catalog> <Author>A Jazz</Author> <ReleaseDate>19 December, 2009</ReleaseDate> <Publisher>PITS</Publisher> <Prices> <ListPrice>Rs. 540.95</ListPrice> <OurPrice>Rs. 380.47</OurPrice> </Prices> </Details> <Details> <Asin>059603496s</Asin> <ProductName>XML, HTML and CSS </ProductName>
<Catalog>Book</Catalog> <Author>C Link</Author> <ReleaseDate>25 November, 2009</ReleaseDate> <Publisher>HRS</Publisher> <Prices> <ListPrice>Rs. 400.95</ListPrice> <OurPrice>Rs. 275.00</OurPrice> </Prices> </Details> </BookDetails>
1. CSS Coding :
title { font-size : 48pts; font-weight : bold; text-align : center; display : block; font-family : "Lucida Console", Helvetica; } { display : block; margin-top : 50px; font-family : Bookman; color : blue; } { color : black; font-style : italic; } { color : grey; }
Publisher { color : red; } Author ListPrice OurPrice {color : maroon; } { color : black; font-family : "Times"; } { color : purple; font-family : Arial; }
Result :
2. XML Coding :
<?xml version="1.0" ?> <?xml-stylesheet href = "recipe.css" type="text/css" ?> <recipe> <head> <title> CORIANDER CHUTNEY </title> </head> <ingredients> <ing> <amt> <qty>2</qty>
<unit>bunches</unit> </amt> <item>fresh coriander</item> </ing> <ing> <amt> <qty>1</qty> <unit> </unit> </amt> <item>tart green apple</item> </ing> <ing> <amt> <qty>2</qty> <unit></unit> </amt> <item>medium Tomatoes</item> </ing> <ing> <amt> <qty>2</qty> <unit> </unit> </amt>
<item>fresh or dried red chilli Peppers</item> </ing> <ing> <amt> <qty>1</qty> <unit>teaspoon</unit> </amt> <item>Mango Powder</item> </ing> <ing> <amt> <qty>1</qty> <unit>teaspoon</unit> </amt> <item>salt</item> </ing> </ingredients> <directions> <step>1. Wash the fresh coriander thoroughly.</step> <step>2. Peel and chop the apple in small pieces.</step> <step>3. Cut each of the tomatoes into four pieces.</step> <step>4. Now combine all the ingredients gradually (in order), in a blender.</step>
2.CSS Coding :
title { font-size : large; font-weight : bold; text-align : center; display : block; } ingredients {display : block; margin-top : 18px; margin-left : 30px; font-family : verdana; } ing {display : block; margin-left : 40 px; } amt { font-style : italic; } directions {display : block; margin-top : 18px; margin-left : 60px; } step {display : block; color : blue; font-family : Arial; margin-top : 10px; }
Result: