User:Max34/New: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 6: Line 6:
== HTML Tags ==
== HTML Tags ==
There are a lot of HTML tags. For obvious reasons, many tags do not work on MediaWiki-based sites. Here is a list of tags, do they work on this site and some description
There are a lot of HTML tags. For obvious reasons, many tags do not work on MediaWiki-based sites. Here is a list of tags, do they work on this site and some description
<table class="wikitable">
<table class="wikitable sortable">
<tr>
<tr>
<th>Tag</th>
<th>Tag</th>
Line 13: Line 13:
</tr>
</tr>
<tr>
<tr>
<td style="text-align:center"><code><nowiki><!-- Comment --></nowiki></code></td>
<td style="text-align:center"><code><nowiki><!-- --></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a comment.</td>
<td>Defines a comment.</td>
Line 65: Line 65:
<td style="text-align:center"><code><nowiki><base></nowiki></code></td>
<td style="text-align:center"><code><nowiki><base></nowiki></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Specifies the base URL/target for all relative URLs in a document.<br><b>WARNING</b>: If you use this tag and enter the href attribute into it, this will lead to the site restricting your access. You will not be blocked, the site simply does not allow this part of the code to be on the page.</td>
<td>Specifies the base URL/target for all relative URLs in a document.<br><b>WARNING</b>: If you use this tag and enter the href attribute into it <b>OR</b> somewhere on the page after this tag is specified (even as plain text, even with spaces and even if base tag is wrapped in a nowiki tag), this will lead to the site restricting your access. You will not be blocked, the site simply does not allow this part of the code to be on the page.</td>
</tr>
</tr>
<tr>
<tr>
Line 88: Line 88:
</tr>
</tr>
<tr>
<tr>
<td style="text-align:center"><code><nowiki><body></nowiki></code></td>
<td style="text-align:center"><code><body></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines the document’s body.</td>
<td>Defines the document’s body.</td>
Line 98: Line 98:
</tr>
</tr>
<tr>
<tr>
<td style="text-align:center"><code><nowiki><button></nowiki></code></td>
<td style="text-align:center"><code><button></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a clickable button.</td>
<td>Defines a clickable button.</td>
</tr>
</tr>
<tr>
<tr>
<td style="text-align:center"><code><nowiki><canvas></nowiki></code></td>
<td style="text-align:center"><code><canvas></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Used to draw graphics, on the fly, via scripting.</td>
<td>Used to draw graphics, on the fly, via scripting.</td>
Line 128: Line 128:
</tr>
</tr>
<tr>
<tr>
<td style="text-align:center"><code><nowiki><col></nowiki></code></td>
<td style="text-align:center"><code><col></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Specifies column properties for each column within a <colgroup> element.</td>
<td>Specifies column properties for each column within a <colgroup> element.</td>
</tr>
</tr>
<tr>
<tr>
<td style="text-align:center"><code><nowiki><colgroup></nowiki></code></td>
<td style="text-align:center"><code><colgroup></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Specifies a group of one or more columns in a table for formatting.</td>
<td>Specifies a group of one or more columns in a table for formatting.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><data></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Adds a machine-readable translation of a given content.</td>
</tr>
<tr>
<td style="text-align:center"><code><datalist></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Specifies a list of pre-defined options for input controls.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><dd></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a description/value of a term in a description list.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><del></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines strikethrough text.</td>
</tr>
<tr>
<td style="text-align:center"><code><details></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines additional details that the user can view or hide.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><dfn></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Specifies a term that is going to be defined within the content.</td>
</tr>
<tr>
<td style="text-align:center"><code><dialog></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a dialog box or window.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><div></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a section in a document.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><dl></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a description list.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><dt></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a term/name in a description list.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><em></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines emphasized text.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><embed></nowiki></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a container for an external application.<br><b>WARNING</b>: If you use this tag and enter the src attribute into it <b>OR</b> somewhere on the page after this tag is specified (even as plain text, even with spaces and even if base tag is wrapped in a nowiki tag), this will lead to the site restricting your access. You will not be blocked, the site simply does not allow this part of the code to be on the page.</td>
</tr>
<tr>
<td style="text-align:center"><code><fieldset></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Groups related elements in a form.</td>
</tr>
<tr>
<td style="text-align:center"><code><figcaption></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a caption for a <figure> element.</td>
</tr>
<tr>
<td style="text-align:center"><code><figure></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Specifies self-contained content.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><font></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td><span style="color:red">Not supported in HTML5.</span><br>Defines font, color, and size for text.</td>
</tr>
<tr>
<td style="text-align:center"><code><footer></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a footer for a document or section.</td>
</tr>
<tr>
<td style="text-align:center"><code><form></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines an HTML form for user input.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><h1> to <h6></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines HTML headings.</td>
</tr>
<tr>
<td style="text-align:center"><code><head></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Contains metadata/information for the document.</td>
</tr>
<tr>
<td style="text-align:center"><code><header></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a header for a document or section.</td>
</tr>
<tr>
<td style="text-align:center"><code><hgroup></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a header and related content.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><hr></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Creates a horizontal line.</td>
</tr>
<tr>
<td style="text-align:center"><code><html></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines the root of an HTML document.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><i></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Makes the content italic.</td>
</tr>
<tr>
<td style="text-align:center"><code><iframe></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines an inline frame.</td>
</tr>
<tr>
<td style="text-align:center"><code><img></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines an image.<br>Doesn’t work because MediaWiki-based sites use their own image system using square brackets.</td>
</tr>
<tr>
<td style="text-align:center"><code><input></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines an input control.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><ins></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a text that has been inserted into a document.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><kbd></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines keyboard input.</td>
</tr>
<tr>
<td style="text-align:center"><code><label></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a label for an <input> element.</td>
</tr>
<tr>
<td style="text-align:center"><code><legend></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a caption for a <fieldset> element.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><li></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a list item.</td>
</tr>
<tr>
<td style="text-align:center"><code><link></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines the relationship between a document and an external resource.</td>
</tr>
<tr>
<td style="text-align:center"><code><main></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Specifies the main content of a document.</td>
</tr>
<tr>
<td style="text-align:center"><code><map></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines an image map.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><mark></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines marked/highlighted text.</td>
</tr>
<tr>
<td style="text-align:center"><code><menu></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines an unordered list.</td>
</tr>
<tr>
<td style="text-align:center"><code><meta></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines metadata about an HTML document.</td>
</tr>
<tr>
<td style="text-align:center"><code><meter></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a scalar measurement within a known range (a gauge).</td>
</tr>
<tr>
<td style="text-align:center"><code><nav></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines navigation links.</td>
</tr>
<tr>
<td style="text-align:center"><code><noscript></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines an alternate content for users that do not support client-side scripts.</td>
</tr>
<tr>
<td style="text-align:center"><code><object></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a container for an external application.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><ol></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines an ordered list.</td>
</tr>
<tr>
<td style="text-align:center"><code><optgroup></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a group of related options in a drop-down list.</td>
</tr>
<tr>
<td style="text-align:center"><code><option></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines an option in a drop-down list.</td>
</tr>
<tr>
<td style="text-align:center"><code><output></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines the result of a calculation.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><p></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a paragraph.</td>
</tr>
<tr>
<td style="text-align:center"><code><param></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a parameter for an object.</td>
</tr>
<tr>
<td style="text-align:center"><code><picture></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a container for multiple image resources.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><pre></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines preformatted text.</td>
</tr>
<tr>
<td style="text-align:center"><code><progress></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Represents the progress of a task.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><q></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a short quotation.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><rp></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines what to show in browsers that do not support ruby annotations.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><rt></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines an explanation/pronunciation of characters (for East Asian typography).</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><ruby></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a ruby annotation (for East Asian typography).</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><s></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines text that is no longer correct.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><samp></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines sample output from a computer program.</td>
</tr>
<tr>
<td style="text-align:center"><code><script></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a client-side script.</td>
</tr>
<tr>
<td style="text-align:center"><code><search></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a search section.</td>
</tr>
<tr>
<td style="text-align:center"><code><section></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a section in a document.</td>
</tr>
<tr>
<td style="text-align:center"><code><select></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a drop-down list.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><small></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines smaller text.</td>
</tr>
<tr>
<td style="text-align:center"><code><source></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines multiple media resources for media elements (<video> and <audio>).</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><span></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a section in a document.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><strike></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td><span style="color:red">Not supported in HTML5. Use <nowiki><del> or <s></nowiki> instead.</span><br>Defines strikethrough text.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><strong></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines important text.</td>
</tr>
<tr>
<td style="text-align:center"><code><style></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines style information for a document.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><sub></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines subscripted text.</td>
</tr>
<tr>
<td style="text-align:center"><code><summary></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a visible heading for a <details> element.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><sup></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines superscripted text.</td>
</tr>
<tr>
<td style="text-align:center"><code><svg></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a container for SVG graphics.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><table></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a table.</td>
</tr>
<tr>
<td style="text-align:center"><code><tbody></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Groups the body content in a table.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><td></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a cell in a table.</td>
</tr>
<tr>
<td style="text-align:center"><code><template></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a container for content that should be hidden when the page loads.</td>
</tr>
<tr>
<td style="text-align:center"><code><textarea></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a multiline input control (text area).</td>
</tr>
<tr>
<td style="text-align:center"><code><tfoot></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Groups the footer content in a table.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><th></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a header cell in a table.</td>
</tr>
<tr>
<td style="text-align:center"><code><thead></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Groups the header content in a table.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><time></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a specific time (or datetime).</td>
</tr>
<tr>
<td style="text-align:center"><code><title></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines a title for the document.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><tr></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a row in a table.</td>
</tr>
<tr>
<td style="text-align:center"><code><track></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines text tracks for media elements (<video> and <audio>).</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><tt></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td><span style="color:red">Not supported in HTML5.</span><br>Defines teletype text.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><u></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Emphasizes text.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><ul></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines an unordered list.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><var></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a variable.</td>
</tr>
<tr>
<td style="text-align:center"><code><video></code></td>
<td style="background:red; color:white; text-align:center">No</td>
<td>Defines embedded video content.</td>
</tr>
<tr>
<td style="text-align:center"><code><nowiki><wbr></nowiki></code></td>
<td style="background:green; color:white; text-align:center">Yes</td>
<td>Defines a possible line-break. Can be used instead of <code>&amp;shy;</code></td>
</tr>
</tr>
</table>
</table>
== HTML classes ==


