aboutsummaryrefslogtreecommitdiffhomepage
path: root/web/src/details.html
blob: 8bbec300e9940d5f638d89c415615c7f635980a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<style>
/* example: style based on attribute */
details > summary {
  color: red;
}
details[open] > summary {
  color: green;
}
</style>
<details>
  <summary>Some text goes here</summary>
  ... some more text goes here.
</details>