Code image.png

How to access source mode in the classic editor

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 mode.

Available HTML tags

The following HTML tags can be used on articles. Deprecated HTML tags will still work, but they may not in future software versions or browsers.

  • <abbr>
  • <acronym> (deprecated, see here)
  • <b>
  • <big> (deprecated, see here)
  • <blockquote>
  • <br />
  • <caption>
  • <center> (deprecated, see here)
  • <cite>
  • <code>
  • <dd>
  • <del>
  • <dfn>
  • <div>
  • <dl>
  • <dt>
  • <em>
  • <font> (deprecated, see here)
  • <h1>
  • <h2>
  • <h3>
  • <h4>
  • <h5>
  • <h6>
  • <hr>
  • <i>
  • <ins>
  • <li>
  • <ol>
  • <p>
  • <pre> (it is actually a parser tag, applying the HTML tag but also escaping any markup inside except HTML entities, similar to <nowiki>)
  • <q>
  • <rb>
  • <rp>
  • <rt>
  • <ruby>
  • <s>
  • <small>
  • <span>
  • <strike> (deprecated, see here)
  • <strong>
  • <sub>
  • <sup>
  • <table>
  • <td>
  • <th>
  • <tr>
  • <tt> (deprecated, see here)
  • <u>
  • <ul>
  • <var>
  • <!-- ... --> (displayed as Comments in visual mode; except UCP has different symbol)

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

Community content is available under CC-BY-SA unless otherwise noted.