13.7 HTML content

The appearance of a Shiny app can be customized by using HTML content such as text and images. We can add HTML content with the shiny::tags object. tags is a list of functions that build specific HTML content. The names of the tag functions can be seen with names(tags). Some examples of tag functions, their HTML equivalents, and the output they create are the following:

- h1(): <h1> first level header

- h2(): <h2> second level header

- strong(): <strong> bold text

- em(): <em> italicized text

- a(): <a> link to a webpage

- img(): <img> image

- br(): <br> line break

- hr(): <hr> horizontal line

- div: <div> division of text with a uniform style.