alt vs img标签的标题 [英] alt vs title for img tags

查看:85
本文介绍了alt vs img标签的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

乍一看,alt和title似乎有点重复

为html中的img标签。


是否有任何_practical_差异html 4严格的doctype?


使用title代替alt会产生什么后果(如果有的话)?

At first glance, alt and title seem to be a bit of a duplication
for img tags in html.

Are there any _practical_ differences for the html 4 strict doctype?

What would be the consequences (if any) of using title instead of alt?

推荐答案



David Stone写道:

David Stone wrote:

乍一看,alt和title似乎有点重复

用于html中的img标签。


html 4严格doctype是否存在_practical_差异?


什么会是使用title而不是alt的后果(如果有的话)?
At first glance, alt and title seem to be a bit of a duplication
for img tags in html.

Are there any _practical_ differences for the html 4 strict doctype?

What would be the consequences (if any) of using title instead of alt?



它们有不同的用途。在没有显示图像的情况下(例如

文本模式浏览器,音频阅读器,无法加载的图像),需要ALT用于

替换内容等等。

TITLE,这是可选的,用于补充信息,例如显示为工具提示的



-

Dan

They have different purposes. ALT, which is required, is used for
replacement content in cases where the image is not displayed (such as
text-mode browsers, audio readers, images unable to load, etc.).
TITLE, which is optional, is used for supplementary information, such
as to display as a tooltip.

--
Dan


David Stone写道:
David Stone wrote:

乍一看,alt和title似乎有点重复

为html中的img标签。


是否有任何_practical_差异html 4严格的doctype?


使用title而不是alt会产生什么后果(如果有的话)?
At first glance, alt and title seem to be a bit of a duplication
for img tags in html.

Are there any _practical_ differences for the html 4 strict doctype?

What would be the consequences (if any) of using title instead of alt?



他们是两个完全不同的东西,无论你使用哪种类型的

html。

标题给出当你将鼠标悬停在图像上时,你会有一个工具提示,而alt

会为你提供一个替代文本,如果图像没有加载任何原因

的原因。如果标题不存在,IE使用alt作为工具提示,但

其他浏览器不这样做。


-

Els http://locusmeus.com/

无法访问网页设计: http://locusoptimus.com/


现在播放:De Dijk - Man op de radio

They are two entirely different things, regardless of which type of
html you use.
Title gives you a tooltip when hovering over the image, while alt
gives you an alternative text if the image doesn''t load for whatever
reason. IE uses the alt for the tooltip if the title is absent, but
other browsers don''t do that.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: De Dijk - Man op de radio


David Stone写道:
David Stone wrote:

乍一看,alt和title似乎有点重复

为html中的img标签。
At first glance, alt and title seem to be a bit of a duplication
for img tags in html.



标题提供有关图像的咨询信息,alt为图像提供文本替换
(如果图像不能

显示)。

Title provides advisory information about the image, alt provides a text
replacement for the image (in the event that the image cannot be
displayed).


使用title而不是alt会产生什么后果(如果有的话)?
What would be the consequences (if any) of using title instead of alt?



该文件无效。搜索引擎索引器,关闭图像的人

关闭,人们使用文本浏览器,人们使用听觉浏览器,人们使用盲文输出设备
,可能还有很多其他人不会't

得到的内容。

http://htmlhelp.com/feature/art3.htm 可能值得一读。


-

David Dorward< http://blog.dorward.me.uk/<tp://dorward.me.uk/>

Home是〜/ .bashrc所在的位置br />

The document would be invalid. Search engine indexers, people with images
turned off, people using text browsers, people using aural browsers, people
using braille output devices, and probably a bunch of other people wouldn''t
get the content at all.

http://htmlhelp.com/feature/art3.htm is probably a worthwhile read for you.

--
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is


这篇关于alt vs img标签的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