Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-16 01:55:03

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

add alt="" to image tags

Could the tag generators on the image tag add a ‘alt=”“’ to the tag when the alt value is blank? It would help with validation (i currently type it manually for every tag).

Also, we’ve talked before about making the column headings on the image tab “clickable,” like in the articles tag; couldn’t those pages also remember what they were sorted by last, and sort that way until changed (helps with sites like www.artandculturecenter.org, where the content is not date-based)?


Yes, I have tried turning it off and on.

Offline

#2 2006-02-16 04:25:17

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: add alt="" to image tags

Alesh,
You can place a default for the alt category via phpMyAdmin.
Also, the method of adding alt is in itself a way of giving photos, not a meaningless (validating) markup like “”, but instead something meaningful to folks who can’t see as well as you and I. I’m guessing that one of the devs is gonna come around and make some note to that effect.

Hope that helps,

Matthew


Offline

#3 2006-02-16 04:46:24

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: add alt="" to image tags

uhh… where in db do i specify the default? and how do i specifiy a null value that’ll actually show up in the tag?

I understand the purpose of alt, though I find its “mandatory” status silly. On my blog, there is rarely anything I could say in the alt text for a picture that isn’t explained much better in the text right underneath it. A blind person will do just fine reading it; there’s no way an alt value of “here’s a picture of what you’re reading about” could be of help.


Yes, I have tried turning it off and on.

Offline

#4 2006-02-16 05:27:16

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,393
Website GitHub Mastodon

Re: add alt="" to image tags

> alesh wrote:

A blind person will do just fine reading it; there’s no way an alt value of “here’s a picture of what you’re reading about” could be of help.

An empty alt attribute helps in certain uncommon constellations: When your site is visited with a non-graphical user agent (say lynx, or a common browser with image display disabled on a slow phone line), sometimes image file names are displayed in lack of an alt attribute. So this is a valid way of suppressing visual output for purely decorative images.

Try sitening SEO Analyzer and the text browser there for a test.

Offline

#5 2006-07-04 15:46:25

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: add alt="" to image tags

image, thumbnail, article_image, image_index, and image_display all add alt attributes (empty, if there isn’t a value).

image column headings are clickable and “remember” in svn.

Offline

#6 2006-07-04 15:53:52

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: add alt="" to image tags

Mary wrote:

image, thumbnail, article_image, image_index, and image_display all add alt attributes (empty, if there isn’t a value).

Can it have a default of ‘image’ if there is no value?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2006-07-04 16:57:17

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: add alt="" to image tags

I wouldn’t recommend that. Mini FAQ About The Alternate Text of Images

Offline

Board footer

Powered by FluxBB