A Learning Place Showcase
A Learning Place Showcase
A Learning Place Showcase - Editing web pages with HTML Print Version Search
Editing web pages with HTML What is HTML and why use it? · Basic HTML rules · Formatting text with HTML · Link to other pages or website · Anchor links within a page · Opening new browser window · Email link in text · Inserting images into text · RSS Feeds · Embedding video ·
Anchor links within a page

Anchor Tags

Links within a page - anchor tags

The anchor tag used with a location reference href="#name of location" is used when there is a need to jump to an anchor point within the same document or on the same page.  

For those with IBM compatible PC's, when inside the Edit text box, click on the <> symbol to see the html code.  For those with Macs, enter the 'no WYSIWYG' box so you can see the html code.

The same text can be a Link as well as an anchor, the only difference is both the href= and the name= are used.  Both attributes may be placed in the same tag. Thus the same text may be both a Link and an Anchor:

<A href="#undersea">Under the sea (Fraser-Cooloola)</A>

(where you want to link FROM)

<A name=undersea>Under the sea</A>

(where you want to link TO)

On a long page, you can also create your own "Back to Top" link to go back to the top of the page after each relevant section is finished: 

<A href="#top">Back to Top</A>

(where you want the Back to Top link to appear)

and at the very top of the page:

<A name=top></A>

(placed where you want to return to, in this case, at the top of the page).

Click Submit, go to the web page, click the Refresh button at the top of the browser, and check your anchors/links are working properly.

 
 
 
Home Top
  Last update: 23/02/2004
 
Queensland Government - Education Queensland  PLC home  A Learning Place Showcase
Contact: Candice Jackson -
Tel: (07) 3421 6656 Fax: (07) 3421 6500

Learning Place
eLearning, Information & Technologies Branch
Department of Education and Training

URL: http://www.learningplace.com.au/en/showcase

Learning Place | Professional Communities Home | Site Map
 
Copyright | Disclaimer | Privacy | Access keys
© The State of Queensland (Department of Education and Training) 2010.
Queensland Government