== Inline CSS ==
== Inline CSS ==

Revision as of 15:26, 8 May 2025

Experimental page for developing and testing new standards and also to understand the capabilities of this site.

Don't Use Them: Until these standards are sufficiently refined and accepted by the community, don’t use them.

HTML Tags

There are a lot of HTML tags. For obvious reasons, many tags do not work on MediaWiki-based sites. Here is a list of tags, do they work on this site and some description

Tag It works? Description
<!-- … --> Yes Defines a comment.
<!DOCTYPE> No Defines the document type.
<a> No Defines a hyperlink.
Doesn’t work because MediaWiki-based sites use their own linking system using square brackets.
<abbr> Yes Defines an abbreviation or an acronym.
Adds a dotted underline and changes the cursor to a question mark cursor on hover.
<address> No Defines contact information for the author/owner of a document.
<area> No Defines an area inside an image map.
<article> No Defines an article.
<aside> No Defines content aside from the page content.
<audio> No Defines embedded sound content.
<b> Yes Defines bold text.
<base> No Specifies the base URL/target for all relative URLs in a document.
WARNING: If you use this tag and enter the href attribute into it OR somewhere on the page after this tag is specified (even as plain text, even with spaces and even if base tag is wrapped in a nowiki tag), this will lead to the site restricting your access. You will not be blocked, the site simply does not allow this part of the code to be on the page.
<bdi> Yes Isolates a part of text that might be formatted in a different direction from other text outside it.
<bdo> Yes Overrides the current text direction.
<big> Yes Not supported in HTML5.
Defines big text.
<blockquote> Yes Defines a section that is quoted from another source.
<body> No Defines the document’s body.
<br> Yes Defines a single line break.
<button> No Defines a clickable button.
<canvas> No Used to draw graphics, on the fly, via scripting.
<caption> Yes Defines a table caption.
Notice: This tag has a dark text color that blends with the background.
<center> Yes Not supported in HTML5.
Defines centered text.
<cite> Yes Defines the title of a work.
<code> Yes Defines a piece of computer code.
<col> No Specifies column properties for each column within a <colgroup> element.
<colgroup> No Specifies a group of one or more columns in a table for formatting.
<data> Yes Adds a machine-readable translation of a given content.
<datalist> No Specifies a list of pre-defined options for input controls.
<dd> Yes Defines a description/value of a term in a description list.
<del> Yes Defines strikethrough text.
<details> No Defines additional details that the user can view or hide.
<dfn> Yes Specifies a term that is going to be defined within the content.
<dialog> No Defines a dialog box or window.
<div> Yes Defines a section in a document.
<dl> Yes Defines a description list.
<dt> Yes Defines a term/name in a description list.
<em> Yes Defines emphasized text.
<embed> No Defines a container for an external application.
WARNING: If you use this tag and enter the src attribute into it OR somewhere on the page after this tag is specified (even as plain text, even with spaces and even if base tag is wrapped in a nowiki tag), this will lead to the site restricting your access. You will not be blocked, the site simply does not allow this part of the code to be on the page.
<fieldset> No Groups related elements in a form.
<figcaption> No Defines a caption for a <figure> element.
<figure> No Specifies self-contained content.
<font> Yes Not supported in HTML5.
Defines font, color, and size for text.
<footer> No Defines a footer for a document or section.
<form> No Defines an HTML form for user input.
<h1> to <h6> Yes Defines HTML headings.
<head> No Contains metadata/information for the document.
<header> No Defines a header for a document or section.
<hgroup> No Defines a header and related content.
<hr> Yes Creates a horizontal line.
<html> No Defines the root of an HTML document.
<i> Yes Makes the content italic.
<iframe> No Defines an inline frame.
<img> No Defines an image.
Doesn’t work because MediaWiki-based sites use their own image system using square brackets.
<input> No Defines an input control.
<ins> Yes Defines a text that has been inserted into a document.
<kbd> Yes Defines keyboard input.
<label> No Defines a label for an <input> element.
<legend> No Defines a caption for a <fieldset> element.
<li> Yes Defines a list item.
<link> No Defines the relationship between a document and an external resource.
<main> No Specifies the main content of a document.
<map> No Defines an image map.
<mark> Yes Defines marked/highlighted text.
<menu> No Defines an unordered list.
<meta> No Defines metadata about an HTML document.
<meter> No Defines a scalar measurement within a known range (a gauge).
<nav> No Defines navigation links.
<noscript> No Defines an alternate content for users that do not support client-side scripts.
<object> No Defines a container for an external application.
<ol> Yes Defines an ordered list.
<optgroup> No Defines a group of related options in a drop-down list.
<option> No Defines an option in a drop-down list.
<output> No Defines the result of a calculation.
<p> Yes Defines a paragraph.
<param> No Defines a parameter for an object.
<picture> No Defines a container for multiple image resources.
<pre> Yes Defines preformatted text.
<progress> No Represents the progress of a task.
<q> Yes Defines a short quotation.
<rp> Yes Defines what to show in browsers that do not support ruby annotations.
<rt> Yes Defines an explanation/pronunciation of characters (for East Asian typography).
<ruby> Yes Defines a ruby annotation (for East Asian typography).
<s> Yes Defines text that is no longer correct.
<samp> Yes Defines sample output from a computer program.
<script> No Defines a client-side script.
<search> No Defines a search section.
<section> No Defines a section in a document.
<select> No Defines a drop-down list.
<small> Yes Defines smaller text.
<source> No Defines multiple media resources for media elements (<video> and <audio>).
<span> Yes Defines a section in a document.
<strike> Yes Not supported in HTML5. Use <del> or <s> instead.
Defines strikethrough text.
<strong> Yes Defines important text.
<style> No Defines style information for a document.
<sub> Yes Defines subscripted text.
<summary> No Defines a visible heading for a <details> element.
<sup> Yes Defines superscripted text.
<svg> No Defines a container for SVG graphics.
<table> Yes Defines a table.
<tbody> No Groups the body content in a table.
<td> Yes Defines a cell in a table.
<template> No Defines a container for content that should be hidden when the page loads.
<textarea> No Defines a multiline input control (text area).
<tfoot> No Groups the footer content in a table.
<th> Yes Defines a header cell in a table.
<thead> No Groups the header content in a table.
<time> Yes Defines a specific time (or datetime).
<title> No Defines a title for the document.
<tr> Yes Defines a row in a table.
<track> No Defines text tracks for media elements (<video> and <audio>).
<tt> Yes Not supported in HTML5.
Defines teletype text.
<u> Yes Emphasizes text.
<ul> Yes Defines an unordered list.
<var> Yes Defines a variable.
<video> No Defines embedded video content.
<wbr> Yes Defines a possible line-break. Can be used instead of &shy;

HTML classes

Inline CSS