User:Erbingha/Anchor Tags

From WolfTech
< User:Erbingha
Revision as of 12:10, 23 March 2006 by Erbingha (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Anchor tags are used to link the text or a graphic in one web page to another web page or file. This capability is called hypertext. The links are usually displayed as a different color and underlined.Anchor tags are used to link the text or a graphic in one web page to another web page or file. This capability is called hypertext. The links are usually displayed as a different color and underlined. To create a link to the NCCE home page, for example, include the following tag before the text or image that you want the user to select. Note: the HREF is an abbreviation for hypertext reference. Where http://www.ces.ncsu.edu/ is the URL (Universal Resource Locator or address) of the page you want to where you want the link to go. After the string of text you want linked, use a tag to close the anchor tag. Example: NCCE Home Page Would appear as: NCCE Home Page and would link to http://www.ces.ncsu.edu/ Linking within a page To link to a specific section in a page, you need to place an tag at the beginning of the section you will be linking to (section_name = a unique name for each section of a page). Then to link to that section from within the same document, use the anchor tag: text to be linked To link to this section from another page, add #section_name to the end of the url of the page. Linking images Images can be linked the same as text. To link an image, place the Image (IMG) tag between the anchor tags. For example: would display and would link to the NCCES Homepage Mailto: links Instead of linking to a page, a mailto: anchor links text or an image to an e-mail address. When selected the browser loads an e-mail program and addresses a message to the address indicated in the tag. When selected the following tag will automatically load an e-mail program and address a message to "nobody@ncsu.edu". Mail to Mr. Nobody If you want to get really fancy, you can even specify the subject to be used in that email by using the following tag: Mail to Mr. Nobody By: John Dorner, IV, Area Specialized Agent, Information Management