例如,使用XHTML元素的ID在文档内进行链接——这种方式类似于在HTML文档中使用锚点名称进行内部链接。
As an example, an ID on an XHTML element is used for linking within a document — and this is similar to how an anchor name within an HTML document can be used for internal links.
尽管链接的href属性看起来像内部文档锚,但是它们实际上与前面创建的包装器div的id属性匹配。
Although the href attributes of your links look like internal document anchors, they actually match the id attributes of the wrapper divs you created earlier. The markup is shown in Listing 6.
这也很重要,虽然不及内部链接的锚文本。
This also matters, though not as much as the anchor text of inbound links.
应用推荐