Help:HTML in wikitext: Difference between revisions

Content deleted Content added
Reverted 1 edit by 116.102.97.106 (talk): Please explain why you are removing this. (TW)
m Attributes: neater formatting
Line 18:
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: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.
* <code>lang</code>: primary language for the contents of the element per [[BCP 47]]. The MediaWiki software automatically adds the <code>xml:lang</code> attribute whenever <code>lang</code> is defined, but <code>xml:lang</code> will no longer be passed when included as a separate attribute.