Help:HTML in wikitext/fr

MediaWiki a la possibilité de reconnaître par analyse syntaxique certaines balises HTML du wikicode. Les chevrons pour les autres balises sont échappés et les balises sont affichées au lieu d'être analysées.



Balises HTML autorisées


Balises obsolètes
The following tags are parsed by MediaWiki, but they are obsolete in HTML 5. They should be replaced with one of above tags. You might add a  attribute to reproduce the expected display.



Ancre des liens
To create a linkable anchor, you can use any HTML tag with an  attribute.

E.g.  allows you to create a link to its location on the page using.



Formatage CSS


Avec l'attribut
Using HTML tag instead of wikitext equivalent allows you to add a  attribute to define a custom display through CSS language.



Avec les attributs et
Thanks to TemplateStyles, you may add a custom stylesheet to the document. So it is useful to add  or   attributes to the elements you want to customize their display.



Réécraser la syntaxe HTML


Commentaires HTML
Wikitext uses HTML comment syntax for its own comments: the parser ignores them, they are not rendered in resulting HTML source.



Balise
The content of a  tag is not parsed, as in a  tag.

You have to use the equivalent wikitext syntax to allow the content parsing. I.e. start each line with a blank space:

Un texte préformaté pouvant contenir du wikicode, ex : « ce texte idiomatique » sera analysé. Other line.



Voir aussi

 * - Help about Linter extension, which notices HTML issues in pages.
 * - Information about MediaWiki's default limitations for HTML content, and extensions that expand its support.
 * - Extensions allowing further HTML.