Update alt text to clarify "shorthand attributes"

Alternatively, `alt="A man dancing"` could also be removed with no detrimental side effects IMO.
pull/2498/head
Jon Ross 7 years ago committed by GitHub
parent 2a76b8d383
commit a285a5efb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,6 +30,6 @@ We can use curly braces *inside* attributes. Try changing it to `"{name} dancing
It's not uncommon to have an attribute where the name and value are the same, like `src={src}`. Svelte gives us a convenient shorthand for these cases: It's not uncommon to have an attribute where the name and value are the same, like `src={src}`. Svelte gives us a convenient shorthand for these cases:
```html ```html
<img {src} alt="..."> <img {src} alt="A man dancing">
``` ```

Loading…
Cancel
Save