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.
The following HTML tags can be used on articles:
*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 will still work, but they may not in future software versions or browsers.
|Deprecated tag||Replacement||Example||Example display|
||This is Times New Roman|
||Photon Torpedoes |
||Invalid password. Please try again.|
|Similar appearance without special meaning||
|Table cell horizontal alignment:
where X is "left", "center" or "right" (sometimes without quotes)
|Table cell vertical alignment:
where X is "top", "middle" or "bottom" (sometimes without quotes)
||top aligned text|
|Table cell background color:
- 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.
- Meta-Wiki's help page
- Using HTML in Wikitext on Meta-Wiki
- Information on using span tags on Wikipedia