<dfn>
åºçº¿
广æ³å¯ç¨
èª 2015å¹´7æ èµ·ï¼æ¤ç¹æ§å·²å¨ä¸»æµæµè§å¨ä¸å¾å°æ¯æï¼å¯å¨å¤§å¤æ°è®¾å¤åæµè§å¨çæ¬ä¸æ£å¸¸ä½¿ç¨ã
æè¦
HTML å®ä¹å ç´ (<dfn>) 表示æ¯è¯çä¸ä¸ªå®ä¹ã
夿³¨ï¼<dfn> å
ç´ æ è®°äºè¢«å®ä¹çæ¯è¯ï¼æ¯è¯å®ä¹åºå½å¨ <p>, <section>æå®ä¹å表 (é常æ¯<dt>, <dd> 对) ä¸ç»åºã
- 被å®ä¹æ¯è¯çå¼ç±ä¸åè§åç¡®å®ï¼
| å 容åç±» | Flow content, phrasing content, palpable content. |
|---|---|
| å 许çå 容 | Phrasing content, but no <dfn> element must be a descendant. |
| æ ç¾çç¥ | ä¸å 许ï¼å¼å§æ ç¾åç»ææ ç¾é½ä¸è½çç¥ã |
| å 许çç¶å ç´ | Any element that accepts phrasing content. |
| DOM æ¥å£ | HTMLElement |
屿§
该å ç´ å æ¬ å ¨å±å±æ§ã
å¨ HTML5 ä¸ï¼title 屿§æ¥æç¹æ®å«ä¹ï¼è§ä¸æã
示ä¾
ä¸åç¤ºä¾æ¯åæ³ç HTML5ã
html
<!-- Define "The Internet" -->
<p>
<dfn id="def-internet">The Internet</dfn> is a global system of interconnected
networks that use the Internet Protocol Suite (TCP/IP) to serve billions of
users worldwide.
</p>
å¨åä¸ææ¡£çåé¢ï¼
html
<dl>
<!-- Define "World-Wide Web" and reference definition for "the Internet" -->
<dt>
<dfn>
<abbr title="World-Wide Web">WWW</abbr>
</dfn>
</dt>
<dd>
The World-Wide Web (WWW) is a system of interlinked hypertext documents
accessed on <a href="#def-internet">the Internet</a>.
</dd>
</dl>
ç»æ
è§è
| è§è |
|---|
| HTML > # the-dfn-element > |