Pål Bergström wrote:
[...]
> 
> I know it must be there for validation. It's there but I don't use it 
> when coding in regular html. As I see it the alt-attribute is not that 
> relevant today. Some use it for SEO but for what I know I don't think 
> it's that important.

You are quite wrong.  It is important for accessibility (its original 
purpose and still its most important): it allows people using screen 
readers or text browsers (such as visually impaired users) to have some 
hope of understanding your site.  It is also important for search 
engines, since their crawlers tend to act like text browsers.

> 
> 
>> You can specify HTML attributes on the image_tag.  Please see the docs 
>> for syntax.
> 
> I ment on a global basis so I don't have to edit the rails image tag.

I don't recall any specific configuration options, but again, check the 
docs.

If there are none, perhaps wrap it in a helper method that does what you 
want.  You *might* even be able to use alias_method_chain to change the 
behavior of image_tag.

> 
> 
>> Unlikely.  The browser has no way of knowing whether you're using Apache 
>> or LiteSpeed, and the HTML should be the same in either case.
> 
> True. My thought was that there could still be some difference in how 
> the code and html is handled (guessing). 

Theoretically, perhaps there could be, but HTTP servers shouldn't be 
messing with the data they serve...

> :-) Could also be that I'm on a 
> slow server (site5.com)

That's possible.  Have you been able to compare the HTML as I suggested?

> 
> In any case, it looks bad when loading the page and that's the important 
> thing.

Of course.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to