Update site/content/tutorial/01-introduction/03-dynamic-attributes/text.md

Co-Authored-By: John Muhl <johnmuhl@users.noreply.github.com>
pull/4449/head
Kirankumar Ambati 6 years ago committed by GitHub
parent 20a8d0c314
commit e6585933ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,9 +27,8 @@ We can use curly braces *inside* attributes. Try changing it to `"{name} dances.
## Shorthand attributes ## Shorthand attributes
It's common to have an attribute where the name and value are the same, like `src={src}`. Svelte gives us a convenient shorthand for these cases: In case the attribute name and value are the same (like `src={src}`) Svelte provides a convenient shorthand:
```html ```html
<img {src} alt="A man dances."> <img {src} alt="A man dances.">
``` ```

Loading…
Cancel
Save