Content deleted Content added
No edit summary |
restored version to WikiMedia version |
||
Line 1:
{{H:h|editor toc}}
==Permitted HTML==▼
The following [[w:HTML element|HTML element]]s are currently permitted:▼
* [[w:HTML_element#Presentational_markup|<font>]]▼
{| border="0" cellpadding="5"▼
| valign="top"|▼
* [[w:HTML_element#Tables|<caption>]]▼
* [[w:HTML_element#General_phrase_elements|<cite>]]
* [[w:HTML_element#Computer_code_phrase_elements|<code>]]
* [[w:HTML_element#Other_containers|<div>]]▼
* [[w:HTML_element#Headings|<h1>]]
| valign="top"|
Line 10 ⟶ 27:
* [[w:HTML_element#Headings|<h5>]]
* [[w:HTML_element#Headings|<h6>]]
* [[w:HTML_element#
* [[w:HTML_element#
* [[w:HTML_element#Lists|<li>]]
* [[w:
* [[w:HTML_element#
* [[w:HTML_element#
* [http://www.w3.org/TR/1999/WD-ruby-19990322/ <rb>]
* [http://www.w3.org/TR/1999/WD-ruby-19990322/ <rp>]
Line 21 ⟶ 38:
* [http://www.w3.org/TR/1999/WD-ruby-19990322/ <ruby>]
| valign="top"|
* [[w:HTML_element#
* [[w:HTML_element#
* [[w:HTML_element#
* [[w:HTML_element#
* [[w:HTML_element#
* [[w:HTML_element#
* [[w:HTML_element#Tables|<table>]]
* [[w:HTML_element#Tables|<td>]]
Line 33 ⟶ 50:
* [[w:HTML_element#Presentational_markup|<tt>]]
* [[w:HTML_element#Presentational_markup|<u>]]
* [[w:
* [[w:HTML_element#
* [[w:HTML_element#
|}
▲==Permitted HTML==
▲The following [[w:HTML element|HTML element]]s are currently permitted:
The following excerpt from [http://
▲{| border="0" cellpadding="5"
▲| valign="top"|
▲* [[w:HTML_element#Presentational_markup|<b>]]
▲* [[w:HTML_element#Presentational_markup|<big>]]
▲* [[w:HTML_element#Block-level|<blockquote>]]
▲* [[w:HTML_element#Others|<br>]]
▲* [[w:HTML_element#Tables|<caption>]]
▲* [[w:HTML_element#Inline|<code>]]
▲* [[w:HTML_element#Lists|<dd>]]
▲* [[w:HTML_element#Other_containers|<div>]]
▲* [[w:HTML_element#Lists|<dl>]]
▲* [[w:HTML_element#Lists|<dt>]]
▲* [[w:HTML_element#Inline|<em&
▲The following excerpt from [http://cvs.sourceforge.net/viewcvs.py/wikipedia/phpwiki/newcodebase/OutputPage.php OutputPage.php] additionally shows which attributes are allowed.
:'''Update:''' In 1.4rc1, the removeHTMLtags function is located in Parser.php.
Line 62 ⟶ 63:
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 [[Help:User style|user style]] css, and allows the tag to be used as link target.
<br clear="all"><!-- stop floating navbox before pre -->
<pre>
{
);
);
);
);
);
</pre>
: <code><nowiki><a href="
is treated like the wikitext
: <code><nowiki>&lt;a href="
and is therefore displayed as
: <a href="http://meta.wikimedia.org/wiki/Main_Page">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):
: <code><nowiki>[http://meta.wikimedia.org/wiki/Main_Page Main Page]</nowiki></code>
displays as:
: [http://meta.wikimedia.org/wiki/Main_Page Main Page]
==Span==
Line 152 ⟶ 163:
<pre>
a <font
</pre>
giving
a <font
It's pointless to combine the legacy tag <tt><font></tt>
with inline CSS; legacy browsers would ignore the CSS, while
modern browsers support <tt><span></tt> (see above).
==Div==
Line 182 ⟶ 189:
Note that many readers will not have their own css with such lines as ".red {color:red}", so one cannot refer to "the red text above", etc.
==MediaWiki namespace==
In some pages in the MediaWiki namespace HTML does not work, and e.g. <span id=abc> produces the HTML &lt;span id=abc&gt; rendered by the browser as <span id=abc>.
==Style pages==
CSS and JS pages (see [[Help:User style]]) are not interpreted as wikitext, and therefore can have arbitrary HTML.
==External links==
|