必須要素・インライン要素

HTMLの必須要素

HTML O O (HEAD, BODY)

document root element. . .

属性
属性属性値の型必須?注釈
lang%LanguageCode;#IMPLIEDlanguage code
dir(ltr|rtl)#IMPLIEDdirection for weak/neutral text
% head.content "TITLE & BASE?"
% head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements
HEAD O O (%head.content;) +(%head.misc;)

document head . . .

属性
属性属性値の型省略時値 注釈
lang%LanguageCode;#IMPLIEDlanguage code
dir(ltr|rtl)#IMPLIEDdirection for weak/neutral text //lang, dir
profile%URI;#IMPLIEDnamed dictionary of meta info
BODY O O (%block;|SCRIPT)+ +(INS|DEL)

document body. . .

属性
属性属性値の型省略時値 注釈
onload%Script;#IMPLIED the document has been loaded
onunload%Script;#IMPLIEDthe document has been removed

インライン要素

covers inline or "text-level" elements

インライン要素はその性質から以下のように分けられます。

文字データ

DTDでは#PCDATA (Parsed Character Data)となっています。JIS X 4151 用語の定義より引用すると

構文解析され,マークが認知されている文の内容中に出現する0個以上の文字であって, 解析中にマークとして認知されないので,データ文字として分類されるもの

とりあえずは< >で括られていない部分の文字ということでしょうか? 言い換えればマークアップする前のテキスト。

フォントスタイル

%fontstyle - - (%inline;)*

フォントスタイル・タイプの要素は以下の五種類があります。

語句の修飾

phrase - - (%inline;)*

語句の意味をマークアップするための要素は以下の十種類が用意されています。

%special

特徴のあるインライン要素です。

A - - (%inline;)* -(A)

anchor. . .アンカー

属性
属性属性値の型必須?注釈
charset%Charset;#IMPLIEDchar encoding of linked resourced
type%ContentType;#IMPLIEDadvisory content typed
nameCDATA#IMPLIEDnamed link end
href%URI;#IMPLIED URI for linked resource
hreflang%LanguageCode;#IMPLIEDlanguage code
rel%LinkTypes;#IMPLIEDforward link types
rev%LinkTypes;#IMPLIEDreverse link types
accesskey%Character;#IMPLIEDaccessibility key character
shape%Shape;rectfor use with client-side image maps
coords%Coords;#IMPLIEDfor use with client-side image maps
tabindexNUMBER#IMPLIEDposition in tabbing order
onfocus%Script;#IMPLIEDthe element got the focus
onblur%Script;#IMPLIEDthe element lost the focus
IMG - O ENPTY

Embedded image. . .埋め込み画像

属性
属性属性値の型必須?注釈
src%URI;#REQUIREDURI of image to embed
alt%Text;#REQUIREDshort description
longdesc%URI;#IMPLIEDlink to long description (complements alt)
height%Length;#IMPLIEDoverride height
width%Length;#IMPLIEDoverride width
usemap%URI;#IMPLIEDuse client-side image map
ismap(ismap)#IMPLIEDuse server-side image map
OBJECT (PARAM | %flow;)*

generic embedded object. . .オブジェクト

属性
属性属性値の型必須?注釈
declare (declare)#IMPLIEDdeclare but don't instantiate flag
classid%URI;#IMPLIEDidentifies an implementation
codebase%URI;#IMPLIEDbase URI for classid, data, archive
data%URI;#IMPLIEDreference to object's data
type%ContentType;#IMPLIEDcontent type for data
codetype%ContentType;#IMPLIEDcontent type for code
archive%URI;#IMPLIEDspace separated archive list
standby%Text;#IMPLIEDmessage to show while loading
height%Length;#IMPLIEDoverride height
width%Length;#IMPLIEDoverride width
usemap%URI;#IMPLIEDuse client-side image map
nameCDATA#IMPLIEDsubmit as part of form
tabindexNUMBER#IMPLIEDposition in tabbing order
BR - O EMPTY

forced line break. . .改行

SCRIPT - - %Script;

script statements. . .スクリプト

属性
属性属性値の型必須?注釈
charset%Charset;#IMPLIEDchar encoding of linked resource
type%ContentType;#REQUIREDcontent type of script language
src%URI;#IMPLIEDURI for an external script
defer(defer)#IMPLIEDUA may defer execution of script
eventCDATA#IMPLIEDreserved for possible future use
for%URI;#IMPLIEDreserved for possible future use
MAP - - ((%block;)+ | AREA+)

