Community Central
Create a Free Account
Advertisement
Community Central

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.

HTML tags in wikitext[]

Supported tags[]

The following HTML tags can be used in articles:

  • [1]

  • [1]
  • [1]
  • [1]
  • [1]
  • [1]

  • [1]

  • [1]

  • [1]

  • [1]
  • [1]

  • [1]
  • [1]
  • [1]
    1. [1]
    2. [1]

    3. [2]
    4. [1]
    5. [1]
      1. ↑ 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 These tags have equivalent wikitext markup, which is generally preferable. See #Usage notes.
      2. ↑
         is actually a parser tag. It applies the HTML tag but also escapes any markup inside except HTML entities, similar to 
        

      Deprecated tags[]

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

    6. [1]
    7. [1]
    8. Deprecated tags
      Deprecated tag Replacement Example Example display
      big big
      Centered
      Centered
      Red Alert! Red Alert!
      This is Times New Roman This is Times New Roman
      del (for marking an edit) Yes No Yes No
      (for anything else) Photon Torpedoes $44.99 '''now just $24.99!''' each Photon Torpedoes $44.99 now just $24.99! each
      (preferred for source code) use   for nonbreaking space use   for nonbreaking space
      (preferred for user input) mypasswd mypasswd
      (preferred for variables) age=65 age=65
      (preferred for computer output) Invalid password. Please try again. Invalid password. Please try again.
      Similar appearance without special meaning Typed text 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

      Inserting symbols[]

      Symbols and other special characters not available on your keyboard can be inserted through a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) → when inserted will be shown as right arrow HTML symbol → and — when inserted will be shown as an em dash HTML symbol —.


      Hover over any character to find out the symbol that it produces. Some symbols not available in the current font will appear as empty squares.

      HTML symbol entities
      Á á Â â ´ Æ æ À à ℵ Α α & ∧ ∠ Å å ≈ Ã ã Ä ä „ Β β ¦ • ∩ Ç ç ¸ ¢
      Χ χ ˆ ♣ ≅ © ↵ ∪ ¤ † ‡ ↓ ⇓ ° Δ δ ♦ ÷ É é Ê ê È è ∅     Ε ε ≡ Η η
      Ð ð Ë ë € ∃ ƒ ∀ ½ ¼ ¾ ⁄ Γ γ ≥ > ↔ ⇔ ♥ … Í í Î î ¡ Ì ì ℑ ∞ ∫ Ι ι
      ¿ ∈ Ï ï Κ κ Λ λ ⟨ « ← ⇐ ⌈ “ ≤ ⌊ ∗ ◊ ‎ ‹ ‘ < ¯ — µ · − Μ μ ∇   –
      ≠ ∋ ¬ ∉ ⊄ Ñ ñ Ν ν Ó ó Ô ô Œ œ Ò ò ‾ Ω ω Ο ο ⊕ ∨ ª º Ø ø Õ õ ⊗ Ö
      ö ∂ ‰ ⊥ Φ φ Π π ϖ ± £ ′ ″ ∏ ∝ Ψ ψ " √ ⟩ » → ⇒ ⌉ ” ℜ ® ⌋ Ρ ρ ‏
      › ’ ‚ Š š ⋅ § ­ Σ σ ς ∼ ♠ ⊂ ⊆ ∑ ⊃ ¹ ² ³ ⊇ ß Τ τ ∴ Θ θ ϑ   Þ þ ˜
      × ™ Ú ú ↑ ⇑ Û û Ù ù ¨ ϒ Υ υ Ü ü ℘ Ξ ξ Ý ý ¥ ÿ Ÿ Ζ ζ ‍ ‌
      Description You type You get
      Copyright symbol © ©
      Greek delta letter symbol δ δ
      Euro currency symbol € €

      See the list of all HTML entities on the Wikipedia article List of HTML entities.

      Additionally, MediaWiki supports two non-standard entity reference sequences: &רלמ; and &رلم; which are both considered equivalent to ‏ which is a right-to-left mark. (Used when combining right to left languages with left to right languages in the same page.)

      Displaying raw HTML tags and entities[]

      To display the raw HTML code, you can do this in two ways:

      • by replacing selected characters (&, <, etc.) with HTML entities:
        • &euro;  → €
        • Typo to be corrected  → Typo to be corrected
        • <span style="color: red; text-decoration: line-through;">Typo to be corrected  → Typo to be corrected
      • by using the tag:
        • <pre>  →

      Using the tag does not work for HTML entities. To display an entity as plain text, replace the ampersand with &.

      • &amp;  → &
      • &nbsp;  →  

      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[]

Advertisement