Attribut class et id

Question:

Repl link/Link to where the bug appears:

Screenshots, links, or other helpful context:

code snippet

Bonjour
Vous voyez pour donnez un style a une balise par exemple h1 mais une ligne en particulier on peut utiliser les attributs class=“” et id=“” cependant elle marchent pas sur mon code

Pour définir un style pour une partie spécifique du texte en Html, vous devez utiliser la balise span avec un style spécifique, une classe, un inditificateur. Par exemple:

Ce texte doit être <span class="bleu">bleu</span>

To set the style for a certain part of the text in Html, you must use the span tag with a certain style, class, and identifier. For example:

This text should be <span class="blue">blue</span>
1 Like