HTML 一般实体在哪里定义?
Where are HTML general entities defined?
来自HTML DTD:
<!ELEMENT A - - (%inline;)* -(A) -- anchor -->
<!ATTLIST A
%attrs; -- %coreattrs, %i18n, %events --
charset %Charset; #IMPLIED -- char encoding of linked resource --
type %ContentType; #IMPLIED -- advisory content type --
name CDATA #IMPLIED -- named link end --
href %URI; #IMPLIED -- URI for linked resource --
hreflang %LanguageCode; #IMPLIED -- language code --
target %FrameTarget; #IMPLIED -- render in this frame --
rel %LinkTypes; #IMPLIED -- forward link types --
rev %LinkTypes; #IMPLIED -- reverse link types --
accesskey %Character; #IMPLIED -- accessibility key character --
shape %Shape; rect -- for use with client-side image maps --
coords %Coords; #IMPLIED -- for use with client-side image maps --
tabindex NUMBER #IMPLIED -- position in tabbing order --
onfocus %Script; #IMPLIED -- the element got the focus --
onblur %Script; #IMPLIED -- the element lost the focus --
>
哪个文件定义了这些实体是什么,例如 %LinkTypes;
或 %Script;
?
在linked HTML DTD are entity declarations如
<!ENTITY % LinkTypes "CDATA"
-- space-separated list of link types
-->
<!ENTITY % Script "CDATA" -- script expression -->
根据这些声明,您可以看到 %LinkTypes;
和 %Script;
都扩展为 CDATA
(字符数据);该评论提供了一些关于其预期形式或用途的额外指导。
来自HTML DTD:
<!ELEMENT A - - (%inline;)* -(A) -- anchor -->
<!ATTLIST A
%attrs; -- %coreattrs, %i18n, %events --
charset %Charset; #IMPLIED -- char encoding of linked resource --
type %ContentType; #IMPLIED -- advisory content type --
name CDATA #IMPLIED -- named link end --
href %URI; #IMPLIED -- URI for linked resource --
hreflang %LanguageCode; #IMPLIED -- language code --
target %FrameTarget; #IMPLIED -- render in this frame --
rel %LinkTypes; #IMPLIED -- forward link types --
rev %LinkTypes; #IMPLIED -- reverse link types --
accesskey %Character; #IMPLIED -- accessibility key character --
shape %Shape; rect -- for use with client-side image maps --
coords %Coords; #IMPLIED -- for use with client-side image maps --
tabindex NUMBER #IMPLIED -- position in tabbing order --
onfocus %Script; #IMPLIED -- the element got the focus --
onblur %Script; #IMPLIED -- the element lost the focus --
>
哪个文件定义了这些实体是什么,例如 %LinkTypes;
或 %Script;
?
在linked HTML DTD are entity declarations如
<!ENTITY % LinkTypes "CDATA"
-- space-separated list of link types
-->
<!ENTITY % Script "CDATA" -- script expression -->
根据这些声明,您可以看到 %LinkTypes;
和 %Script;
都扩展为 CDATA
(字符数据);该评论提供了一些关于其预期形式或用途的额外指导。