Untitled Document



 Introduction to HTML
 Structure of HTML
 Creating First HTML  Document
 Building Your HTML  Document
 Including Fancier  Formatting
 Building Your HTML  Document
 Including Fancier  Formatting
   Adding Colors
 Specifying Fonts and  Font Sizes
 Changing  Background Image  and Attribute
 Formatting Text by Its  Usage
 
 Formatting Text by Its  Usage
 The Phrase Elements
 Other Special Text  Formatting
 
 Other Special Text  Formatting
 Preformatted Text,  Spaces and All  <PRE>
 Documents with  Changes: <INS>,  <DEL>
 Address Information:  <Address>
 Working with Long  and Short Quotations
 Drawing a Line on  the Page
 Using Lists to Organize  Information
 
 Using Lists to  Organize Information
   Ordered Lists <OL>
   Unordered Lists <UL>
 A Definition or  Glossary List <DL>
 Using the DIR and  Menu List Styles
 Anchors <A..>...</A>
 
   Anchors <A..>...</A>
   HREF
   NAME
   REL
   REV
   TARGET
   TITLE
   Page Formatting
 Lists and Links
 Tables
 Frames
 Including Images into  Document
 Including Multimedia
 Developing HTML  FORMS
 Using Style Sheet
 Understanding URLs
 Using JavaScript
 Using Java

Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




  Building your HTML Document > Anchors <A..>...</A>

  Anchors <A..>...</A>

Anchor element is used to Link a document with an external element. "Anchor" is abbreviated and used as <A>. The <A> tag requires the HREF attribute and HREF requires that a URL be specified after an "=" (equal) sign. Although it is not a compulsory rule to enclose the URL within quotes, but it is always good to do that. You can link within the document also with the <A> tag.
An <A> tag should look like this:

  HREF

Most of the time you need to use the Hyperlink REFerence(a reference to a Link's address). You can link to any type of file on the web, including images, sounds and movies. Many types of URLs are used in the HREF tag:" ftp://", "http://", "gopher://", "mailto:", "news:", "telnet:", "file://".

  NAME

The NAME attribute of the Anchor element labels a section of an HTML document with specific reference name. The name attribute allows you to link directly to a section of the document, (instead of links always leading to the top of a document). It is done in a two step process: First, you must edit the target document and give a name to the section of it where you want the link to take you.

Syntax:

Example:

  REL

This attribute of the <LINK> marks relationship between the current document and the resource in the link and is placed in the head section. This type of anchor does not create a link to any particular URL; you may have to use the HREF attribute.

Syntax:

<LINK REL="relationship-name" HREF="URL">


  REV

The <REV> attribute indicates a reverse relationship. The referenced document has the indicated relationship to the current document. This is placed in the head section.

Syntax:

<LINK REV="relationship-name" HREF="[URL]">


  TARGET

The target attribute is normally used with frames. When you specify a TARGET for your links, you indicate the name of a window in which the linked page appears. The new window, with the new page, functions like a normal copy of a browser in all respect.

Example:

  TITLE

In HTML 4.0 almost every tag can take a TITLE attribute. They are called as advisory titles and help provide extra information about the elements. One anchor attribute that expands on the information available about a link is the TITLE attribute.

Syntax:

  Page Formatting

In this Exercise you will know how to format the text and give color.

After adding the basic tags, we have added the color for the background as "bisque". We have to be careful to see the default color setting of the browser, since that will take precedence.

Back Next


Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




17, Vadsarvala Nivas, 65-A, J. Nehru Road, Mulund (W), Mumbai - 400 080 INDIA
Tel : 91-22-21645588, 91-22-21640585 Fax : 91-22-21641545
Email : ionline@vsnl.com
© Image Online 2001-2003