The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Add a link to specific text inside title attribute, how to add links in title attribute
flash110
post Jul 1 2016, 12:48 AM
Post #1





Group: Members
Posts: 1
Joined: 1-July 16
Member No.: 24,385



Hi!, I´ve got this blogger widget code:

<b:widget id='Image2' locked='false' title='Pumpking swirl Cheesecake / Blueberry muffins' type='Image' visible='true'>

It´s a title for a picture, I just want to link specifically the "pumpking swirl cheesecake" text to a link, and the "Blueberry muffins" to another, I tried it like this :

<b:widget id='Image2' locked='false' title='<a href=”http://www”>Pumpking swirl Cheesecake</a> / Blueberry muffins' type='Image' visible='true'>

But blogger.com won´t recognize it, it says it can´t be "<" inside title attribute, I´m quite newbie with html code, can anyone tell me how specifically link those parts of text inside the title attribute?? thanks!!



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 1 2016, 06:47 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Blogger is right. You can't put one "tag" inside another, no matter if you put it in the value of an attribute or not.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jul 1 2016, 06:49 PM
Post #3


.
********

Group: WDG Moderators
Posts: 9,650
Joined: 10-August 06
Member No.: 7



Instead of using the TITLE attribute you might create a small popup with CSS (and perhaps javascript). Then you can put links or any other HTML you like inside it. The hard part with a CSS-only solution might be to prevent it from closing again as you move the mouse to it.

Maybe blogger already features something similar?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 07:07 AM