Tag A

What does the term “Tag A” mean? First of all, it is one of the most important HTML elements and aimed for link creation. Tag <A> determines the link or anchor depending on the presence of the parameters name or href. The bookmark in the page is called anchor, and this very page may be indicated as a link. While using the link, which indicates the anchor, transfer to the bookmark in the web page takes place.
If you want to create the link, report the browser what exactly is the link and indicate the address of the document to create a link to. When the parameter href is meant the address of the document (URL, Universal Resource Locator) is used, to which the transition takes place. The address of the link can be absolute and relative. Absolute addresses work everywhere irrespective of the name of the site or the web page, where the link is registered. Relative links are made relatively to the active document or the root of the site.
<a href="URL">...</a> <a name="identifier"></a>
Parameter (Characteristic)
href defines the address of the document to jump to
name defines the name of the anchor in the document
target the name of the window or frame, where the browser is going to download the document
title adds the bubble help to the text of the link
Closing Tag
Is optional.
The Description of Tag <A> Parameters
HREF Parameter
Description
Closing Tag
Defines the address of the document to jump to. The document of any type can be used as an address of a link, so the result of the link following depends on the final file. Thus, the history (files with extention rar or zip) will be saving on the local disk. The new document is downloaded to the active window of the driver by default, but this feature can be changed with the help of target parameter.
<a href="URL">...</a>
Browsers
Optional Parameter
Is optional for links.
Arguments
Full or relative way to the file is taken as a value.
Default value
No
Name Parameter
Description
Name parameter is used for identification of the anchor in the page. At the beginning you should create the bookmark in the certain place and define its name with the help of name parameter of tag <A>. The name of the bookmark link begins with the symbol #, and then goes the name of the bookmark. It can be any name which is appropriate for the subject area. You may also create the link to the bookmark, which is in the other web page or even on the other site. You should indicate the address in the address of the link and add # and the name of the bookmark in the end.
You shouldn’t type the text between tags <a name=...> and </a>, you should only indicate the link location.
<a name="bookmark"></a>
Optional Parameter
Is optional for anchors.
Arguments
Case-sensitive.
Default value
No.
Target Parameter
The document opens in the active window or in the frame by default while link following takes place. This term can be changed with the help of parameter target of the tag <A> when necessary. The use of this parameter is disabled in XHTML.
<a target="name of the window">...</a>
Optional Parameter
No.
Arguments
The name of a window or a frame is used as an argument. That name is defined by the name parameter. If you determine the null name, the new window will be opened. You may use the following names as reserved ones:
_blank downloads the page to the new window of the browser
_self downloads the page to the active window
_parent downloads the page to the frame-parent, if there are no frames this parameter works as _self.
_top cancels all the frames and downloads the page in the full window of the browser, if there are no frames this parameter works as _self.
Default value
_self
Title Parameter
Description
Adds the explanatory text to the link as a bubble help. You can see such prompt, when mouse pointer keeps long at the link.
<a title="text">...</a>
Optional Parameter
No.
Arguments
Any text line. The line must be put in quotes.
Default value
No
HTML forms
Email forms
PHP form Tutorial
CSS forms