2.2 Notations
Some common HTML tags can be used directly without
tags$
, such asp
,h1
,div
,span
, etc.Less common HTML tags require using
tags$
, such astags$nav
.Get rid of
tags$
usingwithTags()
:<nav> <div></div> <ul> <li></li> <li></li> </ul> </nav>
Use
tagList()
to gather multiple HTML elements together, instead oflist()
, because a special class is added (shiny.tag.list
), which allows for extra capabilities, such as printing as HTML content:<p>Paragraph</p> <p>Sibling of the previous paragraph</p>