搜索文档
首页
HTML/CSS
JavaScript
服务端开发
Java教程
移动端
数据库
当前位置:
首页
HTML/CSS
HTML参考手册
HTML 属性
源代码
清空
点击运行
<!DOCTYPE html> <html> <head> <title>HTML:<img> longdesc 属性 - 大卫编程网 div.cn</title> <body> <!-- The description is on the same page as the image --> <img src="sun.gif" alt="div.cn" width="100" height="132" longdesc="#nhooo_Explained"> <!-- The description is in an external page --> <img src="sun.gif" alt="div.cn" width="100" height="132" longdesc="nhooo.txt"> <!-- The description is one of several within an external page --> <img src="sun.gif" alt="div.cn" width="100" height="132" longdesc="http://example.com/desc#item3"> <!-- The description is included in a data:URI --> <img src="sun.gif" alt="div.cn" width="100" height="132" longdesc="data:text/html;charset=utf-8;,%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Ctitle%3EDescription%20of%20the%20Logo%3C/title%3E%3C/head%3E%3Cbody%3E%3Cp%3ESome%20description%20goes%20here%3C/body%3E%3C/html%3E"> <div id="nhooo_Explained"> <h2>Image sun.gif</h2> <p>Description of the image...</p> </div> </body> </html>
运行结果