Html tags
Jump to navigation
Jump to search
HTML tags[edit | edit source]
Some HTML tags are allowed in MediaWiki, for example <code>
, <div>
, and <span>
. These apply anywhere you insert them.
Description | You type | You get |
---|---|---|
Inserted
(Displays as underline in most browsers) |
<ins>Inserted</ins> or <u>Underline</u> |
Inserted
or Underline |
Deleted
(Displays as strike-through in most browsers) |
<s>Strike-through</s> or <del>Deleted</del> |
or
|
Fixed width text |
<code>Source code</code> |
Source code
|
Blockquotes |
Text before <blockquote>Blockquote</blockquote> Text after |
Text beforeText after |
Quotes |
<q>This is a quotation</q> The q element must not be used in place of quotation marks that do not represent quotes; for example, it is inappropriate to use the q element for marking up sarcastic statements. |
This is a quotation |
Comment |
Comments are visible only in the edit zone. |
Comments are visible only in the edit zone. |
Completely preformatted text |
<pre> Text is '''preformatted''' and ''markups'' '''''cannot''''' be done </pre> For marking up of preformatted text, check the "Preformatted text" entry at the end of the previous table. |
Text is '''preformatted''' and ''markups'' '''''cannot''''' be done |
Customized preformatted text |
<pre style="color: red"> Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done </pre> A CSS style can be named within the style attribute.
|
Text is '''preformatted''' with a style and ''markups'' '''''cannot''''' be done |
continued:
Description | You type | You get |
---|---|---|
Default preformatted text has a CSS attribute (white-space: pre-wrap; ) to wrap the text according to available width
|
<pre> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer. </pre> |
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer. |
Customized preformatted text with disabled text wrapping |
<pre style="white-space: pre;"> This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer. </pre> |
This long sentence is used to demonstrate text wrapping. This additional sentence makes the text even longer. This additional sentence makes the text even longer. |