Creates a <meta> tag for attribute value pairs, where argument names correspond to attribute names.

meta_tag(.meta = meta(), ...)



A meta object created by meta() or as_meta(), or returned by a meta_*() object.


Attribute names and values as attribute = value. Values must be a single character string.


A meta object, or a set of <meta> HTML tags inside an HTML <head> tag. For use in rmarkdown::html_document(), shiny::runApp(), or other HTML locations.

See also


meta() %>% meta_tag( "http-equiv" = "Content-Security-Policy", content = "default-src 'self'" )
#> <meta http-equiv="Content-Security-Policy" content="default-src &#39;self&#39;"/>