Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-14-2007, 09:32 PM alt tags
PC Catastrophe's Avatar
Super Talker

Latest Blog Post:
QR Code Craze
Posts: 125
Name: Brandy
Location: Indiana
Trades: 0
I am building a site for a non-profit organization and using a free web host for them. (not sure if the free host is making a difference)

When inserting image alt tags the alignment of the text following the alt is not viewing the same way without the alt tags.

random example:
<IMG src="flag.gif border=0 alt="American flag"
<p align=center>Random bits of information.</p>

(rather than the alignment being centered it appears to the left, without the alt tag it appears centered)

I have an alt tag with the banner, and it doesn't seem to be effecting anything. It only seems to be effecting alignment within a table.


Anyone have any ideas?
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
PC Catastrophe is offline
Reply With Quote
View Public Profile Visit PC Catastrophe's homepage!
 
 
Register now for full access!
Old 08-14-2007, 09:51 PM Re: alt tags
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
First off, it's an alt attribute. Tags are the <> parts. I know it sounds like potayto, potahto, but it really does make a difference.

Second, it looks like the code being generated is missing quotes. That usually causes errors. All attributes should be quoted.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 08-14-2007, 10:24 PM Re: alt tags
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
You can use attributes without quotes, like border=0 or align=center, although it's a bad practice. But that's mostly forward thinking; it's been a bad practice for so long all browsers have no choice but to support it.

The problem I see is that the img tag isn't closed ... I'm not sure if random example means you copied a random part and cut out the real data, or just typed some gibberish ... but you have the < and no > around img.

Tables resize by their nature, and the alternate text is supposed to display while the image downloads. The table should resize afterwards, but maybe it's not, if you have a lot in there? Unlikely ... but it's also hard to imagine a free host affecting tag-level rendering. But who knows, they could be running some kind of script to serve up ads that messes with things.

You'll get far better answers if you post the URL so people can have a look at the real code, and how it displays.

Oh, and for the record, the "new" rule is that all images need an alt attribute. Especially if you're working for a non-profit, think of the clients with visual disabilities who use screen readers.

Finally, images don't have a border by default unless you put them in a link. Still, to avoid border="0" on every tag, add img { border: 0; } to your stylesheet.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 08-15-2007, 01:59 AM Re: alt tags
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
If the code you're having trouble with is the exact code you posted it's missing the closing " after .gif in the source. That's probably what's throwing things off. Also the img tag itself isn't closed in your example.

The alt attribute itself shouldn't have any effect at all on the display so like the problem is something like a missing quote or closing tag or similar.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 08-15-2007, 04:51 AM Re: alt tags
Extreme Talker

Posts: 170
Trades: 0
i think alt tags help a bit on the rankings of the site
contact247 is offline
Reply With Quote
View Public Profile
 
Old 08-15-2007, 05:05 AM Re: alt tags
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
i think alt tags help a bit on the rankings of the site
0-o

No, I don't think....
ALT tags are used by screens reader to explain out loud to blind users what the image should be.
It's used by search engines to get a hint of the content of an image, but this will surely not give you a boost to your rankings.

At bests, it's influence is marginal.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 08-15-2007, 09:34 AM Re: alt tags
PC Catastrophe's Avatar
Super Talker

Latest Blog Post:
QR Code Craze
Posts: 125
Name: Brandy
Location: Indiana
Trades: 0
Problem fixed!
Thank you so much for all the info, including that it is called an attribute not a tag. It is extremely important for me to learn as much as possible.
The random example was just made up. I was missing the </img> on the ones that were messed up. It just happened to be coincidence that the ones I was missing were inside of the table, lol. The banner had the </img>. Funny how one wrong thing messes up everything.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
PC Catastrophe is offline
Reply With Quote
View Public Profile Visit PC Catastrophe's homepage!
 
Old 08-15-2007, 10:24 AM Re: alt tags
Galaxian's Avatar
Rich Powell

Posts: 842
Name: Rich Powell
Location: United Kingdom
Trades: 0
Quote:
Originally Posted by tripy View Post
0-o

No, I don't think....
ALT tags are used by screens reader to explain out loud to blind users what the image should be.
It's used by search engines to get a hint of the content of an image, but this will surely not give you a boost to your rankings.

At bests, it's influence is marginal.
It helps, especially when the image has a link on - the alt will act as replacement for link text.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please help get the new
Please login or register to view this content. Registration is FREE
forum started for Webmasters like you!

Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 08-15-2007, 10:40 AM Re: alt tags
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
It helps, especially when the image has a link on - the alt will act as replacement for link text.
Yes, if the image is broken, which should not.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to alt tags
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32041 seconds with 12 queries