November 13, 201015 yr Hello Everyone When placing images in web pages, I usually put alt="filename.jpg" However, when pointing to the image on screen, the name does not display The only way I can get this to display is to put title="filename.jpg" Is it ok to put both? The alt is required for printout purposes. Thanks for your interest Kath
November 13, 201015 yr you can put both. This may help in how they are used by the browser http://www.netmechanic.com/news/vol6/html_no1.htm
November 13, 201015 yr Yeah there's no reason why you can't do that. The Alt is actually used for when a browser can't find the image (ie a 404) or images are turned off in the browser - rare but it does happen. I'm not entirely sure why you have to have the filename tbh, it's generally best practice to put a description for the image as the Alt, so that when it doesn't display, the user can still have a good idea as to what was there. It's also worth noting that the Alt is used for people with disability, for screen readers. As for the title, of course that's just a tool tip
November 15, 201015 yr Author you can put both. This may help in how they are used by the browser http://www.netmechanic.com/news/vol6/html_no1.htm
November 15, 201015 yr Author Yeah there's no reason why you can't do that. The Alt is actually used for when a browser can't find the image (ie a 404) or images are turned off in the browser - rare but it does happen. I'm not entirely sure why you have to have the filename tbh, it's generally best practice to put a description for the image as the Alt, so that when it doesn't display, the user can still have a good idea as to what was there. It's also worth noting that the Alt is used for people with disability, for screen readers. As for the title, of course that's just a tool tip
November 15, 201015 yr Author Hello Jay Thank you for this informative reply. I appreciate your interest. Kath
Create an account or sign in to comment