XLink syntax
Translation results:
XLink defines a standard method for creating hyperlinks in XML documents.
XLink syntaxsyntax
In HTML, we know that the <a> element defines a hyperlink. But that's not how XML works. In an XML document, you can use any name you want - so it is impossible for the browser to predict what hyperlink elements will be called in the XML document.
Hyperlinks are defined in an XML document by placing tags on elements that can be used as hyperlinks.
XLink syntaxexample
<?xml version="1.0"?> <homepages xmlns:xlink="http://www.w3.org/1999/xlink"> <homepage xlink:type="simple" xlink:href="http://www.runoob.com">Visit Runoob</homepage> <homepage xlink:type="simple" xlink:href="http://www.w3.org">Visit W3C</homepage> </homepages>