3.3. Specifying Hypertext Links

One of the central ideas of HTML is that documents do not have to be read from top to bottom in a linear fashion. Instead, authors can create documents or sets of documents with links to other sections or documents, thus allowing readers to proceed in directions according to their interests. The anchor element A allows the author to specify sections of text or images that, when selected by the reader, will transfer the browser to a specific section of a designated document. The A element also allows the author to name a section of the document so that other links can refer to the section.

HTML Element: <A ...> ... </A>
Attributes: HREF, NAME, TARGET, REL, REV, TITLE, ONFOCUS, ONBLUR, COORDS, SHAPE, TYPE, HREFLANG, ...

Get Core Web Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.