Update alt text to clarify "shorthand attributes"

Alternatively, `alt="A man dancing"` could also be removed with no detrimental side effects IMO.
pull/7738/head
Jon Ross 7 years ago committed by Conduitry
parent d01b91d60c
commit 22079dc970

@ -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:
```html
<img {src} alt="...">
<img {src} alt="A man dancing">
```

Loading…
Cancel
Save