Subscribe:

Saturday

Link to an Anchor

To make the weblink to an core, you also use the a tag and the href feature, as you would when developing any other form of weblink. To complete the weblink, you need to involve a hash icon (#) and the core name as the value of the href feature.

The following shows how it all might look when you code it in an HTML document:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html>
<head>
<title>Links and Anchors</title>
</head>
<body>
<a name="top"></a>
<h1>Cabin Life</h1>
<p>Campers sleep in cabins with eight or nine other campers of similar
age and two counselors. The cabins are rustic but comfortable. The
girls' cabins all have a large closet and drawer space, two sinks,
a toilet and a shower. Three of the boys' cabins share a latrine
with plenty of sinks and toilets and two showers. They also have a
number of other bathrooms available to them. The oldest boys' cabin
has bathrooms with showers and sinks. All cabins are equipped with
comfortable bunk beds.</p>
<p>Campers are responsible for keeping their own cabins clean, taking
a turn at waiter duty, and sharing the upkeep of the common area. On
a typical night, campers return to their cabins at 9pm to spend time
with their cabin-mates before lights-out at 10pm. A weekly laundry
service is provided. Friends of similar age who come to camp together
may request to be placed in the same cabin. Due to space limitations
however, we may not be able to accommodate all such requests.</p>
<p>Foreign camper enrollment is limited, so that no more than two
campers from the same foreign country are in one cabin.</p>
<h1>Awesome Food</h1>
<p>Breakfast is usually served at 8:00 AM. Lunch is at 1:00 PM and
dinner is enjoyed at 6:00 PM. Breakfast usually includes juice and
fresh fruit. Bacon and eggs are served a couple of times each week. Hot waffles go right from the waffle iron to your plate. Pancakes and
french toast are popular, as are homemade sweet breads, muffins, and
donuts. Cereal (hot and cold) is always available. Every other Sunday
breakfast is served to order.</p>
<p>Freshly made tossed salads are served at lunch and dinner with a
variety of dressings and condiments. Sandwiches and homemade soups are
frequently offered. Milk, water, iced tea, juice, hot tea, and coffee
are available at all meals. The weekly menu typically includes BBQ
chicken, roast beef, hamburgers, roast turkey, or ham. On alternate
weeks, a combination seafood plate of haddock, fried clams, and shrimp
is served. (Steak is available for those who don't enjoy seafood.)
Our cooks bake our own rolls, cookies, bread, and cakes. Other
desserts include fresh fruit, homemade ice cream, and "make your own"
sundaes.</p>
<p><a href="#top">Return to the top of this page.</a></p>
</body>
</html>


his tag hyperlinks to the definite core “top.”
As recommended, a good situation for using core bolts includes a lengthy web page with many little areas, such as the example proven in Figure:

Whenever you do have lengthy webpages with an catalog and several areas, it’s awesome to provide your guests a “Back to Top” weblink to carry it to the catalog quickly. The following reveals the HTML value used to make this web page.

If you need to make a weblink to a particular area with another web page (not the one you are currently operating on), then you use that page’s filename and the core name divided by a hash level (#), as in the following example.
<a href="genealogy.html#intro">View names beginning with an "A" on our
genealogy page.</a>
In this case, the technique will first look for genealogy and family history.html and then locate an core known as “intro” on that page.

0 comments:

Post a Comment