HTML/标记
外观
< HTML
HTML 4中所有元素(element)的字母序列表。XHTML 1.0有同样的元素但是属性(attribute)稍有不同。
当前的官方标准是HTML 5 Element清单[1]。
- a
- abbr
- acronym – in most instances use
abbrinstead. See The Accessibility Hat Trick: Getting Abbreviations Right for some advice on using these elements. - address
- (applet – deprecated, use
objectinstead.) - area
- b – use
strongor the CSS propertyfont-weightset to the valueboldinstead. - base
- (basefont – deprecated, set the CSS property
fonton thebodyelement instead.) - bdo
- bgsound Used for inserting background sounds.
- big – the CSS property
font-sizeset to the valuelargeror a percentage greater than 100% may be more appropriate. - blink used to make the text blink (Depreciated).
- blockquote
- body Identifies the main content of a Web Page.
- br – use the
pelement for paragraphs. Use the CSS propertiesmarginandpaddingto increase or decrease the space between paragraphs. Consider using structured elements such as lists or tables instead. - button
- caption
- (center – deprecated, use a
divelement instead and set the CSS propertytext-alignto the valuecenter.) - cite
- code
- col
- colgroup
- dd
- del
- dfn
- (dir – deprecated, use
ul.) - div
- dl
- dt
- em
- fieldset
- (font – deprecated, use the CSS property
font. For finer control use the CSS propertiesfont-style,font-variant,font-weight,font-size,line-heightandfont-family.) - form Creates a form.
- frame Specifies information for one frame.
- frameset – avoid using frames if possible.
- head Contains information about a Web Page.
- hr
- html
- h1
- h2
- h3
- h4
- h5
- h6
- i – use
emor the CSS propertyfont-styleset to the valueitalicinstead. - iframe
- img
- input
- ins
- (isindex – deprecated, use
input.) - kbd
- label
- legend
- li
- link
- map
- (menu – deprecated, use
ul.) - meta
- nobr is a proprietary element type supported by some web browsers. It is used to prevent automatic wrapping of lines.
- noframes
- noscript Specifies what should be done if there is no javascript found on the browser.
- object
- ol
- optgroup
- option
- p
- param
- pre
- q
- (s – deprecated, use
delto indicate deleted text. If the text isn't 'deleted' use the CSS propertytext-decorationset to the valueline-through.) - samp
- script
- select
- small – the CSS property
font-sizeset to the valuesmalleror a percentage less than 100% may be more appropriate. - span
- (strike – deprecated, use
delto indicate deleted text. If the text isn't 'deleted' use the CSS propertytext-decorationset to the valueline-through.) - strong
- style
- sub
- sup
- table
- tbody
- td
- textarea
- tfoot
- th
- thead
- title
- tr
- tt
- (u – deprecated, use the CSS property
text-decorationset to the valueunderlineinstead.) - ul
- var