HTML/標記
外觀
< HTML
HTML 4中所有元素(element)的字母序列表。XHTML 1.0有同樣的元素但是屬性(attribute)稍有不同。
當前的官方標準是HTML 5 Element清單[1]。
- a
- abbr
- acronym – in most instances use
abbr
instead. See The Accessibility Hat Trick: Getting Abbreviations Right for some advice on using these elements. - address
- (applet – deprecated, use
object
instead.) - area
- b – use
strong
or the CSS propertyfont-weight
set to the valuebold
instead. - base
- (basefont – deprecated, set the CSS property
font
on thebody
element instead.) - bdo
- bgsound Used for inserting background sounds.
- big – the CSS property
font-size
set to the valuelarger
or 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
p
element for paragraphs. Use the CSS propertiesmargin
andpadding
to increase or decrease the space between paragraphs. Consider using structured elements such as lists or tables instead. - button
- caption
- (center – deprecated, use a
div
element instead and set the CSS propertytext-align
to 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-height
andfont-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
em
or the CSS propertyfont-style
set to the valueitalic
instead. - 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
del
to indicate deleted text. If the text isn't 'deleted' use the CSS propertytext-decoration
set to the valueline-through
.) - samp
- script
- select
- small – the CSS property
font-size
set to the valuesmaller
or a percentage less than 100% may be more appropriate. - span
- (strike – deprecated, use
del
to indicate deleted text. If the text isn't 'deleted' use the CSS propertytext-decoration
set 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-decoration
set to the valueunderline
instead.) - ul
- var