Attributes with name value pair

To give more detail about the element we can use attributes. We give more details about the element by using attributes. All attributes will have name and value. Where value are kept within quotes. Here is an example. For each member we can have two address , one is residential and other is official.

<address type='residential'>
<street>Great Wall</street>
<address type='official'>
<street>North Street</street>
<city>New York</city>

In the above code attribute gives us idea on type of data the element is having.
Check this sample xml file with attributes.

What is XML?


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here .

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 All rights reserved worldwide Privacy Policy Disclaimer