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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.