Ordered by Function
- NN: indicates the earliest version of Netscape that supports the tag
- IE: indicates the earliest version of Internet Explorer that supports the tag
- DTD: indicates in which XHTML 1.0 DTD the tag is allowed. S=Strict, T=Transitional, and F=Frameset
Start tag | Purpose | NN | IE | DTD |
---|---|---|---|---|
Basic Tags | ||||
<!DOCTYPE> | Defines the document type | STF | ||
<html> | Defines an html document | 3.0 | 3.0 | STF |
<body> | Defines the body element | 3.0 | 3.0 | STF |
<h1> to <h6> | Defines header 1 to header 6 | 3.0 | 3.0 | STF |
<p> | Defines a paragraph | 3.0 | 3.0 | STF |
<br> | Inserts a single line break | 3.0 | 3.0 | STF |
<hr> | Defines a horizontal rule | 3.0 | 3.0 | STF |
<!--...--> | Defines a comment | 3.0 | 3.0 | STF |
Char Format | ||||
<b> | Defines bold text | 3.0 | 3.0 | STF |
<font> | Deprecated. Defines text font, size, and color | 3.0 | 3.0 | TF |
<i> | Defines italic text | 3.0 | 3.0 | STF |
<em> | Defines emphasized text | 3.0 | 3.0 | STF |
<big> | Defines big text | 3.0 | 3.0 | STF |
<strong> | Defines strong text | 3.0 | 3.0 | STF |
<small> | Defines small text | 3.0 | 3.0 | STF |
<sup> | Defines superscripted text | 3.0 | 3.0 | STF |
<sub> | Defines subscripted text | 3.0 | 3.0 | STF |
<bdo> | Defines the direction of text display | 6.2 | 5.0 | STF |
<u> | Deprecated. Defines underlined text | 3.0 | 3.0 | TF |
Output | ||||
<pre> | Defines preformatted text | 3.0 | 3.0 | STF |
<code> | Defines computer code text | 3.0 | 3.0 | STF |
<tt> | Defines teletype text | 3.0 | 3.0 | STF |
<kbd> | Defines keyboard text | 3.0 | 3.0 | STF |
<var> | Defines a variable | 3.0 | 3.0 | STF |
<dfn> | Defines a definition term | 3.0 | STF | |
<samp> | Defines sample computer code | 3.0 | 3.0 | STF |
<xmp> | Deprecated. Defines preformatted text | 3.0 | 3.0 | |
Blocks | ||||
<acronym> | Defines an acronym | 6.2 | 4.0 | STF |
<abbr> | Defines an abbreviation | 6.2 | STF | |
<address> | Defines an address element | 4.0 | 4.0 | STF |
<blockquote> | Defines a long quotation | 3.0 | 3.0 | STF |
<center> | Deprecated. Defines centered text | 3.0 | 3.0 | TF |
<q> | Defines a short quotation | 6.2 | 4.0 | STF |
<cite> | Defines a citation | 3.0 | 3.0 | STF |
<ins> | Defines inserted text | 6.2 | 4.0 | STF |
<del> | Defines deleted text | 6.2 | 4.0 | STF |
<s> | Deprecated. Defines strikethrough text | 3.0 | 3.0 | TF |
<strike> | Deprecated. Defines strikethrough text | 3.0 | 3.0 | TF |
Links | ||||
<a> | Defines an anchor | 3.0 | 3.0 | STF |
<link> | Defines a resource reference | 4.0 | 3.0 | STF |
Frames | ||||
<frame> | Defines a sub window (a frame) | 3.0 | 3.0 | F |
<frameset> | Defines a set of frames | 3.0 | 3.0 | F |
<noframes> | Defines a noframe section | 3.0 | 3.0 | TF |
<iframe> | Defines an inline sub window (frame) | 6.0 | 4.0 | TF |
Input | ||||
<form> | Defines a form | 3.0 | 3.0 | STF |
<input> | Defines an input field | 3.0 | 3.0 | STF |
<textarea> | Defines a text area | 3.0 | 3.0 | STF |
<button> | Defines a push button | 6.2 | 4.0 | STF |
<select> | Defines a selectable list | 3.0 | 3.0 | STF |
<optgroup> | Defines an option group | 6.0 | 6.0 | STF |
<option> | Defines an item in a list box | 3.0 | 3.0 | STF |
<label> | Defines a label for a form control | 6.2 | 4.0 | STF |
<fieldset> | Defines a fieldset | 6.2 | 4.0 | STF |
<legend> | Defines a title in a fieldset | 6.2 | 4.0 | STF |
<isindex> | Deprecated. Defines a single-line input field | 3.0 | 3.0 | TF |
Lists | ||||
<ul> | Defines an unordered list | 3.0 | 3.0 | STF |
<ol> | Defines an ordered list | 3.0 | 3.0 | STF |
<li> | Defines a list item | 3.0 | 3.0 | STF |
<dir> | Deprecated. Defines a directory list | 3.0 | 3.0 | TF |
<dl> | Defines a definition list | 3.0 | 3.0 | STF |
<dt> | Defines a definition term | 3.0 | 3.0 | STF |
<dd> | Defines a definition description | 3.0 | 3.0 | STF |
<menu> | Deprecated. Defines a menu list | 3.0 | 3.0 | TF |
Images | ||||
<img> | Defines an image | 3.0 | 3.0 | STF |
<map> | Defines an image map | 3.0 | 3.0 | STF |
<area> | Defines an area inside an image map | 3.0 | 3.0 | STF |
Tables | ||||
<table> | Defines a table | 3.0 | 3.0 | STF |
<caption> | Defines a table caption | 3.0 | 3.0 | STF |
<th> | Defines a table header | 3.0 | 3.0 | STF |
<tr> | Defines a table row | 3.0 | 3.0 | STF |
<td> | Defines a table cell | 3.0 | 3.0 | STF |
<thead> | Defines a table header | 4.0 | STF | |
<tbody> | Defines a table body | 4.0 | STF | |
<tfoot> | Defines a table footer | 4.0 | STF | |
<col> | Defines attributes for table columns | 3.0 | STF | |
<colgroup> | Defines groups of table columns | 3.0 | STF | |
Styles | ||||
<style> | Defines a style definition | 4.0 | 3.0 | STF |
<div> | Defines a section in a document | 3.0 | 3.0 | STF |
<span> | Defines a section in a document | 4.0 | 3.0 | STF |
Meta Info | ||||
<head> | Defines information about the document | 3.0 | 3.0 | STF |
<title> | Defines the document title | 3.0 | 3.0 | STF |
<meta> | Defines meta information | 3.0 | 3.0 | STF |
<base> | Defines a base URL for all the links in a page | 3.0 | 3.0 | STF |
<basefont> | Deprecated. Defines a base font | 3.0 | 3.0 | TF |
Programming | ||||
<script> | Defines a script | 3.0 | 3.0 | STF |
<noscript> | Defines a noscript section | 3.0 | 3.0 | STF |
<applet> | Deprecated. Defines an applet | 2.0 | 3.0 | TF |
<object> | Defines an embedded object | 3.0 | STF | |
<param> | Defines a parameter for an object | 3.0 | 3.0 | STF |
来源:https://www.cnblogs.com/flame/archive/2006/05/09/394664.html