Skip to content

Commit 51c45f7

Browse files
committed
added alt text to images
1 parent 3206173 commit 51c45f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sites/en/frontend/introduction_to_html.step

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You'll need to fire up your text editor (like Sublime Text, Komodo Edit, or Text
4141

4242
Make a new file and call it <b>hello.html</b>. (In some editors, you may need to set the file type to 'HTML'; but usually, just using the .html extension will be enough.)
4343

44-
<img src='img/hello_html.png'>
44+
<img src='img/hello_html.png' alt="text editor with empty file named hello.html">
4545

4646
Notice the extension .html. It indicates to the browser that it should render this content as HTML.
4747

@@ -56,7 +56,7 @@ MARKDOWN
5656
message <<MARKDOWN
5757
Open Chrome and go to File, Open File, then select the file from your Desktop or wherever you put it.
5858

59-
<img src='img/hello_world.png'>
59+
<img src='img/hello_world.png' alt="hello.html file rendered in browser displaying: Hello World">
6060

6161
Even though your file does not include any HTML tags yet, browsers are great at showing text on screen, so your browser will just show you your text.
6262
MARKDOWN
@@ -66,7 +66,7 @@ MARKDOWN
6666
message "Kind of boring, right? To make it look a little less plain, let's drop in an HTML tag. Update the contents of your hello.html file to look like this:"
6767
source_code :html, "Hello <em>World</em>!"
6868
message "The `em` HTML tag tells your browser to add <em>em</em>phasis to that string of text. Refresh your browser and you'll see the effect:"
69-
message "<img src='img/hello_world_jazzy.png'>"
69+
message "<img src='img/hello_world_jazzy.png' alt='hello.html file rendered in browser displaying: Hello World with world emphasized'>"
7070
end
7171

7272
message <<-MARKDOWN

0 commit comments

Comments
 (0)