HTML and CSS Reference
In-Depth Information
<h1> B </h1>
<!— I've deleted all the Bs before Byrd to make things shorter —>
<h2><a name=”Byrd”> Byrd, William, 1543-1623 </a></h2>
<li> Madrigals
<li><em> This Sweet and Merry Month of May </em></li>
<li><em> Though Amaryllis Dance </em></li>
<li><em> Lullabye, My Sweet Little Baby </em></li>
<li> Masses
<li><em> Mass for Five Voices </em></li>
<li><em> Mass for Four Voices </em></li>
<li><em> Mass for Three Voices </em></li>
<li> Motets
<li><em> Ave verum corpus a 4 </em></li>
<p><em> See Also </em>
Byrd, Gibbons, Lassus, Monteverdi, Morley, Weelkes, Wilbye </p>
You need to create an anchor at the section heading for Byrd. You then can link to that
anchor from the See Also instances in the file for M .
As described earlier in this lesson, you need two elements for each anchor: an anchor
name and the text inside the link to hold that anchor (which might be highlighted in
some browsers). The latter is easy; the section heading itself works well because it's the
element to which you're actually linking.
You can choose any name you want for the anchor, but each anchor in the page must be
unique. (If you have two or more anchors with the name fred in the same page, how
would the browser know which one to choose when a link to that anchor is selected?) A
good, unique anchor name for this example is simply byrd because byrd can appear only
one place in the file, and this is it.
After you decide on the two parts, you can create the anchor in your HTML file. Add the
<a> tag to the William Byrd section heading, but be careful here. If you were working
with normal text within a paragraph, you'd just surround the whole line with <a> . But
when you're adding an anchor to a big section of text that's also contained within an
Search WWH ::

Custom Search