HtmlAnchorElement Class
https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmlanchorelement
public sealed class HtmlAnchorElement : HtmlElement- Inheritance
HtmlElementHtmlAnchorElement
Properties
| Name | Description |
|---|---|
| Charset | Gets or sets the value of the charset content attribute. |
| Coords | Gets or sets the value of the coords content attribute. |
| Download | Gets or sets the value of the download content attribute. |
| Hash | Gets or sets the fragment of the URL of the hyperlink, including the leading number sign. |
| Host | Gets or sets the host and the port of the URL of the hyperlink. |
| Hostname | Gets or sets the host of the URL of the hyperlink, without the port. |
| Href | Gets or sets the value of the href content attribute. |
| Hreflang | Gets or sets the value of the hreflang content attribute. |
| Name | Gets or sets the value of the name content attribute. |
| Origin | Gets the serialization of the origin of the URL of the hyperlink, or an empty string when there is no URL. |
| Password | Gets or sets the password of the URL of the hyperlink. |
| Pathname | Gets or sets the path of the URL of the hyperlink. |
| Ping | Gets or sets the value of the ping content attribute. |
| Port | Gets or sets the port of the URL of the hyperlink. |
| Protocol | Gets or sets the scheme of the URL of the hyperlink, followed by a colon. |
| ReferrerPolicy | Gets or sets the value of the referrerpolicy content attribute, limited to the known values (the canonical keyword, or the default value). |
| Rel | Gets or sets the value of the rel content attribute. |
| RelList | Gets the tokens of the rel content attribute. |
| Rev | Gets or sets the value of the rev content attribute. |
| Search | Gets or sets the query of the URL of the hyperlink, including the leading question mark. |
| Shape | Gets or sets the value of the shape content attribute. |
| Target | Gets or sets the value of the target content attribute. |
| Text | https://html.spec.whatwg.org/multipage/text-level-semantics.html#dom-a-text |
| Type | Gets or sets the value of the type content attribute. |
| Username | Gets or sets the username of the URL of the hyperlink. |
Charset
HtmlElements.g.csGets or sets the value of the charset content attribute.
public string Charset { get; set; }Coords
HtmlElements.g.csGets or sets the value of the coords content attribute.
public string Coords { get; set; }Download
HtmlElements.g.csGets or sets the value of the download content attribute.
public string Download { get; set; }Property value
See also
Gets or sets the fragment of the URL of the hyperlink, including the leading number sign.
public string Hash { get; set; }Gets or sets the host and the port of the URL of the hyperlink.
public string Host { get; set; }Hostname
HyperlinkElements.csGets or sets the host of the URL of the hyperlink, without the port.
public string Hostname { get; set; }Property value
See also
Gets or sets the value of the href content attribute.
public string Href { get; set; }Property value
See also
Hreflang
HtmlElements.g.csGets or sets the value of the hreflang content attribute.
public string Hreflang { get; set; }Gets or sets the value of the name content attribute.
public string Name { get; set; }Origin
HyperlinkElements.csGets the serialization of the origin of the URL of the hyperlink, or an empty string when there is no URL.
public string Origin { get; }Password
HyperlinkElements.csGets or sets the password of the URL of the hyperlink.
public string Password { get; set; }Property value
See also
Pathname
HyperlinkElements.csGets or sets the path of the URL of the hyperlink.
public string Pathname { get; set; }Property value
See also
Gets or sets the value of the ping content attribute.
public string Ping { get; set; }Property value
See also
Gets or sets the port of the URL of the hyperlink.
public string Port { get; set; }Protocol
HyperlinkElements.csGets or sets the scheme of the URL of the hyperlink, followed by a colon.
public string Protocol { get; set; }Property value
See also
ReferrerPolicy
HtmlElements.g.csGets or sets the value of the referrerpolicy content attribute, limited to the known values (the canonical keyword, or the default value).
public string ReferrerPolicy { get; set; }Gets or sets the value of the rel content attribute.
public string Rel { get; set; }Property value
See also
RelList
HtmlElements.g.csGets the tokens of the rel content attribute.
public DomTokenList RelList { get; }Gets or sets the value of the rev content attribute.
public string Rev { get; set; }Search
HyperlinkElements.csGets or sets the query of the URL of the hyperlink, including the leading question mark.
public string Search { get; set; }Shape
HtmlElements.g.csGets or sets the value of the shape content attribute.
public string Shape { get; set; }Target
HtmlElements.g.csGets or sets the value of the target content attribute.
public string Target { get; set; }https://html.spec.whatwg.org/multipage/text-level-semantics.html#dom-a-text
public string Text { get; set; }Property value
See also
Gets or sets the value of the type content attribute.
public string Type { get; set; }Username
HyperlinkElements.csGets or sets the username of the URL of the hyperlink.
public string Username { get; set; }Property value
See also
Methods
| Name | Description |
|---|---|
| ToString() | The stringifier of HTMLHyperlinkElementUtils: the href IDL attribute. |