Key Points

  • To create a hyperlink, use the <a> tag with the href= argument. The <a> tag is two-sided, so add </a> after the text used as the hyperlink.

  • Use absolute paths (that is, paths containing the full location of the file) when referring to content outside your own Web site. Use relative paths when referring to files in the same folder as the current page, or in a parent or child folder.

  • To open a hyperlink target in a new window, include the target="_blank" argument in the <a> tag.

  • To create hyperlink that opens a pre-addressed e-mail message, precede the address with mailto:, for example, mailto:support@microsoft.com.

  • To create an anchor point, use the name= argument with the <a> tag, for example, <a name="equipment">.

  • To reference an anchor ...

Get HTML and XHTML Step by Step 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.