Anchor. Primarily used as a hypertext link. The link can be to another page, a part of a page or any other location on the web.
Note: An anchor (a point in a page where a link can jump to) does not need to be defined with the a tag. Applying the id attribute to any tag will achieve this.
Required Attributes
None.
Optional Attributes
hrefcan be used to specify the target of a link.charsetcan be used to specify the character set of the target of a link.typecan be used to specify the MIME type of the target of a link.hreflangcan be used to specify the language (in the form of a language code) of the target of a link. It should only be used whenhrefis also used.relcan be used to specify the relationship of the target of the link to the current page.revcan be used to specify the relationship of the current page to the target of the link.accesskeycan be used to associate a keyboard shortcut to the element.tabindexcan be used to specify where the element appears in the tab order of the page.id,class,title,dir,xml:lang,onclick,ondblclick,onmousedown,onmouseup,onmouseover,onmousemove,onmouseout,onkeypress,onkeydown,onkeyup,style- see Common Attributes

暂无评论