Help:HTML in wikitext/zh

MediaWiki可以解析维基文本中的一些HTML标签. 用于其他标签的括号会被转义，这些标签会直接显示而非解析.

弃用的标签
以下标签会被MediaWiki解析，但是在HTML 5中是过时的. 这些表情应该用上面的标签取代. 你可能需要添加一个 属性以复现预期的显示效果.

Anchor
To create a linkable anchor, you can use any HTML tag with an  attribute.

E.g.  allows you to create a link to its location on the page using.

With attribute
Using HTML tag instead of wikitext equivalent allows you to add a  attribute to define a custom display through CSS language.

With and   attributes
Thanks to TemplateStyles, you may add a custom stylesheet to the document. So it is useful to add  or   attributes to the elements you want to customize their display.

HTML comments
Wikitext uses HTML comment syntax for its own comments: the parser ignores them, they are not rendered in resulting HTML source.

tag
The content of a  tag is not parsed, as in a  tag.

You have to use the equivalent wikitext syntax to allow the content parsing. I.e. start each line with a blank space:

Some preformatted text which can contain wikitext, i.e. this idiomatic text will be parsed. Other line.