Lesson 2: Embedding content CHAPTER 2 47
of all menu links to be content so the pages load into the <iframe> element as shown in the
following example.
Main Menu<br />
<a href="Calendar.html" target="content">Calendar</a><br />
<a href="HumanResources.html" target="content">Human Resources</a><br />
<a href="ExpenseReports.html" target="content">Expenses</a><br />
<a href="Commissions.html" target="content">Commissions</a><br />
<br />
<iframe name="content"></iframe>
Sending email with hyperlinks
You can use mailto protocol to send email messages. The mailto URL accepts the following
parameters: subject, cc, bcc, and body. The parameters can be entered in any order by adding
a question mark (?) after the email address and separating the parameters with the amper-
sand (&). Some examples of an email hyperlink are as follows.
<!-- basic mailto -->
<a href="mailto:[email protected]">Contact Sales</a>
<!-- add the name, notice that email is wrapped with < and > -->
<a href="mailto:Joe<[email protected]>">Contact Joe in Sales</a>
<!-- multiple recipients comma separated -->
<a href="mailto:[email protected],[email protected]">Contact Sales and Service</a>
<!-- add carbon copy -->
<a href="mailto:[email protected][email protected]">Contact Sales cc Service</a>
<!-- add blind carbon copy -->
<a href="mailto:[email protected][email protected]">Contact Sales</a>
<!-- basic mailto with message -->
<a href="mailto:[email protected]?body=call me.">Contact Sales with call me message</a>
<!-- basic mailto with multi line message -->
<a href="mailto:[email protected]?body=call me.%0AThanks">Contact Sales with multi line
message</a>
<!-- basic mailto with subject and message -->
<a href="mailto:[email protected]?subject=hi&body=call me.">Contact Sales with hi
subject
and call me message</a>
Adding images to your HTML document
When you want to embed an image in your HTML document, use the <img> element. The
<img> element does not have an ending tag; it’s a void element. The <img> element has
required attributes of src (abbreviation for source) and alt (abbreviation for alternate). Use the