Task 1 : Briefly understand the concept of XML.
Task 2 : Learn the standard formats of HTML.
According to [1], XML is “software- and hardware-independent tool for storing and transporting information,” where “transporting information” means the invisible information carried by the visible information. For example, a note information shows as follows:
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
To the viewers, they can only read the information such as “Tove”, “Jani”, “Reminder”, and “Don't forget me this weekend.” It’s easy to understand where this note from and to on human’s instincts, but not on the computers. Therefore, in order to make the computers understand the background information of foreground, “markup languages” are needed, and XML is one of the popular ones.
The full name of XML is “eXtensible Markup Language.” The “extensible” means XML is just a primary format which can be extended using and defined according to the domain demands, such as HTML, KML, GML, etc. Take HTML as example, HTML (HyperText Markup Language) is a standard markup language to create webpages [3]. It predefines some tags as normal formats where computer can totally understand and processing, likes <html>, <header>, <body>, <div>, <span>, <p>, <table>, etc. An HTML example is as follow:
<html>
<header>
<title>popapc’s webpage</title>
</header>
<body> This is popapc’s personal webpage. </body>
</html>
Learn more from the refs [1], [2], [3], [4] and others.
[1] http://www.w3schools.com/xml/xml_whatis.asp
[2] https://en.wikipedia.org/wiki/XML
[3] https://en.wikipedia.org/wiki/HTML
[4] HTML語法教學 http://www.powmo.com/
No comments:
Post a Comment