I am just practicing XML. I want to use the <a>
tag in the XML document to make a link reference to another page.
You can use an a
element in XML like this:
<a href="pagetwo.html">Page two</a>
But XML doesn't say that this is a link. The semantics of what an <a>
element means depend entirely on the particular XML vocabulary. This might be a link in one XML vocabulary, and something completely different in another. XML is just syntax.
It will probably be possible with the <a> tag but make sure you use quote marks
So not like this...
<a href=pagetwo.html>This goes to page two. But does it?</a>
But like this...
<a href="pagetwo.html">It works now! We have quote marks!</a>
Do be very careful because XML is quite strict about quote marks! Here are some of the rules in XML, for reference. Your code won't work if you don't follow them!
<!doctype>
<tExTaReA>
is incorrect)/
source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With