ilikephp Posted September 22, 2011 Share Posted September 22, 2011 Hello, I need to add rel="..." in the first part of the script but it is not working, below is the script: echo " <a href='products/".$image[$abc]."' target='_blank'><img border=0 src='products/thumbs2/".$image[$abc]."' /></a>"; Thank you, Quote Link to comment https://forums.phpfreaks.com/topic/247662-add-rel-inside-echo/ Share on other sites More sharing options...
voip03 Posted September 22, 2011 Share Posted September 22, 2011 The rel attribute is not supported in any of the major browsers. only good for search engines. http://www.w3schools.com/TAGS/att_a_rel.asp Quote Link to comment https://forums.phpfreaks.com/topic/247662-add-rel-inside-echo/#findComment-1271799 Share on other sites More sharing options...
requinix Posted September 22, 2011 Share Posted September 22, 2011 Citing W3Schools for a programming question is worse than citing Wikipedia for a research paper. W3Fools Link Types in HTML 5 Use rel if you want. It's there for a reason. echo " "; Quote Link to comment https://forums.phpfreaks.com/topic/247662-add-rel-inside-echo/#findComment-1271802 Share on other sites More sharing options...
ilikephp Posted September 22, 2011 Author Share Posted September 22, 2011 THANKS A LOT... Quote Link to comment https://forums.phpfreaks.com/topic/247662-add-rel-inside-echo/#findComment-1271806 Share on other sites More sharing options...
voip03 Posted September 22, 2011 Share Posted September 22, 2011 Citing W3Schools for a programming question is worse than citing Wikipedia for a research paper. W3Fools But sometimes their examples are simple and easy to understand Quote Link to comment https://forums.phpfreaks.com/topic/247662-add-rel-inside-echo/#findComment-1271815 Share on other sites More sharing options...
requinix Posted September 22, 2011 Share Posted September 22, 2011 Citing W3Schools for a programming question is worse than citing Wikipedia for a research paper. W3Fools But sometimes their examples are simple and easy to understand And sometimes those very same examples are wrong. Sure, one in a handful is good, but people new to the content won't be able to tell what is and what isn't. Quote Link to comment https://forums.phpfreaks.com/topic/247662-add-rel-inside-echo/#findComment-1271825 Share on other sites More sharing options...
voip03 Posted September 23, 2011 Share Posted September 23, 2011 Citing W3Schools for a programming question is worse than citing Wikipedia for a research paper. W3Fools But sometimes their examples are simple and easy to understand And sometimes those very same examples are wrong. Sure, one in a handful is good, but people new to the content won't be able to tell what is and what isn't. Yes, you are correct. I will stop referring. Quote Link to comment https://forums.phpfreaks.com/topic/247662-add-rel-inside-echo/#findComment-1271936 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.