Skip to content

Commit

Permalink
none
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishtr committed Dec 27, 2024
1 parent e490ccd commit 639b458
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions book/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ Parsing with Functions
One way a web page can change its appearance is with the `style`\index{style}
attribute. For example, this changes an element's background color:

``` {.html .example style=background-color:lightblue}
<div style="background-color:lightblue"></div>
``` {.html .example}
<div style="background-color:lightblue">Blue background</div>
```

And it renders like this:

<div style="background-color:lightblue">Blue background</div>

More generally, a `style` attribute contains property–value pairs
separated by semicolons. The browser looks at those CSS
property–value\index{css property value}
Expand Down

0 comments on commit 639b458

Please sign in to comment.