Important: The GCConnex decommission will not affect GCCollab or GCWiki. Thank you and happy collaborating!

Difference between revisions of "Help:HTML in wikitext"

From wiki
Jump to navigation Jump to search
Line 137: Line 137:
 
|}
 
|}
  
[[Category: GCPEDIA Help|H]]
+
 
 
[[Fr:Aide:Utilisation du HTML dans le wikitext]]
 
[[Fr:Aide:Utilisation du HTML dans le wikitext]]

Revision as of 09:32, 1 June 2018

It is considered good Wikiquette to use wiki syntax instead of HTML. For many HTML elements, more convenient wikitext code is available, see Help:Basic editing Only use HTML when essential.


Permitted HTML

The following HTML elements are currently permitted:

  • <b>
  • <big>
  • <blockquote>
  • <br>
  • <caption>
  • <center>
  • <cite>
  • <code>
  • <dd>
  • <div>
  • <dl>
  • <dt>
  • <em>
  • <font>
  • <h1>
  • <h2>
  • <h3>
  • <h4>
  • <h5>
  • <h6>
  • <hr>
  • <i>
  • <li>
  • <ol>
  • <p>
  • <pre>
  • <rb>
  • <rp>
  • <rt>
  • <ruby>
  • <s>
  • <small>
  • <strike>
  • <strong>
  • <sub>
  • <sup>
  • <table>
  • <td>
  • <th>
  • <tr>
  • <tt>
  • <u>
  • <ul>
  • <var>
  • <!-- ... -->


HTML tags

You can use some HTML tags too. However, you should avoid HTML in favor of Wiki markup whenever possible.

What it looks like What you type

Put text in a typewriter font. The same font is generally used for computer code.

Put text in a <tt>typewriter
font</tt>. The same font is 
generally used for <code>
computer code</code>.

Strike out or underline text, or write it in small caps.

<strike>Strike out</strike>
or <u>underline</u> text,
or write it <span style=
"font-variant:small-caps">
in small caps</span>.

Superscripts and subscripts: X2, H2O

Superscripts and subscripts:
X<sup>2</sup>, H<sub>2</sub>O
Centered text
  • Please note the American spelling of "center".
<center>Centered text</center>

The blockquote command will indent both margins when needed instead of the left margin only as the colon does.

<blockquote>
The '''blockquote''' command will 
indent both margins when needed 
instead of the left margin only 
as the colon does.
</blockquote>

Invisible comments to editors (<!-- -->) only appear while editing the page.

  • If you wish to make comments to the public, you should usually use the talk page.
Invisible comments to editors 
(<!-- -->) only appear 
while editing the page.
<!-- Note to editors: 
blah blah blah. -->