HTML and CSS Reference
In-Depth Information
To Set Link Targets
The next step is to set link targets to the Frog Fish and Colorful Lobster sections of the Web page. The
following steps show how to set the two link targets in the Sample Photographs Web page.
1
<!-- Insert fish target
here --> on line 49.
Highlight the line
<a id=
”fish”></a> to
create a link target
named fish
(Figure 3-41).
Type
inserted target
with id fish
Figure 3-41
2
<!--Insert lobster
target here --> on
line 61.
Highlight the line
<a id=
”lobster”></a> to
create a link target
named lobster
(Figure 3-42).
There is nothing
between the start
anchor and end
anchor tags for
these targets. Will
they work?
These targets are
just placehold-
ers, so they do not
need any words or
phrases; they only
need a target name,
as shown in the
anchor tag.
Type
inserted target
with id lobster
Figure 3-42
 
Search WWH ::




Custom Search