For non-visual browsers (for
example, people accessing web content using screen reader software), it
can be difficult to understand what the embedded
content is used for. The simplest way to identify an iframe’s
content/purpose is with the
attribute (as shown in the example, it should only be a brief
description - a helpful summary rather than an unnecessarily
overcomplicated hurdle). In order to provide more information/orientation
for non-visual browsers, you may use the
attribute to point to a file that contains a complete description of the
iframe’s purpose or content.
attribute refers to a text file
<iframe src="stock-prices.php" height="200" width="200" frameborder="1" title="The latest stock prices, including Nikkei, FTSE100" longdesc="stocks.txt"> </iframe>
URL for a file which contains the extra descriptive text, most likely a simple .txt file.
longdesc attribute has almost zero practical use,
even with today’s good standards-aware browsers. Despite the best
intentions, no browser on the support charts makes it clear to the user
when there is extra information for the
iframe in the
form of a descriptive text file. But why would they need to, though? If
you can see the content, the content effectively explains itself! This
attribute really is not aimed at sighted users, hence the lack of
There are no comments yet.