Class Meta
Generate a standard HTML5 <meta> tag
Implements
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Meta : Tag<Meta>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Constructors
| Improve this Doc View SourceMeta(MetaOg, CloneChanges)
Very special internal overload to allow MetaOg to replicate
Declaration
protected Meta(MetaOg original, CloneChanges changes)
Parameters
Type | Name | Description |
---|---|---|
MetaOg | original | |
ToSic.Razor.Markup.CloneChanges | changes |
Methods
| Improve this Doc View SourceCharset(String)
Set the charset attribute on the <meta> tag
Declaration
public Meta Charset(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in charset='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Meta | a Meta object to enable fluid command chaining |
Content(String)
Set the content attribute on the <meta> tag
Declaration
public Meta Content(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in content='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Meta | a Meta object to enable fluid command chaining |
HttpEquiv(String)
Set the http-equiv attribute on the <meta> tag
Declaration
public Meta HttpEquiv(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in http-equiv='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Meta | a Meta object to enable fluid command chaining |
Name(String)
Set the name attribute on the <meta> tag
Declaration
public Meta Name(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in name='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Meta | a Meta object to enable fluid command chaining |