Help:HTML in wikitext

From HEWIKI
Jump to: navigation, search

Wiki Help On: Editing | Style | Headers | Linking | Processing Instructions | Tables | Administration | Uploading | Templates | Preferences | Searching | Contents



Permitted HTML

The following HTML elements are currently permitted:


For many HTML elements, more convenient wikitext code is available, see Help:Editing. On the other hand, HTML tags allow an id that can be referenced in one's user style css, and allows the tag to be used as link target.


For example, the anchor element <a> is not allowed, so the wikitext

<a href="http://meta.wikimedia.org/">Main Page</a>

is treated like the wikitext

&lt;a href="http://meta.wikimedia.org/"&gt;Main Page&lt;/a&gt;

and is therefore displayed as

<a href="http://meta.wikimedia.org/">Main Page</a>

which is unlikely to be what the editor intended. Instead of using the anchor element (<a>) the wiki markup for external reference is recommended (enclosed in square brackets with the URL separated from the contents by a single space):

[http://meta.wikimedia.org/ Main Page]

displays as:

Main Page

Attributes

Most tags can have a style attribute. For example:

<div style="font-size:80%">
This is <span style="color:red">red</span> text.
</div>

produces:

This is red text.


Additional information

See: http://meta.wikimedia.org/w/index.php?title=Help:HTML_in_wikitext

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox