HTML and CSS Reference
In-Depth Information
In addition to sending e-mails, you can also use links to set up documents for downloading. Simply
include the path to the document you want to be available for downloading as the href value, like this:
<a href=”assets/resume.pdf”>My Resume (PDF format)</a>
The browser will attempt to open the linked file and, if it cannot, it offers to download it. You can
use this same technique to create downloadable files for compressed archives, Microsoft Office
documents, or most anything else.
In addition to pre-addressing the e-mail, most systems support specifying the
e-mail's subject line in the mailto: link. The subject line is added as a param-
eter to the link, like this:
<a href=”info@mycompany.com?subject=Information%20Requested”>
Request Information</a>
The question mark after the e-mail address indicates to the browser that there are
one or more parameters to follow. The keyword subject is the parameter fol-
lowed by an equals sign and the value, which becomes the subject line. When this
example link is clicked, the e-mail subject line will read Information Requested.
The %20 is a URL-friendly way of indicating a space between the words.
Try iT
In this Try It you learn how to style link states.
Lesson requirements
You will need your previously saved file thoreau.html , a text editor, and a web browser.
step-by-step
1.
Open your text editor.
2.
Open the previously saved thoreau.html .
3.
Place your cursor after the closing brace, } , in the p CSS rule and press Enter (Return).
4.
Enter the following code:
a:link, a:visited {
font-weight: bold;
color: #360;
text-decoration: none;
}
Search WWH ::




Custom Search