Title attribute may be set for both A and LINK toĪdd information about the nature of a link. Although LINK has no content, the relationships it defines mayīe rendered by some user agents. LINK element defines a relationship between the current document andĪnother resource. When the name or id attributes of the A element are set, the elementĭefines an anchor that may be the destination of other links.Īuthors may set the name and href attributes simultaneously in the This content in such a way as to indicate the presence of a link (e.g., by Opening a new HTML document in the same user agent window, opening a new HTMLĭocument in a different window, starting a new program to handle the resource,Ī element has content (text, images, etc.), user agents may render The retrieved resource may be handled by the user agent in several ways: by The source anchor is the location of the A instance and the destination anchor The A element may only appear in the body.Ī element's href attribute is set, the element defines a sourceĪnchor for a link that may be activated by the user to retrieve a Web resource. 12.1.3 Specifying anchors and linksĪlthough several HTML elements and attributes create links to otherįORM element, etc.), this chapter discusses links and anchorsĬreated by the LINK and A elements. Further information is given below on using For example, a user agent that prints a series of HTMLĭocuments as a single document may use this link information as the basis ofįorming a coherent linear document. Links specified by LINK are not rendered with the document'sĬontents, although user agents may render them in other ways (e.g., asĮven if they are not used for navigation, these links may be interpreted in The link type of the first link is "prev" and that of the second is "next" Within the document entitled "Chapter 5" point to the previous and next Of a document within a series of documents. The roles of a link defined by A or LINK are specified via the relįor instance, links defined by the LINK element may describe the position Links thatĮxpress other types of relationships have one or more link types specified in their source anchor. Than simply "activate this link to visit that related resource". Links in their documents that express other relationships between resources Resource, as illustrated in the previous examples. We may achieve the same effect by making the header elements themselves theīy far the most common use of a link is to retrieve another Web the rest of the table of contents.the document body. Using the A element toĬreate destination anchors, we would write: Link to header elements H2, H3, etc., in the same document. Thus, for example, an author might create a table of contents whose entries The destination anchor must be given an anchor name and any URI addressing thisĪnchor must include the name as its fragment identifier.ĭestination anchors in HTML documents may be specified either by the AĮlement (naming it with the name attribute), or by any other element The destination anchor of a link may be an element within an HTML document. Note that the hrefĪttribute in each source anchor specifies the address of the destination anchor Input, voice commands, etc.), users may visit these resources. See also this map of the enchanted forest.īy activating these links (by clicking with the mouse, through keyboard Other whose destination anchor is a GIF image in the file "forest.gif": Whose destination anchor is an HTML document named "chapter2.html" and the The following HTML excerpt contains two links, one Obtained by selecting the link (e.g., by clicking, through keyboard input, The default behavior associated with a link is the retrieval ofĪnother Web resource. "destination" anchor, which may be any Web resource (e.g., an image, a videoĬlip, a sound bite, a program, an HTML document, an element within an HTMLĭocument, etc.). The link starts at the "source" anchor and points to the Although a simpleĬoncept, the link has been one of the primary forces driving the success of theĪ link has two ends - called anchors - and aĭirection. Link is a connection from one Web resource to another. The link (or hyperlink, or Web link), the basic hypertext construct. Its features for hypertext and interactive documents. Structured documents, but what separates it from most other markup languages is HTML offers many of the conventional publishing idioms for rich text and Document relationships: the LINK element.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |