Skip to content

Commit

Permalink
Add docs for <meta> media attribute (#36692)
Browse files Browse the repository at this point in the history
* Add docs for <meta> media attribute

* update <meta> media attribute - files/en-us/web/html/element/meta/index.md

Co-authored-by: Estelle Weyl <[email protected]>

* <meta> media attribute moved above name attribute

---------

Co-authored-by: Estelle Weyl <[email protected]>
  • Loading branch information
sedlukha and estelle authored Nov 13, 2024
1 parent dffb678 commit 4d3287f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/en-us/web/html/element/meta/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Global_attrib
> - [Understanding Success Criterion 2.2.4 | W3C Understanding WCAG 2.0](https://www.w3.org/TR/UNDERSTANDING-WCAG20/time-limits-postponed.html)
> - [Understanding Success Criterion 3.2.5 | W3C Understanding WCAG 2.0](https://www.w3.org/TR/UNDERSTANDING-WCAG20/consistent-behavior-no-extreme-changes-context.html)
- `media`

- : The `media` attribute defines which media the theme color defined in the `content` attribute should be applied to. Its value is a [media query](/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries), which defaults to `all` if the attribute is missing. This attribute is only relevant when the element's [`name`](/en-US/docs/Web/HTML/Element/meta/name) attribute is set to [`theme-color`](/en-US/docs/Web/HTML/Element/meta/name/theme-color). Otherwise, it has no effect, and should not be included.

- `name`

- : The `name` and `content` attributes can be used together to provide document metadata in terms of name-value pairs, with the `name` attribute giving the metadata name, and the `content` attribute giving the value.
Expand Down

0 comments on commit 4d3287f

Please sign in to comment.