From 39f2114f9797eb51994966c6bb8ff1814c9a4da8 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 12:36:08 +0100 Subject: unslug fr: move --- files/fr/glossary/attribute/index.html | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 files/fr/glossary/attribute/index.html (limited to 'files/fr/glossary/attribute') diff --git a/files/fr/glossary/attribute/index.html b/files/fr/glossary/attribute/index.html new file mode 100644 index 0000000000..54926f8b1f --- /dev/null +++ b/files/fr/glossary/attribute/index.html @@ -0,0 +1,34 @@ +--- +title: Attribut +slug: Glossaire/Attribut +tags: + - Encodage + - Glossaire + - HTML +translation_of: Glossary/Attribute +--- +

Un attribut vient compléter un {{Glossary("tag")}}. Sa présence peut être requise ou facultative. Il peut fournir des méta-informations ou changer le comportement du tag. La syntaxe est name=valuename est l'identificateur de l'attribut et value sa valeur attribuée.

+ +
<!-- Voici un exemple de tag sans attribut -->
+<h2>Titre</h2>
+
+<!-- Le même tag avec un attribut -->
+<!-- Le titre apparaît désormais sur un fond jaune -->
+<h2 style="background-color:yellow";>Titre</h2>
+ +

On peut aussi trouver des attributs sans valeur quand elle n'est pas nécessaire.

+ +
<!-- Un tag avec un attribut indiquant que le champ est requis -->
+<input type="text" required>
+
+<!-- Cette notation fonctionne aussi -->
+<input type="text" required="required">
+ +

Pour approfondir

+ +

Informations techniques

+ + -- cgit v1.2.3-54-g00ecf