首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HTML通用实体是在哪里定义的?

HTML通用实体是在哪里定义的?
EN

Stack Overflow用户
提问于 2020-12-01 05:20:29
回答 1查看 120关注 0票数 0

HTML DTD

代码语言:javascript
复制
<!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;

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-01 05:34:46

linked HTML DTD中有entity declarations,例如

代码语言:javascript
复制
<!ENTITY % LinkTypes "CDATA"
    -- space-separated list of link types
    -->

<!ENTITY % Script "CDATA" -- script expression -->

根据这些声明,您可以看到%LinkTypes;%Script;都扩展为CDATA (字符数据);注释为它们的预期形式或用法提供了一些额外的指导。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65081334

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档