Movatterモバイル変換


[0]ホーム

URL:


Community CentralCommunity Central
Don't have an account?
Register
Sign In
Skip to content
Community Central
41,387
pages
Code image

HTML (HyperText Markup Language) is a language used on websites to format the layout and content. Wiki pages are generally managed bywikitext 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 usingthe editor's source editor.

Available HTML tags[]

The following HTML tags can be used in articles:

  • <abbr>
  • <b>*
  • <bdi>
  • <bdo>
  • <blockquote>
  • <br />
  • <caption>
  • <cite>
  • <code>
  • <data>
  • <dd>*
  • <del>
  • <dfn>
  • <div>
  • <dl>*
  • <dt>*
  • <em>*
  • <h1>*
  • <h2>*
  • <h3>*
  • <h4>*
  • <h5>*
  • <h6>*
  • <hr>*
  • <i>*
  • <ins>
  • <kbd>
  • <li>*
  • <mark>
  • <ol>*
  • <p>*
  • <pre>**
  • <q>
  • <rp>
  • <rt>
  • <ruby>
  • <s>
  • <samp>
  • <small>
  • <span>
  • <strong>
  • <sub>
  • <sup>
  • <table>*
  • <td>*
  • <th>*
  • <time>
  • <tr>*
  • <u>
  • <ul>*
  • <var>
  • <wbr />
  • <!-- -->

*These tags have equivalentwikitext 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[]

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

Deprecated tags
Deprecated tagReplacementExampleExample display
<big><span><span>big</span>big
<center><div><div>Centered</div>
Centered
<font color="x" size="y" face="z"><span><span>Red Alert!</span>Red Alert!
<span>This is Times New Roman</span>This is Times New Roman
<strike>del (for marking an edit)<del>Yes</del> NoYes No
<s> (for anything else)Photon Torpedoes <s>$44.99</s> '''now just $24.99!''' eachPhoton Torpedoes$44.99now just $24.99! each
<tt><code> (preferred for source code)use <code>&nbsp;</code> for nonbreaking spaceuse&nbsp; for nonbreaking space
<kbd> (preferred for user input)<kbd>mypasswd</kbd>mypasswd
<var> (preferred for variables)<var>age</var>=65age=65
<samp> (preferred for computer output)<samp>Invalid password. Please try again.</samp>Invalid password. Please try again.
Similar appearance without special meaning<span>Typed text</span>Typed text
Table cell horizontal alignment:align=X
whereX is"left","center" or"right" (sometimes without quotes)
style="text-align: X;"style="text-align: right;" | right-justified textright-justified text
Table cell vertical alignment:valign=X
whereX is"top","middle" or"bottom" (sometimes without quotes)
style="vertical-align: X;"style="vertical-align: top;" | top aligned texttop aligned text
Table cell background color:bgcolor=Xstyle="background-color: X;"style="background-color: pink" | pink backgroundpink background

Usage notes[]

Keep it friendly
The use ofwikitext 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 intemplates, where they are less likely to get in the way of the casual editor.
Combine it with CSS
Styling information can be stored incommunity CSS pages (using code likeclass="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, particularlytables, table rows and cells. However, please keep in mind thatuse of inline styling should be limited, as it can cause conflicts with the mobile experience of your community.

See also[]

Further help and feedback[]

Community content is available underCC-BY-SA unless otherwise noted.

[8]ページ先頭

©2009-2025 Movatter.jp