HTML tags classification summary

Block elements and inline elements
block elements
address - the address
blockquote - block reference
center - For align block
dir - directory list
div - Common block level easily, the main label is css layout of
dl - definition list
fieldset - form a control group
form - interactive forms
h1 - headline
h2 - subtitle
h3 - level 3 heading
h4 - level 4 heading
h5 - 5 level heading
h6 - 6 level heading
hr - horizontal rule
ISINDEX - the INPUT prompt
the mENU - menu list
noframes - frames optional content, ( do not support frame of the browser displays the contents of this block
noscript -) optional script content (does not support script browsers display this content)
OL - ordering form
p - paragraphs
pre - formatted text
table - table
ul - non-Sort a list of
inline elements
a - anchor
abbr - abbreviated
acronym - the first word
b - bold (not recommended)
BDO - BIDI the override
big - big Font
br - wrap
cite - a reference
code - computer code (required when referring to the source code)
DFN - defined fields
em - emphasize
font - font set (not recommended)
i - italic
img - Picture
input - input box
kbd - defined keyboard text
label - table tags
Q - short cited
s - underlined (not recommended)
SAMP - defined sample computer code
select - select item
small - small font text
span - used within an associated container, the definition of the text block
Strike - underlined
strong - highlighted in bold
sub - subscript
sup - superscript
textarea - multi-line text entry box
tt - teletext
u - underlined
var - definition of variables
of the variable element
of the variable element is determined according to the element or elements context blocks inline element.

applet - the Java applet
the Button - Button
del - delete text
iframes. - inline Frame
INS - insert text
map - picture block (the Map)
Object - Object Object
script - client-side scripting
phrase Label
Label description
<em> rendered as emphasized text .
<strong> define the important text.
<dfn> define a custom item.
<code> defined text computer code.
<samp> define the sample text.
<kbd> defined text keyboard. It represents the text is typed from the keyboard.
It is often used in documentation or manuals related to computers.
<var> is defined variables. You can use this tag with <pre> and <code> tag used in conjunction.

自结束标签
<!DOCTYPE>
<br>
<hr>
<input>
<frame>
<img>
<area>
<col>
<meta>
<base>
<param>

H5不支持的标签
<acronym>
<strke>
<big>
<center>
<font>
<tt>
<frame>
<frameset>
<noframes>
<dir>
<menu>
<basefont>
<applet>

H4 Unsupported tag
<Article This article was> ·
<Center> · obsolete
<font> · obsolete
<u> · obsolete
<s> · obsolete
<dir> · obsolete
<menu> obsolete
<basefont> obsolete
< applet> obsolete

Does not support all of the tag attributes and the global event attribute of
<html>
only supports HTML Global attributes and H5 new manifest attribute
<title>
only supports HTML Global attributes
<! --...-->
comment tags are not supported any global attributes and event attributes.
<acronym>
H4 only support portion (7) global attributes and 10 event attribute
<Big>
H4 only support portion (7) global attributes and 10 event attribute
<Center>
H4 only support portion (6) global attributes and 10 event attribute
<font>
font attributes: face, size, color, H5 is not supported, obsolete H4
H4 to support the same as above six global properties, it does not support any event attributes.
<Strike>
H4 only support portion (6) and 10 global attributes event attribute
<tt>
Support in the seven H4 global attributes and event attribute 10
<frame>
have optional attributes, H5 is not supported, H4 supported 4 standard attributes, does not support any event attributes. But all browsers support onload event.
<frameset>
optional attribute: cols, rows
standard attributes supported by H4: class, the above mentioned id, style, title
H4 supports event attributes: the onload, onUnload
<noframe>

<dir>
has its own attributes: compact, H5 does not support, H4 obsolete.
H4 in support of six standard attributes, 10 event properties.
<head>
has its own attributes: profile, value: URL, a series of rules for document URL, the browser these rules can be identified and accurately read the content attribute tags in. H5 is not supported.
Only supports all global attributes
<meta>
has its own attributes, event attributes only support
<base>
has its own attributes, only supports the global attributes
<basefont>
has its own attributes: color, face and size properties. H5 is not supported, H4 obsolete.
H4 only supports six standard attributes. It does not support any event attributes.
<script>
has its own attributes, only supports the global attributes
<noscript>
only supports all global attributes
<applet>
has its own attributes.
H4 4 only supports the global attributes.
In addition to HTML Global attributes and event properties have their own attributes
<hr>
supports HTML Global and event attributes, but it align, noshade, size and width attributes, H5 does not support, H4 obsolete
<body>
supports HTML Global and events property, but its rendering attributes, H5 does not support, H4 obsolete
<h1> ~ <h6> and <p>

< blockquote>

<del>
Attribute Value

<ins>
同del
<progress>

<q>

<time>

<form>
<the INPUT>
<the TextArea>
<the Button>
<the SELECT>
<optgroup>
<the Option>
<label>
<fieldset>
<Legend>
supports HTML Global and event attributes, but they align attribute, H5 does not support, H4 has waste
<DataList>
<keygen>
<Output>
<IMG>
the HTML5 not support the following properties: align, border, hspace, longdesc , vspace.
HTML 4.01, the following attributes: align, border, hspace, vspace obsolete.

Four labels audio / video
links and a Link
<li>
has its own attributes: value, type; H5 does not support, H4 obsolete.
<the MENU>
<the Command>
<the Table>
has its own attributes: H5 only support border attribute (specified table cell if there is a border), other attributes align, bgcolor, cellspacing, cellpadding, frame, rules, summary and width, etc. H5 is not supported.
<caption>
has its own attributes: align, H5 does not support, H4 obsolete.
<th>

<tr>
has its own attributes: align, char, charoff, valign attribute H5 is not supported. H5 bgcolor attribute is not supported. H4 is obsolete.
<td>
has its own attributes: colspan, headers and rowspan; bgcolor, height, nowrap, and width attributes, H5 does not support, H4 obsolete; several other H5 is not supported.
<thead>
has its own attributes: align, char, charoff H5 and valign attributes are not supported.
<tfoot>
has its own attributes: align, char, charoff H5 and valign attributes are not supported.
<col>
has its own attributes: align, char, charoff, span , width and valign attributes H5 is not supported.
<colgroup>
has its own attributes: align, char, charoff, span , width and valign attributes H5 is not supported.
<style>
has its own attributes, which scoped attributes only Firefox support.
<div>
has its own attributes: align attribute, H5 does not support, H4 obsolete.
<details>
has its own new properties H5 Open
<Dialog>
has its own new properties H5 Open
<embed>
has its own four H5 new property
<object>
Has its own attributes: align, border, hspace and vspace attributes H5 does not support, H4 obsolete; archive, classid, codebase, codetype , declare and standbyH5 not supported; data, height, name, type , usemap and width can be used; form H5 is a new property.
<param>
has its own attributes
----------------
Disclaimer: This article is CSDN blogger original article "Guess where" follow CC 4.0 BY-SA copyright agreement, reproduced attach the original source link and this statement.
Original link: https: //blog.csdn.net/sinat_20568267/article/details/100595029

Guess you like

Origin www.cnblogs.com/superjishere/p/11518669.html