XML attributes
Translation results:
XML is designed to transmit and store data.
HTML is designed to display data.
XML attributessyntax
XML elements have attributes, similar to HTML.
Attributes provide additional information about elements.
XML attributesexample
<messages> <note id="501"> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> <note id="502"> <to>Jani</to> <from>Tove</from> <heading>Re: Reminder</heading> <body>I will not</body> </note> </messages>