aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/css/_doublecolon_target-text
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/css/_doublecolon_target-text')
-rw-r--r--files/fr/web/css/_doublecolon_target-text/index.md44
1 files changed, 23 insertions, 21 deletions
diff --git a/files/fr/web/css/_doublecolon_target-text/index.md b/files/fr/web/css/_doublecolon_target-text/index.md
index b576694e50..77125839b7 100644
--- a/files/fr/web/css/_doublecolon_target-text/index.md
+++ b/files/fr/web/css/_doublecolon_target-text/index.md
@@ -1,43 +1,45 @@
---
title: '::target-text'
-slug: 'Web/CSS/::target-text'
+slug: Web/CSS/::target-text
+translation_of: Web/CSS/::target-text
browser-compat: css.selectors.target-text
-translation_of: 'Web/CSS/::target-text'
---
-<div>{{CSSRef}}{{SeeCompatTable}}</div>
+{{CSSRef}}{{SeeCompatTable}}
-<p>Le <a href="/fr/docs/Web/CSS/Pseudo-elements">pseudo-élément</a> <a href="/en-US/docs/Web/CSS">CSS</a> <strong><code>::target-text</code></strong> représente le texte vers lequel l'écran vient de défiler, dans le cas où le navigateur prend en charge les fragments <code>scroll-to-text</code>. Il permet aux auteurs de mettre en valeur cette section de texte.</p>
+Le [pseudo-élément](/fr/docs/Web/CSS/Pseudo-elements) [CSS](/en-US/docs/Web/CSS) **`::target-text`** représente le texte vers lequel l'écran vient de défiler, dans le cas où le navigateur prend en charge les fragments `scroll-to-text`. Il permet aux auteurs de mettre en valeur cette section de texte.
-<pre class="brush: css no-line-numbers">::target-text {
+```css
+::target-text {
  background-color: pink;
-}</pre>
+}
+```
-<h2 id="syntax">Syntaxe</h2>
+## Syntaxe
-<p>{{csssyntax}}</p>
+{{csssyntax}}
-<h2 id="examples">Exemples</h2>
+## Exemples
-<h3 id="highlighting_scroll-to-text">Mise en valeur de scroll-to-text</h3>
+### Mise en valeur de scroll-to-text
-<pre class="brush: css no-line-numbers">::target-text {
+```css
+::target-text {
background-color: rebeccapurple;
color: white;
font-weight: bold;
-}</pre>
+}
+```
-<p>Pour voir ce code CSS en action, suivez ce lien vers la <a href="https://mdn.github.io/css-examples/target-text/index.html#:~:text=From%20the%20foregoing%20remarks%20we%20may%20gather%20an%20idea%20of%20the%20importance">démonstration de scroll-to-text</a>.</p>
+Pour voir ce code CSS en action, suivez ce lien vers la [démonstration de scroll-to-text](https://mdn.github.io/css-examples/target-text/index.html#:~:text=From%20the%20foregoing%20remarks%20we%20may%20gather%20an%20idea%20of%20the%20importance).
-<h2 id="specifications">Spécifications</h2>
+## Spécifications
-<p>{{Specifications}}</p>
+{{Specifications}}
-<h2 id="browser_compatibility">Compatibilité des navigateurs</h2>
+## Compatibilité des navigateurs
-<p>{{Compat}}</p>
+{{Compat}}
-<h2 id="See_also">Voir aussi</h2>
+## Voir aussi
-<ul>
- <li><a href="https://web.dev/text-fragments/">Text fragments (en anglais)</a></li>
-</ul>
+- [Text fragments (en anglais)](https://web.dev/text-fragments/)