Class Base
Generate a standard HTML5 <base> tag
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<ITag>
System.Collections.IEnumerable
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Base : Tag<Base>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceHref(String)
Set the href attribute on the <base> tag Automatically url-encode it if contains spaces, umlauts or other unexpected chars
Declaration
public Base 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 |
---|---|
Base | a Base object to enable fluid command chaining |
Target(String)
Set the target attribute on the <base> tag
Declaration
public Base 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 |
---|---|
Base | a Base object to enable fluid command chaining |
Implements
System.Web.IHtmlString
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable