In WeBuilder 2006 when you drag and drop an image file from the File Explorer into an HTML document it automatically inserts the appropriate code, e.g.
<img src="image.gif" width="45" height="45" border="0" />
Any chance that this could include a blank alt attribute (alt="") so that my code validates immediately and reminds me (and other users) to include an accessible alternative text description?
So it would insert something like
<img src="image.gif" width="45" height="45" border="0" alt="" />
Thanks
Gareth
Alt attribute in HTML image code
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
- garethjmsaunders
- Posts: 65
- Joined: Fri Dec 02, 2005 5:08 pm
- Location: Anstruther, UK
- Contact:
I second this. The border attribute should be removed, though. I'd also like it if it automatically placed the file name in the alt attribute. Using the example above:
Code: Select all
<img src="image.gif" width="45" height="45" alt="image" />
Eric Barstad
Shadow Box: Websites for Non-Profits
HTML Editor Reviews: Reviews and Discussion of (X)HTML Coding Tools
Shadow Box: Websites for Non-Profits
HTML Editor Reviews: Reviews and Discussion of (X)HTML Coding Tools
- garethjmsaunders
- Posts: 65
- Joined: Fri Dec 02, 2005 5:08 pm
- Location: Anstruther, UK
- Contact:
No border, but alt attribute value empty
Fair point about the border attribute as this should be styled with CSS. However, I'm not convinced that the file name as the value for the alt attribute is satisfactory.
This is from the W3C (http://www.w3.org/QA/Tips/altAttribute):
This is from the W3C (http://www.w3.org/QA/Tips/altAttribute):
Unless you name your images with long, highly descriptive filenames I'm not convinced that this approach would suffice. Best to leave the alt attribute's value empty and allow users to use their judgement to provide the most suitable text in my opinion.What should I put in my alt attribute?
The generic rule for the content of the alt attribute is: use text that fulfills the same function as the image.
Some more specific rules:
- if the image is simply decorated text , put the text in the alt attribute
- if the image is used to create bullets in a list, a horizontal line, or other similar decoration, it is fine to have an empty alt attribute (e.g., alt=""), but it is better to use things like list-style-image in CSS
- if the image presents a lot of important information, try to summarize it in a short line for the alt attribute and add a longdesc link to a more detailed description
- syrupcore
- Top Contributor
- Posts: 917
- Joined: Thu Jul 21, 2005 12:58 am
- Location: Portland, Oregon, usa
- Contact:
yay!
see karlis, I'm not crazy.
totally agree that auto inserting the file name into the alt attribute is a bad bad idea. I'd just have to delete it every time because it doesn't help anyone - except it'll help developers become lazy and that's what we're trying to get away from!
I usually just let the border attribute stay in there while building the page and then do a find and replace from border="0" to alt="" .
I understand that a lot of people find the border="0" attribute useful (including the man himself) but if the doctype is strict then it shouldn't be included.
will
see karlis, I'm not crazy.

totally agree that auto inserting the file name into the alt attribute is a bad bad idea. I'd just have to delete it every time because it doesn't help anyone - except it'll help developers become lazy and that's what we're trying to get away from!
I usually just let the border attribute stay in there while building the page and then do a find and replace from border="0" to alt="" .
I understand that a lot of people find the border="0" attribute useful (including the man himself) but if the doctype is strict then it shouldn't be included.
will