shiny (version 0.5.0)

tag: HTML Tag Object

Description

tag creates an HTML tag definition. Note that all of the valid HTML5 tags are already defined in the tags environment so these functions should only be used to generate additional tags. tagAppendChild and tagList are for supporting package authors who wish to create their own sets of tags; see the contents of bootstrap.R for examples.

tag(_tag_name, varArgs)

tagAppendChild(tag, child)

tagList(...)

Arguments

_tag_name
HTML tag name
varArgs
List of attributes and children of the element. Named list items become attributes, and unnamed list items become children. Valid children are tags, single-character character vectors (which become text nodes), and raw HTML (see
tag
A tag to append child elements to.
child
A child element to append to a parent tag.
...
Unnamed items that comprise this list of tags.

Value

  • An HTML tag object that can be rendered as HTML using as.character.