Log in

View Full Version : How to apply Alt code into Li code



theremotedr
06-06-2019, 08:26 AM
Hi,
The code in use is shown below.



<li><a href="javascript:" onclick="replaceMainImage('m-images/photos/HONDACAT.png', 'Hondacat1','<b>£85.00</b><br>Will Require Programming<br>CAT 1 TYPE<br><span class=keychipColor> MPT1340</span><br><b>UK Recorded £2.50</b><br><b>International Signed For £10.00<br></b><b>Posted From The UK</b><br><span class=drColor>The Remote Doctor</span>')">CAT 1 Remote Fob + Instructions</a></li>

Can you advise please the correct way to add the below into it as its not the usual way i would apply any alt code.


alt="Honda Cat 1 Alarm Remote Fob"

If not possible please advise how i could apply it to the image in question
Many Thanks

molendijk
06-06-2019, 06:28 PM
Use the title attribute:
<li title="Honda Cat 1 Alarm Remote Fob">

theremotedr
06-07-2019, 09:21 AM
Hi,
So the code should now look like below ?



<li><li title="Honda Cat 1 Alarm Remote Fob"><a href="javascript:" onclick="replaceMainImage('m-images/photos/HONDACAT2.png', 'Hondacat2','<b>£35.00</b><br>Make It Look Like New Again<br>CAT 1 TYPE<br><span class=keychipColor> MPT1340</span><br><b>UK Recorded £2.50</b><br><b>International Signed For £10.00<br></b><b>Posted From The UK</b><br><span class=drColor>The Remote Doctor</span>')">CAT 1 Remote Case</a></li>

So in due time when people search the net for this item its now newly added title attribute will act a the Alt code and be found/shown it search engines.

molendijk
06-07-2019, 02:19 PM
<li title="Honda Cat 1 Alarm Remote Fob"><a href="javascript: void(0)" onclick="replaceMainImage('m-images/photos/HONDACAT2.png', 'Hondacat2','<b>£35.00</b><br>Make It Look Like New Again<br>CAT 1 TYPE<br><span class=keychipColor> MPT1340</span><br><b>UK Recorded £2.50</b><br><b>International Signed For £10.00<br></b><b>Posted From The UK</b><br><span class=drColor>The Remote Doctor</span>')">CAT 1 Remote Case</a></li>

theremotedr
06-07-2019, 02:44 PM
Thanks