Create a list() of tags with methods for print(), as.character(), etc.

tagList(...)

Arguments

...

A collection of tags.

Examples

tagList(
  h1("Title"),
  h2("Header text", style = "color: red;"),
  p("Text here")
)
#> <h1>Title</h1>
#> <h2 style="color: red;">Header text</h2>
#> <p>Text here</p>