From bcf5375310ece1f9a90e99b270cdbae28c4d2831 Mon Sep 17 00:00:00 2001 From: julieng Date: Mon, 15 Nov 2021 21:41:03 +0100 Subject: convert content to md --- files/fr/glossary/attribute/index.md | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'files/fr/glossary/attribute/index.md') diff --git a/files/fr/glossary/attribute/index.md b/files/fr/glossary/attribute/index.md index e9c94a2553..6941750dcd 100644 --- a/files/fr/glossary/attribute/index.md +++ b/files/fr/glossary/attribute/index.md @@ -8,28 +8,30 @@ tags: translation_of: Glossary/Attribute original_slug: Glossaire/Attribut --- -

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.

+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=value` où _name_ est l'identificateur de l'attribut et _value_ sa valeur attribuée. -
<!-- Voici un exemple de tag sans attribut -->
-<h2>Titre</h2>
+```html
+
+

Titre

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

Titre

+``` -

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

+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>
+```html
+
+
 
-<!-- Cette notation fonctionne aussi -->
-<input type="text" required="required">
+ + +``` -

Pour approfondir

+## Pour approfondir -

Informations techniques

+### Informations techniques - +- [Liste des attributs HTML](/fr/docs/Web/HTML/Attributs) +- Informations concernant les [attributs universels](/fr/docs/Web/HTML/Attributs_universels) en HTML. -- cgit v1.2.3-54-g00ecf