client-side image map. . .クライアント側のイメージマップ

画像マップ。

属性
属性属性値の型必須?注釈
nameCDATA#REQUIREDfor reference by usemap
Q - - (%inline;)*

short inline quotation. . .引用句

属性
属性属性値の型必須?注釈
cite%URI;#IMPLIEDURI for source document or msg
SUB - - (%inline;)*

subscript. . .下付文字

SUP - - (%inline;)*

superscript. . .上付文字

SPAN - - (%inline;)*
 

generic language/style container. . .スタイル用の入れ物

BDO - - (%inline;)*

I18N BiDi over-ride. . .言語や書字方向の再指定

属性
属性属性値の型必須?注釈
lang%LanguageCode;#IMPLIEDlanguage code
dir(ltr|rtl)#REQUIREDdirectionality

%formctrl

INPUT - O EMPTY

form control. . .

属性
属性属性値の型必須?注釈
type%InputType;TEXTwhat kind of widget is needed --
nameCDATA#IMPLIEDsubmit as part of form
valueCDATA#IMPLIEDrequired for radio and checkboxes
checkedchecked#IMPLIEDfor radio buttons and check boxes
disabled(disabled)#IMPLIEDunavailable in this context
readonly(readonly)#IMPLIEDfor text and passwd
sizeCDATA#IMPLIEDspecific to each type of field
maxlengthNUMBER#IMPLIEDmax chars for text fields
src%URI;#IMPLIEDfor fields with images
altCDATA#IMPLIEDshort description
usemap %URI;#IMPLIEDuse client-side image map
tabindex NUMBER#IMPLIEDposition in tabbing order
accesskey%Character;#IMPLIEDaccessibility key character
onfocus%Script;#IMPLIEDthe element got the focus
onblur%Script;#IMPLIEDthe element lost the focus
onselect%Script;#IMPLIEDsome text was selected
onchange%Script;#IMPLIEDthe element value was changed
accept%ContentTypes;#IMPLIED list of MIME types for file upload
%reserved;reserved for possible future use
SELECT - - (OPTGROUP|OPTION)+

option selector. . .

属性
属性属性値の型必須?注釈
nameCDATA#IMPLIEDfield name
sizeNUMBER#IMPLIEDrows visible
multiple(multiple)#IMPLIEDdefault is single selection
disabled(disabled)#IMPLIEDunavailable in this context
tabindex NUMBER#IMPLIEDposition in tabbing order
onfocus%Script;#IMPLIEDthe element got the focus
onblur%Script;#IMPLIEDthe element lost the focus
onchange%Script;#IMPLIEDthe element value was changed
%reserved;reserved for possible future use
TEXTAREA - - (#PCDATA)

multi-line text field. . .

属性
属性属性値の型必須?注釈
nameCDATA#IMPLIED
rowsNUMBER#REQUIRED
colsNUMBER#REQUIRED
disabled(disabled)#IMPLIEDunavailable in this context
readonly(readonly)#IMPLIED
tabindexNUMBER#IMPLIEDposition in tabbing order
accesskey%Character;#IMPLIEDaccessibility key character
onfocus%Script;#IMPLIEDthe element got the focus
onblur%Script;#IMPLIEDthe element lost the focus
onselect%Script;#IMPLIEDsome text was selected
onchange%Script;#IMPLIEDthe element value was changed
LABEL - - (%inline;)* -(LABEL)

form field label text (Each label must not contain more than ONE field). . .

属性
属性属性値の型必須?注釈
forIDREF#IMPLIEDmatches field ID value
accesskey%Character;#IMPLIEDaccessibility key character
onfocus%Script;#IMPLIEDthe element got the focus
onblur%Script;#IMPLIEDthe element lost the focus
BUTTON - - (%flow;)* -(A|%formctrl;|FORM|FIELDSET)

push button. . .

属性
属性属性値の型必須?注釈
nameCDATA#IMPLIED
valueCDATA#IMPLIEDsent to server when submitted
type(button|submit|reset)submitfor use as form button
disableddisabled)#IMPLIEDunavailable in this context
tabindexNUMBER#IMPLIEDposition in tabbing order
accesskey%Character;#IMPLIEDaccessibility key character
onfocus%Script;#IMPLIEDthe element got the focus
onblur%Script;#IMPLIEDthe element lost the focus
%reserved;reserved for possible future use
Webページ作成ノート 目次へ戻る
rain's home page へ戻る