]> Cypherpunks repositories - gostls13.git/commitdiff
doc: add alt attribute to gopher image in help.html
authorAlexander Nohe <alex.nohe427@gmail.com>
Sat, 27 Jun 2020 23:22:29 +0000 (23:22 +0000)
committerDmitri Shuralyov <dmitshur@golang.org>
Mon, 29 Jun 2020 17:59:28 +0000 (17:59 +0000)
This adds an alt tag for accessibility. The alt text is a visual
description of the text that is read out loud to users using a
screen reader. The HTML specifications indicate that alt tags for
decorative images should be left blank.

Fixes #39861

Change-Id: I76c39a461ceabe685826aa46e4f26ad893d50634
Reviewed-on: https://go-review.googlesource.com/c/go/+/240258
Reviewed-by: Alexander Nohe <alex.nohe427@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
doc/help.html

index b305a57763c33e8ad7ff3bd51a5e385ec6bdba73..3d32ae5dc03d34c9064759b3de112f0e38dc0f8a 100644 (file)
@@ -8,7 +8,7 @@
 
 <h2 id="help">Get help</h2>
 
-<img class="gopher" src="/doc/gopher/help.png"/>
+<img class="gopher" src="/doc/gopher/help.png" alt=""/>
 
 {{if not $.GoogleCN}}
 <h3 id="mailinglist"><a href="https://groups.google.com/group/golang-nuts">Go Nuts Mailing List</a></h3>