Help:HTML in wikitext: Difference between revisions
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) |
||
Line 17:
== Attributes ==
[[wikipedia:HTML attribute|HTML attribute]]s provide additional information about an element and are always specified in the start tag. They are formatted as a name/value pair like <code>name="value"</code>.
Global attributes apply to all tags. Attributes not listed here are not allowed by MediaWiki{{r|sanitizer}}:
* <code>class</code>: one or more classifications to which the element belongs. See [[wikipedia:Wikipedia:Catalogue of CSS classes|Wikipedia:Catalogue of CSS classes]].
* <code>dir</code>: text direction— <code>"ltr"</code> (left-to-right), <code>"rtl"</code> (right-to-left) or <code>"auto"</code>.
* <code>id</code>: unique identifier for the element.
Line 36:
<!-- As of 10 January 2013, $wgAllowRdfaAttributes is not enabled, thus the attributes will be stripped
[[wikipedia:RDFa|]] attributes:{{r|rdfa}}
* <code>about</code>
* <code>property</code>
| |||