Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Attach search tags to web images? Date: Thu, 28 Nov 2019 12:13:16 +0100 Lines: 21 Message-ID: References: <41787270-f2cc-4fc0-9ea3-d2d8918d7100@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net jGzXlJtOQiOlhac5xZz2XgGvblYAJtL+o9LtlpzrAoIms+O/cE Cancel-Lock: sha1:tayGsWktR/1yaqZXvHxBnbJ9VT8= In-Reply-To: <41787270-f2cc-4fc0-9ea3-d2d8918d7100@googlegroups.com> Content-Language: en-US Xref: csiph.com comp.lang.javascript:37885 On 26.11.19 09:00, RG III wrote: > When users search for keywords on an HTML document, the browser > obviously only scans text for those keywords. But is it somehow > possible to attach keywords to elements that the browser can > include in keyword searches? If not, are there any other workarounds No. > that might help browser keyword searches scroll down to an > element? Put the text before or after the image as caption. Having "invisible" text which is only used when searching for it, is a bad idea anyway. The alt attributes in images are an exception as these are used *instead* of the image in case people can not see the image itself. -- Arno Welzel https://arnowelzel.de