Friday, 7 November 2014

Markup language


Markup language is a modern way of arranging a document in a way that, it is syntactically different from text.

Markup language uses tags to define elements within a document. 

There are several Markup languages exits, Out of those XML and HTML are popular.

HTML is a Markup language used to design web pages. Whereas XML is a Markup language used for storing the data, rather than designing.

In XML, programmer can use Custom tags, (I.e, the tags created by him).

For Example
XML file to store the information of Books

books.xml
<?xml version="1.0"?>
<books>
 <book>
  <name>Let Us C</name>
  <author>Yashwant Kanetkar</author>
  <price>245.00</price>  
 </book>
 <book>
  <name>Let Us C++</name>
  <author>Yashwant Kanetkar</author>
  <price>252.00</price>  
 </book>
 <book>
  <name>Java The Complete Reference</name>
  <author>Herbert Schildt</author>
  <price>489.00</price>  
 </book>
 <book>
  <name>HTML5 Black Book</name>
  <author>Kogent Learning Solutions</author>
  <price>485.00</price>  
 </book> 
</books>


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment