about XML and HTML learning, the data are very few, feel that they have not understood absorption, in front of learning HTML , it touches some of its tags and attributes, and only knows that it is using different elements and attributes to display the data information, and here comes an XML, all messy. Their approximate structure:
1. HTML Structure:
2. XML Structure:
later found that they also have links, so put together to study. The first thing to be clear is that XML is not used to replace HTML , they are designed for different purposes,the core ofHTML design is to display Web page data, XML is to include and transfer Web page data information.
HTMLbecause the structure and format of the Web page areHTMLelements to complete, the main learning element structure and form. XMLlearning, is through the elements to contain and transfer the data of the Web page, and in order to ensure the correct exchange of data, must have a certain rules, so that the program has regular read, it isDTD, whileDTDitself is notXMLfile, the user cannot customize the data type, all with its successorSchematechnology, which is based onXMLwritten, extensible, supports data types, protects communication, overcomesDTDdefects. XHTML is also present here, which is intended to accommodate XML-normalized HTML, and is very superficial. Believe that these basic learning will be gradually infiltrated in the application of the later. Accumulate in!
XML and HTML