空Alt标签

编程入门 行业动态 更新时间:2024-10-10 11:20:19
本文介绍了空Alt标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道是否最好将alt标签留空(alt ="") 或指定类似alt =''spacer''" ;当提到 只是帮助页面布局的对象时? -Fleemo

I''m wondering whether it''s better to leave an alt tag blank (alt=" ") or specify something like "alt=''spacer''" when referring to objects that merely help the layout of the page? -Fleemo

推荐答案

< fl ****** @ comcast>在消息中写道 news:11 ********************** @ z14g2000cwz.googlegr oups ... <fl******@comcast> wrote in message news:11**********************@z14g2000cwz.googlegr oups... 我想知道是否最好将alt标签留空(alt ="")或指定类似alt =''spacer''"当引用仅仅帮助页面布局的对象时? -Fleemo I''m wondering whether it''s better to leave an alt tag blank (alt=" ") or specify something like "alt=''spacer''" when referring to objects that merely help the layout of the page? -Fleemo

不确定它是否对辅助功能有帮助,但是我尝试命名每个alt标签,即使它只是说边界,也可以命名为b $ b。或者spacer。 Carla

Not sure if it helps for accessibility, but I try to name every alt tag, even if it just says "border" or "spacer." Carla

" c.thornquist" c为C ********** @ insightbb>。写道: "c.thornquist" <c.**********@insightbb> wrote: < fl ****** @ comcast>在消息中写道新闻:11 ********************** @ z14g2000cwz.googleg roups ... <fl******@comcast> wrote in messagenews:11**********************@z14g2000cwz.googleg roups... 我想知道是否最好将alt标签留空(alt ="")或指定类似alt =''spacer''"当引用仅仅帮助页面布局的对象时? I''m wondering whether it''s better to leave an alt tag blank (alt=" ") or specify something like "alt=''spacer''" when referring to objects that merely help the layout of the page?

alt ="" 不确定它是否对辅助功能有帮助,但我尝试命名每个alt标签,即使它只是说边界,或者spacer。

alt="" Not sure if it helps for accessibility, but I try to name every alt tag,even if it just says "border" or "spacer."

使用说话浏览器并收听您的页面。 alt =" spacer" 内容吗? 史蒂夫 - 我的理论给你起见,我的异端邪说你愤怒, 我从不回信,你不喜欢我的领带。 - 医生 Steve Pugh< st *** @ pugh> < steve.pugh/>

Use a speaking browser and listen to your page. Does alt="spacer" improve your experience? Does it help you to comprehend and use the content of the page? Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don''t like my tie." - The Doctor Steve Pugh <st***@pugh> <steve.pugh/>

fl ******@comcast 写道: fl******@comcast wrote: 我想知道将alt标签留空是否更好(alt =" )或指定类似alt =''spacer''"当引用仅仅有助于页面布局的对象时? I''m wondering whether it''s better to leave an alt tag blank (alt=" ") or specify something like "alt=''spacer''" when referring to objects that merely help the layout of the page?

首先,它是属性,而不是标签。 其次,不要在不考虑它意味着什么的情况下使用它,以及它可能会给你带来多少帮助。关于这个特定的 问题,没有任何指示。如果你需要问它,你将得到大多数其他alt属性 也是错误的,除非你理解alt属性的_idea_。 这意味着图像的文本替代,当图像未呈现时,实际呈现给用户。现在想象自己 坐在一个完全黑暗的房间里听一个语音合成器 为你读一页,比如说 广告 * Spacer 首页 页 * Spacer 健康 数据 * Spacer 主题 列表 * Spacer 媒体 中心 * Spacer 信息 产品 * Spacer PAHO 出版 * Spacer 知识 资源 或者这个怎​​么样(不,我不是这样做的): Spacer graphic Spacer graphic Spacer graphic Spacer graphic Spacer graphic Spacer graphic Spacer graphic [EMBED] Spacer graphic 什么可以证明使用alt =" spacer"?人们怎么会得到这样的想法? 好​​吧,如果你使用的是没有 $ b $的alt属性,它会变得更糟b最轻微的想法或线索: 此处为您的图片说明 此处为您的图片说明 此处您的图片描述 此处为您的图片说明 此处为您的图片说明 此处为您的图片说明 [链接] [链接] [链接] [链接] [链接] [链接] 此处为您的图片说明 此处为您的图片说明 此处您的图片描述 这里的图片描述 这里的图片描述 这里的图片描述 [链接] [链接] [链接] [链接] [链接] [链接] ] 此处为您的图片说明 您的图片说明 此处为您的图片说明 即将推出 即将推出 即将推出很快 (很抱歉长报价,但它们是重点之一。人们 真的要一遍又一遍地听[或读]这样的废话, 特别是因为它经常在开始时重复的导航区域<每个网站页面的。该网站可能会自豪地提供一张 无障碍邮票。 Bobby批准,或者其他什么。) 关于alt属性的更多信息: www.cs.tut.fi/~jkorpela/html/alt.html - Yucca, http://www.cs.tut .fi / ~jkorpela / 关于网页创作的网页: www.cs.tut.fi/~jkorpela/www.html

First, it''s an attribute, not a tag. Second, don''t use it without thinking what it means and what it might help. There''s no pointing in giving an advice about this specific issue. If you need to ask it, you will get most other alt attributes wrong too, unless you understand the _idea_ of an alt attribute. It means a textual alternative to the image, to be actually presented to the user when the image is not presented. Now imagine yourself sitting in a completely dark room and listening to a speech synthesizer that reads a page for you, saying for instance Advertisement * Spacer Home Page * Spacer Health Data * Spacer Topics List * Spacer Media Center * Spacer Information Products * Spacer PAHO Publishing * Spacer Knowledge Resources Or how about this (no, I''m not making this up): Spacer graphic Spacer graphic Spacer graphic Spacer graphic Spacer graphic Spacer graphic Spacer graphic [EMBED] Spacer graphic What could possibly justify using alt="spacer"? How did people ever get such an idea? Well, it _can_ get even worse if you are using alt attributes without the slightest idea or clue: your image description here your image description here your image description here your image description here your image description here your image description here [LINK] [LINK] [LINK] [LINK] [LINK] [LINK] your image description here your image description here your image description here your image description here your image description here your image description here [LINK] [LINK] [LINK] [LINK] [LINK] [LINK] your image description here your image description here your image description here Coming Soon Coming Soon Coming Soon (Sorry for long quotations, but they are part of the point. People really have to listen to [or read] such nonsense, over and over again, especially since it''s often in a navigation area repeated at the start of each and every page of a site. And the site may proudly present an accessibility stamp. Bobby approved, or whatever.) More on alt attributes: www.cs.tut.fi/~jkorpela/html/alt.html -- Yucca, www.cs.tut.fi/~jkorpela/ Pages about Web authoring: www.cs.tut.fi/~jkorpela/www.html

更多推荐

空Alt标签

本文发布于:2023-11-06 03:33:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562621.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标签   Alt

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!