Content deleted Content added
→Permitted HTML: updated links to revised HTML Elements article |
fix links |
||
Line 1:
{{shortcut|H:HTML}}
==Permitted HTML==
The following [[
{| border="0" cellpadding="5" class="plainlinks"
| valign="top"|
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
| valign="top"|
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [http://www.w3.org/TR/1999/WD-ruby-19990322/ <rb>]
* [http://www.w3.org/TR/1999/WD-ruby-19990322/ <rp>]
Line 39:
* [http://www.w3.org/TR/1999/WD-ruby-19990322/ <ruby>]
| valign="top"|
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
* [[
|}
For many HTML elements, more convenient wikitext code is available, see [[Help:Editing]]. On the other hand, HTML tags allow an <tt>id</tt> that can be referenced in one's [[Help:User style|user style]]
Line 106:
== Tags ==
{{mlw|
<code>'''<font>'''</code> is a similar tag which is [[
For example
Line 119:
</source>
See also {{tim|font size demo}} and [[
It's pointless to combine the legacy tag <tt><font></tt>
Line 140:
* <nowiki></div></nowiki> should be preceded by a newline
*<nowiki></div></nowiki> followed by text on the same line, two newlines and text before <nowiki><div></nowiki> on the same line should be avoided (because the two newlines only produce a space)
===HTML comment===
Line 167 ⟶ 145:
*{{xpd|t}}
*"<code><nowiki>{{subst:xpd|t}}</nowiki>"</code> gives "<!--t-->start-pqr-end", producing HTML code without the comment.
The "Remove comments" option of [[mw:Extension:ExpandTemplates|ExpandTemplates]] selects whether comments are removed, not just in the final result but throughout the expansion process. This affects the result of parser functions: a comment in the expression of #expr or in the condition of #ifexpr gives an error message unless "Remove comments" is on, and comments affect #if and #ifeq.
Example:
Line 275 ⟶ 253:
* HTML 4.01 specification: [http://www.w3.org/TR/html401/index/elements.html elements] | [http://www.w3.org/TR/html401/index/attributes.html attributes]
* For customizing the handling of HTML in MediaWiki, see the HTML and Tidy sections in [[mw:Manual:Configuration settings]]
* Some extensions allow adding arbitrary HTML to a page, for example [[mw:Extension:AddHTML]],[[mw:Extension:SecureHTML]] and [[mw:Extension:Secure HTML]]; see [
* Within the MediaWiki codebase, these HTML checks happen in [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Sanitizer.php includes/Sanitizer.php]
|