Today, you
learned all about links. Links turn the web from a collection of unrelated
pages into an enormous, interrelated information system (there are those big
words again).
To create links,
you the <a> tag pair, called the link or anchor tag. The anchor tag has
attributes for creating links (the href attribute) and anchor names (the name
attribute).
When linking
pages that are all stored on the local disk, you can specify their pathnames in
the href attribute as relative or absolute paths. For local links, relative
pathnames are preferred because they enable you to move local pages more easily
to another directory or to another system. If you use absolute pathnames, your
links will break if your change anything in the hard-coded path.
If you want to
line to a page on the web (a remote page), the value of the href attribute is
the URL of that page. You can easily copy the URL of the page you want to link.
just go to that page by using your favorite web browser ,and then copy and
paste the URL from your browser into the appropriate place in your link tag.
To create links
to specific parts of a page et an anchor at the point you want to link to, use
the <A>…</a> tag as you would with a link, but rather than the href
attribute, you use the name attribute to name the anchor. You then can link
directly to that anchor name by using the name of the page, a has h sign (#),
and the anchor name.
Finally, RULs
(uniform resource locators) are used to point to pages, files, and other
information of the internet. Depending on the type of information, URLs can
contain several parts. But most contain a protocol type and location or
address. URLs can be used to point to many kinds of information but are most
commonly used to point to web pages (http). FTP directories or files (ftp),
electronic mail addresses (mailto). Or Usenet news (news).
WORKSHOP
Congratulations,
you learned a lot today! Now it’s time for the workshop. Many questions about
links appear here. The quiz focuses on other items that are important for you
to remember, followed by the quiz answers. In today’s exercises, you’ll take
the list of items you created yesterday And link them to other pages.
No comments:
Post a Comment