Class A
Generate a standard HTML5 <a> tag
Implements
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class A : Tag<A>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceDownload(String)
Set the download attribute on the <a> tag
Declaration
public A Download(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in download='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
A | a A object to enable fluid command chaining |
Href(String)
Set the href attribute on the <a> tag Automatically url-encode it if contains spaces, umlauts or other unexpected chars
Declaration
public A Href(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in href='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
A | a A object to enable fluid command chaining |
Hreflang(String)
Set the hreflang attribute on the <a> tag
Declaration
public A Hreflang(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in hreflang='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
A | a A object to enable fluid command chaining |
Media(String)
Set the media attribute on the <a> tag
Declaration
public A Media(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in media='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
A | a A object to enable fluid command chaining |
Ping(String)
Set the ping attribute on the <a> tag
Declaration
public A Ping(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in ping='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
A | a A object to enable fluid command chaining |
Rel(String)
Set the rel attribute on the <a> tag
Declaration
public A Rel(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in rel='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
A | a A object to enable fluid command chaining |
Target(String)
Set the target attribute on the <a> tag
Declaration
public A Target(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in target='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
A | a A object to enable fluid command chaining |
Type(String)
Set the type attribute on the <a> tag
Declaration
public A Type(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in type='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
A | a A object to enable fluid command chaining |