Community Central
Community Central
Code image

HTML (HyperText Markup Language) is a language used on websites to format the layout and content. Wiki pages are generally managed by wikitext rather than HTML, so only a limited number of HTML tags can be used on articles.

HTML (and wikitext) can be written and managed while using the editor's source editor.

Available HTML tags[]

The following HTML tags can be used in articles:

  • <abbr>
  • <b>*
  • <bdi>
  • <bdo>
  • <blockquote>
  • <br />
  • <caption>
  • <cite>
  • <code>
  • <data>
  • <dd>*
  • <del>
  • <dfn>
  • <div>
  • <dl>*
  • <dt>*
  • <em>*
  • <h1>*
  • <h2>*
  • <h3>*
  • <h4>*
  • <h5>*
  • <h6>*
  • <hr>*
  • <i>*
  • <ins>
  • <kbd>
  • <li>*
  • <mark>
  • <ol>*
  • <p>*
  • <pre>**
  • <q>
  • <rp>
  • <rt>
  • <ruby>
  • <s>
  • <samp>
  • <small>
  • <span>
  • <strong>
  • <sub>
  • <sup>
  • <table>*
  • <td>*
  • <th>*
  • <time>
  • <tr>*
  • <u>
  • <ul>*
  • <var>
  • <wbr />
  • <!-- -->

*These tags have equivalent wikitext markup, which is generally preferable. See #Usage notes.
**<pre> is actually a parser tag. It applies the HTML tag but also escapes any markup inside except HTML entities, similar to <nowiki>.

Deprecated HTML tags[]

Deprecated HTML tags will still work, but they may not in future software versions or browsers.

Deprecated tags
Deprecated tag Replacement Example Example display
<big> <span style="font-size: larger;"> <span style="font-size: larger;">big</span> big
<center> <div style="text-align: center;"> <div style="text-align: center;">Centered</div>
Centered
<font color="x" size="y" face="z"> <span style="color: x; font-size: y; font-family: z;"> <span style="color: red;">Red Alert!</span> Red Alert!
<span style="font-family: Times New Roman;">This is Times New Roman</span> This is Times New Roman
<strike> del (for marking an edit) <del>Yes</del> No Yes No
<s> (for anything else) Photon Torpedoes <s>$44.99</s> '''now just $24.99!''' each Photon Torpedoes $44.99 now just $24.99! each
<tt> <code> (preferred for source code) use <code>&nbsp;</code> for nonbreaking space use &nbsp; for nonbreaking space
<kbd> (preferred for user input) <kbd>mypasswd</kbd> mypasswd
<var> (preferred for variables) <var>age</var>=65 age=65
<samp> (preferred for computer output) <samp>Invalid password. Please try again.</samp> Invalid password. Please try again.
Similar appearance without special meaning <span style="font-family: monospace;">Typed text</span> Typed text
Table cell horizontal alignment: align=X
where X is "left", "center" or "right" (sometimes without quotes)
style="text-align: X;" style="text-align: right;" | right-justified text right-justified text
Table cell vertical alignment: valign=X
where X is "top", "middle" or "bottom" (sometimes without quotes)
style="vertical-align: X;" style="vertical-align: top;" | top aligned text top aligned text
Table cell background color: bgcolor=X style="background-color: X;" style="background-color: pink" | pink background pink background

Usage notes[]

Keep it friendly
The use of wikitext is recommended wherever possible, as HTML generally makes the text in the edit box harder to read and more intimidating for new users. Complex uses of HTML and CSS can be hidden away in templates, where they are less likely to get in the way of the casual editor.
Combine it with CSS
Styling information can be stored in community CSS pages (using code like class="classname"). Both CSS classes and inline styling (style="color: pink;") can be used with the HTML tags listed above, and they can also be used with many types of wikitext, particularly tables, table rows and cells. However, please keep in mind that use of inline styling should be limited, as it can cause conflicts with the mobile experience of your community.

See also[]

Further help and feedback[]