Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at




Элемент (<a>) является одним из важных элементов HTML и предназначен для создания ссылок


Этот атрибут определяет "горячую клавишу" для элемента. Нажимая ALT или аналогичную клавишу (зависит от браузера и операционной системы) вместе с указанной клавишей выделяет ссылку, соотнесенную с этой клавишей.
Этот атрибут определяет кодировку ресурса, на который ссылается документ. Значение - разделенный запятыми или пробелами список кодировок, указанных в RFC 2045. Значением по умолчанию является ISO-8859-1.
Этот атрибут применяется к ссылкам, которые располагаются внутри контейнера <object>. Совместно с атрибутом shape создает «горячую область», которая служит ссылкой. По своему действию похож на тег <area>.
This attribute specifies the column name from that data source object that supplies the bound data. This attribute is specific to Microsoft's Data Binding in Internet Explorer 4. dataFld Property (MSDN)
This attribute indicates the id of the data source object that supplies the data that is bound to this element. This attribute is specific to Microsoft's Data Binding in Internet Explorer 4. dataSrc Property (MSDN)
Это единственный обязательный атрибут для ссылок. Он указывает адрес ссылки - URL или фрагмент URL. Фрагмент URL начинается со знака хеш (#), и определяет адрес ссылки в пределах текущей страницы. Значения URL не ограничиваются Web (http) станицами. Значения URL могут использовать любой протокол поддерживаемый браузером. Например, это могут быть ссылки на файл, ftp сервер или адрес электроннной почты.
Это атрибут указывает язык документа, на который ведет ссылка.
The value of this attribute provides information about the functions that might be performed on an object. The values generally are given by the HTTP protocol when it is used, but it might (for similar reasons as for the title attribute) be useful to include advisory information in advance in the link. For example, the browser might choose a different rendering of a link as a function of the methods specified; something that is searchable might get a different icon, or an outside link might render with an indication of leaving the current site. This element is not well understood nor supported, even by the defining browser, Internet Explorer 4. Methods Property (MSDN)
If present, this attribute should be a space-separated list of URIs that wish to be notified when the user follows the hyperlink. Firefox sends a POST request to each HTTP URI in the list. The ping attribute's functionality can be enabled by setting the browser.send_pings preference to true. Поддержка "ping" была удалена начиная с Firefox 3 beta 3 (ошибка 415168).
This attribute is required in an anchor defining a target location within a page. A value for name is similar to a value for the id core attribute and should be an alphanumeric identifier unique to the document. Under the HTML 4.01 specification, id and name both can be used with the <a> element as long as they have identical values.
For anchors containing the href attribute, this attribute specifies the relationship of the target object to the link object. The value is a comma-separated list of relationship values. The values and their semantics will be registered by some authority that might have meaning to the document author. The default relationship, if no other is given, is void. The rel attribute should be used only when the href attribute is present.
This attribute specifies a reverse link, the inverse relationship of the rel attribute. It is useful for indicating where an object came from, such as the author of a document.
This attribute is used to define a selectable region for hypertext source links associated with a figure to create an image map. The values for the attribute are circle, default, polygon, and rect. The format of the coords attribute depends on the value of shape. For circle, the value is x,y,r where x and y are the pixel coordinates for the center of the circle and r is the radius value in pixels. For rect, the coords attribute should be x,y,w,h. The x,y values define the upper-left-hand corner of the rectangle, while w and h define the width and height respectively. A value of polygon for shape requires x1,y1,x2,y2,... values for coords. Each of the x,y pairs define a point in the polygon, with successive points being joined by straight lines and the last point joined to the first. The value default for shape requires that the entire enclosed area, typically an image, be used.

Note: It is advisable to use the usemap attribute for the img element and the associated map element to define hotspots instead of the shape attribute.

This attribute uses a number to identify the object's position in the tabbing order for keyboard navigation using the TAB key.
This attribute specifies the target window for a hypertext source link that references frames. The information linked to target will be displayed in the named window. Frames and inline frames must be named to be targeted. There are, however, special name values. These include _blank, which indicates a new window; _parent, which indicates the parent frame set containing the source link; _self, which indicates the frame containing the source link; and _top, which indicates the full browser window.
This attribute specifies the media type in the form of a MIME type for the link target. Generally, this is provided strictly as advisory information; however, in the future a browser might add a small icon for multimedia types. For example, a browser might add a small speaker icon when type is set to audio/wav. For a complete list of recognized MIME types, see
This supposedly Microsoft-supported attribute relates a uniform resource name (URN) with the link. While it is based on standards work years back, the meaning of URNs is still not well defined, so this attribute is meaningless. urn Property (MSDN)


    <!-- anchor linking to external file -->
<a href="">
    External Link


External Link


The following are reserved browser key bindings for the two major browsers and should not be used as values to accesskey: a, c, e, f, g, h, v, left arrow, and right arrow.

HTML 3.2 включает только name, href, rel, rev и title.

Атрибут target не работает в браузерах, не поддерживающих фреймы, таких как Netscape 1 generation. Кроме того, target не допускается в "строгих" (Strict) вариантах XHTML, но разрешен в формах frameset или "переходный" (transitional).

Метки документа и участники

 Внесли вклад в эту страницу: Kolotushkin, teoli, pepyaka, Softwayer
 Обновлялась последний раз: Kolotushkin,