22.06.2015 Views

Step by Step HTML5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Key Points 81<br />

Key Points<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

To create a hyperlink, use the tag with the href= attribute. The tag is twosided,<br />

so add after the text that you use as the hyperlink.<br />

Use absolute paths (that is, paths containing the full location of the file) when referring<br />

to content outside your own Web site. Use relative paths when referring to files<br />

in the same folder as the current page, or in a parent or child folder.<br />

To open a hyperlink target in a new window, include the target=”_blank” attribute<br />

in the tag.<br />

To create a hyperlink that opens a pre-addressed e-mail message, precede the<br />

address with mailto:, for example, mailto:support@microsoft.com.<br />

To create an anchor point, use the name= attribute with the tag, for example,<br />

.<br />

To reference an anchor point, reference the anchor point name, but remember<br />

to precede the name with a pound symbol (#) in the href= attribute, as in<br />

.<br />

You can create hyperlinks to other types of content besides Web pages, but you<br />

should include hyperlinks to viewers for any content types that might not be<br />

supported <strong>by</strong> all browsers, and/or make HTML or plain-text alternative versions<br />

available.<br />

To provide a viewer for a type of content, create a hyperlink that points to a site<br />

from which it can be downloaded, or store the viewer on your own Web site and<br />

provide a link to it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!