HTML <img> longdesc Attribute
HTML <img> tag
Example
Use of the longdesc attribute, to point to a page with a long description of an image:
| <img src="logo_w3s.gif" alt="W3Schools.com" longdesc="w3s.txt" /> |
Try it yourself »
|
Definition and Usage
The longdesc attribute specifies an URL to a page that contains a long description of an image.
Note: The longdesc attribute is so poorly supported that it should not be used.
Tip: To offer a long description of an image, simply create a link (that is visible
to anyone) to a page with the description.
Browser Support

The longdesc attribute is not supported by any of the major browsers.
Syntax
Attribute Values
| Value |
Description |
| URL |
An URL to a page that describes the image.
Possible values:
- An absolute URL - points to another web site (like longdesc="http://www.example.com/description.txt")
- A relative URL - points to a file within a web site (like longdesc="description.txt")
|
HTML <img> tag
Create a free Flash website with our simple, online web design editing platform. Stunning templates
and user-friendly tools make website building easy and fun.
Start Creating your free website now!

Whether you're new to XML or already an advanced user, the user-friendly views and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to meet your XML and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- 32-bit and 64-bit versions
- And much more!
Download a free trial today!
|
|
|
|