[eluser]Barwick[/eluser]
[quote author="boltsabre" date="1352128401"]>> Why use CI’s shortcut then? What’s the benefit?
It's used to speed up development, once you are used to it's syntax it is a lot shorter than typing a regular anchor tag that it is in vanilla html with the href attribute, opening and closing tag, backslash, etc.
There is no reason you cannot code your anchor tags in regular html... some people like it, others dont, I use a combination of either depending on how I'm feeling that day and what I want to achieve. If I don't need a title or css class, id attribute, etc, the helper is much shorter.
>> A regular anchor is the same amount of text really lol and I wouldn’t need to fiddle with CSS on it.
This just makes no sense... regardless of if you use the helper function or vanilla html, if you want to apply a css class to it you have to.... ummm... apply it, unless I'm missing your point completely?
>> Is there anyway to hide the anchor text of the <a> generated by CI? I know I could hide this via CSS (i.e. negative text-indent)
Is there a legitimate reason you need to do this? If you want traffic from the search engines this kind of behavior is against their TAC and won't help your rankings in the slightest!!![/quote]
Thanks you, you make some valid points. I'll prob do the same as you and use it when appropriate. Most of my anchor's CSS are universal across the board and I want to avoid writing individual anchor CSS classes - just for the sake of using CI's helper, you know?
And the reason is nothing to do with search engines lol, I have anchors on DIVs and images, etc. Which in my case, don't require anchor text.