alt

Multiple images of same product, accessibility requirements

喜夏-厌秋 提交于 2021-01-28 00:32:58
问题 For a webpage with multiple images of a single product, such as with different angles. Is there a requirement for alt tags for each image? Viewing examples on Amazon it seems they only have an alt tag on the first product image, but after which there is no alt tag or aria related tags. The first example here says that the stars have empty alt tags. My question is, to follow proper standards, is it required to have an empty alt tag after the first image? To completely hide the extra non

Can I use alt and title properties within SVG elements?

非 Y 不嫁゛ 提交于 2020-05-29 04:33:11
问题 To make my inline SVG image more searchable by google, can you add alt/title properties/attributes within svg elements such as "path" "circle" "line" etc? I already know that you can use a title tag within the "svg" tag, like this.. <svg> <title>this is a title tag.</title> </svg> Below is an example of what I am talking about. <svg version="1.1" id="Layer_1"> <style type="text/css"> .st0{fill:none;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-miterlimit:10;} </style> <path class=

image_tag - Is there a way to make the alt attr blank by default?

☆樱花仙子☆ 提交于 2020-01-21 08:49:10
问题 I rather have a blank alt attribute if an image is missing instead of the filename of the image (who ever wants this default behavior anyway?) Is there a way to make a system configuration so image_tag sets a blank alt attr if no alt was given? Just to be clear: I am not interested in image_tag('path/to/image', :alt => '') I am interested in setting it once for all the image_tags. 回答1: For Rails 3.2 add this under config/initializers module ActionView::Helpers::AssetTagHelper def image_alt

image_tag - Is there a way to make the alt attr blank by default?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-21 08:49:06
问题 I rather have a blank alt attribute if an image is missing instead of the filename of the image (who ever wants this default behavior anyway?) Is there a way to make a system configuration so image_tag sets a blank alt attr if no alt was given? Just to be clear: I am not interested in image_tag('path/to/image', :alt => '') I am interested in setting it once for all the image_tags. 回答1: For Rails 3.2 add this under config/initializers module ActionView::Helpers::AssetTagHelper def image_alt

'Alt' keyup event don't work on Firefox

两盒软妹~` 提交于 2020-01-17 04:13:22
问题 i try to capture this key : alt+arrow down, alt+arrow up. First, i capture alt key down : var isAlt = false; $(document).keydown(function (e) { if(e.which == 18){isAlt=true;} }).keyup(function (e) { if(e.which == 18){isAlt=false;} }); this code is ok, and alt keyup is detected. But, if i add arrow key down, when arrow keydown, it's ok, but after alt keyup is not detected : var isAlt = false; $(document).keydown(function (e) { if(e.which == 18){isAlt=true;}else{ if(e.which == 38 && isAlt ==

Python Alt Hooking

五迷三道 提交于 2020-01-04 15:33:48
问题 I was writing this type-recording program when I encountered a problem - Alt key doesn't have an Ascii number so I can't hook it in the regular way. This is my source code without the Alt hooking try, the question is - how do I hook Alt ? I know that there is Class variable named "Alt" and built-in function named "IsAlt" but I didn't get how to use them. import pythoncom,pyHook log = "" logpath = "log.txt" openfile = open(logpath,"w") openfile.write("") def OnKeyboardEvent(event): try: global

About the Title/Alt attributes;

会有一股神秘感。 提交于 2019-12-28 06:22:13
问题 I hope I can post this. I understand the the purpose of the title and alt attributes, but I just do not understand the best use for them or if I can use the same title/alt more than once. For Example a website about dogs: From my understanding all img tags need an alt tag: <img src="Husky.png" alt="Husky" /> <img src="Rottweiler.png" alt="Rottweiler" /> Is it good practice to use the same alt tag for multiple pictures on the same subject <img src="Husky2.png" alt="Husky" /> <img src="Husky3

C# SendInput Alt/Ctrl/Shift Keys not getting Released

本小妞迷上赌 提交于 2019-12-24 12:44:14
问题 I am using the below code to pass special keys using SendInput . I am facing one strange issue. If user sends any of Alt / Ctrl / Shift , the key remains pressed e.g. if user passes Alt + F4 , the code runs properly and action is completed successfully but Alt key remains pressed. I need to manually click Alt key after the operation is completed. Please let me know to handle the same in the code itself. Below is the code used to send special keys. namespace RemoteDesktopSendKeys { class

Add the alt attribute to light box slideshow title?

女生的网名这么多〃 提交于 2019-12-24 11:28:02
问题 I am using Nivo Lightbox plugin. I am also using CMS surreal. I want the clients to be able to change the title of the images in the Nivo Lightbox slideshow. The titles to the slideshow are given in the anchor tag that surrounds the image tag, with the title attribute declaring the title displayed on the slideshow: <a href="images/1.jpg" title="Untitled 2013" data-lightbox-gallery="gallery1"><img src="images/1.jpg" /></a> The CMS editor only gives the client the option to edit the alt

Cannot dispatch in the middle of a dispatch

落花浮王杯 提交于 2019-12-23 02:06:31
问题 So the error I get is: Uncaught (in promise) Error: Invariant Violation: Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch.(…) I've read through countless of posts regarding this error but I can't seem to figure out why I get it. I get the error at pageload, from thereon it works fine. When I remove the loading action: loading: StudentsActions.studentsLoading it all works fine. You can find all the code on the github repo Thanks in advance ! 回答1: You are getting this error