Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Commit ff35f2c

Browse files
msiadakmstellaluna
authored andcommitted
fix(challenges): Remove self-closing slashes from <img> and <input> (#16985)
1 parent fc87d71 commit ff35f2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

challenges/01-responsive-web-design/basic-html-and-html5.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,13 @@
558558
"description": [
559559
"You can add images to your website by using the <code>img</code> element, and point to a specific image's URL using the <code>src</code> attribute.",
560560
"An example of this would be:",
561-
"<code>&#60img src=\"https://www.your-image-source.com/your-image.jpg\" /&#62</code>",
562-
"Note that in most cases, <code>img</code> elements are self-closing.",
561+
"<code>&#60img src=\"https://www.your-image-source.com/your-image.jpg\"&#62</code>",
562+
"Note that <code>img</code> elements are self-closing.",
563563
"All <code>img</code> elements <strong>must</strong> have an <code>alt</code> attribute. The text inside an <code>alt</code> attribute is used for screen readers to improve accessibility and is displayed if the image fails to load.",
564564
"Note: If the image is purely decorative, using an empty <code>alt</code> attribute is a best practice.",
565565
"Ideally the <code>alt</code> attribute should not contain special characters unless needed.",
566566
"Let's add an <code>alt</code> attribute to our <code>img</code> example above:",
567-
"<code>&#60img src=\"https://www.your-image-source.com/your-image.jpg\" alt=\"Author standing on a beach with two thumbs up.\" /&#62</code>",
567+
"<code>&#60img src=\"https://www.your-image-source.com/your-image.jpg\" alt=\"Author standing on a beach with two thumbs up.\"&#62</code>",
568568
"<hr>",
569569
"Let's try to add an image to our website:",
570570
"Insert an <code>img</code> tag, before the <code>h2</code> element.",
@@ -1287,7 +1287,7 @@
12871287
"Now let's create a web form.",
12881288
"Input elements are a convenient way to get input from your user.",
12891289
"You can create a text input like this:",
1290-
"<code>&#60;input type=\"text\" /&#62;</code>",
1290+
"<code>&#60;input type=\"text\"&#62;</code>",
12911291
"Note that <code>input</code> elements are self-closing.",
12921292
"<hr>",
12931293
"Create an <code>input</code> element of type <code>text</code> below your lists."

0 commit comments

Comments
 (0)