Skip to content

Commit 2f8656e

Browse files
Updated 'The Picture element' section as per issue requirements (#35832)
Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
1 parent 7c0583e commit 2f8656e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,9 @@ Here are some examples for using relative links to display an image.
265265
266266
For more information, see [Relative Links](#relative-links).
267267

268-
### Specifying the theme an image is shown to
268+
### The Picture element
269269

270-
You can specify the theme an image is displayed for in Markdown by using the HTML `<picture>` element in combination with the `prefers-color-scheme` media feature. We distinguish between light and dark color modes, so there are two options available. You can use these options to display images optimized for dark or light backgrounds. This is particularly helpful for transparent PNG images.
271-
272-
For example, the following code displays a sun image for light themes and a moon for dark themes:
273-
274-
{% data reusables.getting-started.picture-element-example %}
275-
276-
The old method of specifying images based on the theme, by using a fragment appended to the URL (`#gh-dark-mode-only` or `#gh-light-mode-only`), is {% data variables.release-phases.closing_down %} and will be removed in favor of the new method described above.
270+
The `<picture>` HTML element is supported.
277271

278272
## Lists
279273

0 commit comments

Comments
 (0)