| html_tag | R Documentation |
Children given as ... are escaped unless marked with html_raw() or
produced by another html_* constructor. Lists are flattened, so children
can be built with lapply(), and NULL children are dropped.
html_tag(name, ..., class = NULL, style = NULL, id = NULL)
name |
Character: Element name, e.g. "div". Must be a single valid element name: a letter followed by letters, digits, or hyphens. |
... |
Children: Character, numbers, |
class |
Optional Character: |
style |
Optional Character: |
id |
Optional Character: |
A tag holding a single text child renders on one line; anything else renders as an indented block, and a child's own line breaks are indented with it, so indentation always tracks nesting depth.
Character of class rtemis_html_element and rtemis_html.
EDG
html_tag("section", "Body text", class = "intro")
html_tag("ul", lapply(c("one", "two"), html_li))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.