Update alt text to clarify "shorthand attributes"

Alternatively, `alt="A man dancing"` could also be removed with no detrimental side effects IMO.
pull/2501/head
Jon Ross 5 years ago committed by Conduitry
parent 2a76b8d383
commit bf6bd36e38

@ -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