You are not logged in.
What is the correct syntax for creating a link in which an image links to a URL, and the link has a title?
<a href=“http://example.com” title=“Foo”><img src=”/image.jpg” alt=“Bar” /></a>
I can see how to create a link with an image and alt text, but not how to add the title.
Also, is there a way to add the REL attribute to the link?
This is an example:
<a rel="external" href="http://news.bbc.co.uk/" title="title here">text here</a>
Or another with pure Textile, but without the rel attribute:
Thanks, but how do I create the title attribute in the link when there is an image in the anchor, instead of text?
if you also want the
img tag to have
alt attributes with that value.
Perhaps I am making some mistake, but I can’t get either of those two examples to render using: http://textism.com/tools/textile/index.php
Are you inputting the examples without quotation marks and with valid image and url sources?
Try this – it definitely works for me:
!http://www.capture-the-moment.co.uk/tp/images/567.jpg (Full frame Shoveller)!:http://www.bbc.co.uk
Last edited by keith (2009-08-02 14:33:42)
Blyth, Northumberland, England
Capture The Moment
http://textile.thresholdstate.com/ uses a more up-to-date version of Textile. Both my examples work there. More to the point, they work in an actual Txp installation.
May be I went through documentation badly, but I have no idea how to put TITLE attribute to TXP link tags, for example <txp:permlink />
Have a look at Example 3 in the tag reference.