websitewebsitewebsitewebsitewebsitewebsitewebsitewebsitewebsitewebsite
website
www.nature.com

 [362 visits]Ads by Web Top Links Powered by gdshop gdshop reseller APi 
home | web hot tips | web top links | web top services
Web Tips
Select a category ¬

 Apache CSS Commerce Domains Flash Free Service HTML Hosting JavaScript MySQL PHP Promotion Resellers Servers XML


Use the alt attribute to describe the function of each visual:  
  • [42874] Use the alt attribute to describe the function of each visual ¬

    What are alt attributes useful for?

    The alt attribute is defined in a set of tags (namely, img, area and optionally for input and applet) to allow you to provide a text equivalent for the object.

    A text equivalent brings the following benefits to your web site and its visitors in the following common situations:

    • nowadays, Web browsers are available in a very wide variety of platforms with very different capacities; some cannot display images at all or only a restricted set of type of images; some can be configured to not load images. If your code has the alt attribute set in its images, most of these browsers will display the description you gave instead of the images
    • some of your visitors cannot see images, be they blind, color-blind, low-sighted; the alt attribute is of great help for those people that can rely on it to have a good idea of what's on your page
    • search engine bots belong to the two above categories: if you want your website to be indexed as well as it deserves, use the alt attribute to make sure that they won't miss important sections of your pages.

    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

    Vía: www.w3.org/QA/Tips/altAttribute »



Tip Of The Day:  
  • [41964] Use <link>s in your document ¬

    HTML and XHTML have a mechanism which gives the possibility to Web authors to add external information related to the HTML document. These external resources can be styling information (CSS), help for navigation, information under another form (RSS), contact information, etc.


Domains   •   Hosting   •   Servers   •   Shopping Carts   •   SSL Certificates   •   Web Services   •   APi Resellers   •   Top

website
website website