@inherits Custom.Hybrid.Razor14
@using ToSic.Razor.Blade;
RazorBlade Basic Html5 Tag API...
Demo Simple Tags like h4 and div Instead...
@Tag.H3("Example 1: This title was code-generated")
@Tag.Div("This div was coded").Class("alert alert-warning")
@Tag.Div(
Tag.H4("Example2: This h4 title is inside the div"),
"and this text in the div ",
Tag.Em("follows the title")
).Class("alert alert-warning")
Example 3: Using Tag.Div
@(Tag.Div("This is the intro. ",
Tag.B("I hope you like it"),
Tag.I(" otherwise it's ok too"),
" 😉")
.Id("wrapper")
.Class("alert")
.Class("alert-dark"))
Example 4: Tag contents can also use...
@{
var darkBox = Tag.Div()
.Class("alert alert-dark")
.Wrap(
"Did you know, that you can add text...",
Tag.Code("and tags"),
Tag.Div(
"as well as more ",
Tag.B("tags"),
" and strings inside it?"
)
.Class("alert")
.Class("alert-danger")
);
}
@darkBox