From 012b73842af962625cc0e2015e17bb56e3ba5d26 Mon Sep 17 00:00:00 2001 From: Hyunseung Lee <78584173+HyunseungLee-Travis@users.noreply.github.com> Date: Sat, 30 Apr 2022 14:35:45 +0900 Subject: [PATCH] Update introduction/dynamic-attributes 1. Noticed the awkward sentence "Just like you can use curly braces to control text, you can use them to control element attributes". Changed it to a sentence easier to understand 2. `src` is an attribute and when the doc referred to attributes, it always puts '~ attribute', so added the 'attribute' description after `src` 3. Removed unnecessary spaces --- .../tutorial/01-introduction/03-dynamic-attributes/text.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/site/content/tutorial/01-introduction/03-dynamic-attributes/text.md b/site/content/tutorial/01-introduction/03-dynamic-attributes/text.md index c503b4f548..b4e2001bcf 100644 --- a/site/content/tutorial/01-introduction/03-dynamic-attributes/text.md +++ b/site/content/tutorial/01-introduction/03-dynamic-attributes/text.md @@ -2,9 +2,9 @@ title: Dynamic attributes --- -Just like you can use curly braces to control text, you can use them to control element attributes. +You can use curly braces to control element attributes, just like you use them to control text. -Our image is missing a `src` — let's add one: +Our image is missing a `src` attribute — let's add one: ```html @@ -24,7 +24,6 @@ In this case, we're missing the `alt` attribute that describes the image for peo We can use curly braces *inside* attributes. Try changing it to `"{name} dances."` — remember to declare a `name` variable in the `