Editing Help:HTML in wikitext

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
The [[MediaWiki]] software, which drives A2wiki, allows the use of a subset of [[HTML 5]] [[HTML element|elements]], or tags and their [[HTML attribute|attributes]], for presentation formatting.{{r|sanitizer}} But most HTML can be included by using equivalent [[Help:Wiki markup|wiki markup]] or [[Help:Template|templates]]; these are generally preferred within articles, as they are sometimes simpler for most editors and less intrusive in the editing window; but [[Wikipedia:Manual_of_Style#Keep_markup_simple|Wikipedia's Manual of Style]], which can sort of be used as a general reference even here, recommends their use in certain cases. (See [[Help:Wikitext]] for wiki equivalents to HTML tags not otherwise discussed below.) And HTML is useful outside of articles, for example for formatting within templates. For help with Cascading Style Sheet use within A2wiki see [[Help:Cascading Style Sheets]].
{{Short description|Usage of HTML tags with MediaWiki}}
<noinclude>{{pp-semi-indef|small=yes}}
</noinclude>{{Redirect|WP:HTML|general information about the default markup language on Wikipedia|Wikipedia:HTML 5}}
{{Locutions pages header}}
{{Wikipedia how to|H:HTML|WP:HTML}}
{{Wiki markup}}
{{HTML}}
The [[MediaWiki]] software, which drives Wikipedia, allows the use of a subset of [[HTML 5]] [[HTML element|elements]], or tags and their [[HTML attribute|attributes]], for presentation formatting.{{r|sanitizer}} But most HTML can be included by using equivalent [[Help:Wiki markup|wiki markup]] or [[Help:Template|templates]]; these are generally preferred within articles, as they are sometimes simpler for most editors and less intrusive in the editing window; but [[Wikipedia:Manual_of_Style#Keep_markup_simple|Wikipedia's Manual of Style]] recommends their use in certain cases. (See [[Help:Wikitext]] for wiki equivalents to HTML tags not otherwise discussed below.) And HTML is useful outside of articles, for example for formatting within templates. For help with Cascading Style Sheet use within Wikipedia see [[Help:Cascading Style Sheets]].


Some tags look like HTML, but are actually MediaWiki [[#Parser and extension tags|parser and extension tags]], and so are really wiki markup. HTML in pages can be checked for HTML5 compliance by using [[#Validation|validation]]. Some elements and attributes are supported by MediaWiki and browsers, but have been [[Wikipedia:HTML 5|deprecated by HTML 5]], and therefore should no longer be used.
Some tags look like HTML, but are actually MediaWiki [[#Parser and extension tags|parser and extension tags]], and so are really wiki markup. HTML in pages can be checked for HTML5 compliance by using [[#Validation|validation]]. Some elements and attributes are supported by MediaWiki and browsers, but have been [[Wikipedia:HTML 5|deprecated by HTML 5]], and therefore should no longer be used.
Line 13: Line 20:


Global attributes apply to all tags. Attributes not listed here are not allowed by MediaWiki{{r|sanitizer}}:
Global attributes apply to all tags. Attributes not listed here are not allowed by MediaWiki{{r|sanitizer}}:
* <code>class</code>: one or more classifications to which the element belongs. See [[A2wiki:Catalogue of CSS classes]].
* <code>class</code>: one or more classifications to which the element belongs. See [[Wikipedia:Catalogue of CSS classes]].
* <code>dir</code>: text direction— <code>"ltr"</code> (left-to-right), <code>"rtl"</code> (right-to-left) or <code>"auto"</code>.
* <code>dir</code>: text direction— <code>"ltr"</code> (left-to-right), <code>"rtl"</code> (right-to-left) or <code>"auto"</code>.
* <code>id</code>: unique identifier for the element.
* <code>id</code>: unique identifier for the element.
Line 255: Line 262:
}}
}}


 
{{tag|cite}} is generally not used directly in Wikipedia articles, and is often misused; see [[Wikipedia:HTML 5#cite]] for replacement instructions.


==== code ====
==== code ====
Line 402: Line 409:


==== q ====
==== q ====
{{tag|q}} is used to mark a short quotation.
{{tag|q}} is used to mark a short quotation.  There has been very little implementation of this element in Wikipedia yet.


{{markup
{{markup
Line 409: Line 416:
}}
}}


 
[[MOS:QUOTATIONS]] says Wikipedia should instead use "", {{tl|quote}}, or <nowiki><blockquote></nowiki>.


==== rp, rt, ruby ====
==== rp, rt, ruby ====
Line 471: Line 478:


==== strong ====
==== strong ====
{{tag|strong}} formats a span of text with strong importance or unusual emphasis; in most browsers it renders as boldface.
{{tag|strong}} formats a span of text with strong importance or unusual emphasis; in most browsers it renders as boldface.  This should generally not be used in Wikipedia articles, per [[WP:Neutral point of view]] policy.  See [[MOS:BOLD]] on use of this element and other boldfacing. Most semantic emphasis, including in quoted material, should be rendered with the {{tag|em|o}} element.


{{markup
{{markup
Line 827: Line 834:
* HTML 5.2 specification: [//www.w3.org/TR/html5/fullindex.html#index-elements elements] | [//www.w3.org/TR/html5/fullindex.html#attributes-table attributes]
* HTML 5.2 specification: [//www.w3.org/TR/html5/fullindex.html#index-elements elements] | [//www.w3.org/TR/html5/fullindex.html#attributes-table attributes]


{{Help navigation}}
{{Wikipedia technical help|collapsed}}


[[Category:A2wiki editor help]]
[[Category:A2wiki editor help]]


{{En-WP attribution notice|Help:HTML in wikitext}}
{{En-WP attribution notice|Help:HTML in wikitext}}
Please note that all contributions to A2wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see A2wiki:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Templates used on this page: