The anchor tag defines an anchor or link element which allows you to link from one document to another. With the anchor tag, you can also create a link to specific area of a document using name or id.
Value(s) : character encoding
Sets the type of character encoding for the target link.
rect shapes → left,top,right,bottom
circ shapes → centerx,centery,radius
poly shapes → x1,y1,x2,y2,..,xn,yn
Sets the coordinates for the shape attribute defined by an area of an image used in image maps.
Sets the anchor tag to visit the target URL specified by the href attribute.
Value(s) : language code
the hreflang attribute specifies the default language that will be used on the target URL.
Value(s) : section name
This will apply a name to an anchor tag. This name value has multiple purposes. It can allow dynamic scripting access to the anchor via the name or the name value can be used to create a link to a specific section of a document, either being a different document or the current one.
Value(s) : alternate, appendix, bookmark, chapter, contents, copyright, designates, glossary, help, index, next, prev, section, subsection, start, stylesheet
This designates the relationship between the current page and the target document.
Value(s) : same as rel
This designates the relationship between the target link and the current document.
Value(s) : circ, circle, poly, polygon, rect, rectangle
This will set the type or shape of a region that will be used for mapping purposes in an area tag. Used in conjuction with the coords attribute.
Value(s) : _blank, _parent, _self, _top, frame name, window name
This attribute sets the target location of the URL. Each value starting with _ has various affects:
- _blank - This will cause the browser to open a new window. NOTE: Pop-up blockers tend to prevent links using target _blank from opening.
- _self - this will cause the browser to open the url in the current window. This is redundant unless used in combination with framesets.
- _parent - the target link will open in the parent window. This is most commonly used in combination with framesets.
- _top - this will make the browser open the target link in the full size of the current window, breaking the link out of frames.
frame name and window name values will open the link in the target frame or window containing the same name.
Value(s) : mime type
This specifies the MIME
Type for the target link.