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>, IHtmlContent, ITag, IEnumerable<ITag>, IEnumerable
Constructors
| Improve this Doc View SourceMeta(String, String)
Declaration
public Meta(string name = null, string content = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | content |
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 |