Skip to content

OtherElements

cibboy edited this page Sep 3, 2018 · 4 revisions

Other elements

Introduction

There are several other elements styled in Paper, although perhaps less frequent. Addresses and abbreviations have their own unique styles, the former a mix of a quote block and code block. Subscripts and superscripts are included as well through the sub and sup tags. Horizontal lines are nothing fancy, but they are styled. Lastly, html5 tag mark is in the mix to highlight text.

Usage

  • Addresses

    Addresses are encased in the address tag for proper styling.

    Example
    <address>
      Name: John<br>
      Surname: Doe<br>
      Home address: Somewhere on Mars<br>
      Website: <a href="https://example.com">example.com</a>
    </address>
  • Abbreviations

    Abbreviations are encased in the abbr tag for proper styling.

    Example
    <p>We are all fans of <abbr title="Hypertext Markup Language">HTML</abbr>!</p>
  • Subscripts and superscripts

    Subscripts and superscript come through their dedicated styles.

    Example
    x = log<sub>2</sub>(y)
    y = z<sup>3</sup>
  • Horizontal lines

    Horizontal lines are simply a matter of using the hr tag.

    Example
    <p>Some text</p>
    <hr>
    <p>Some other text</p>
  • Highlighting

    Html5 provides a nice way to highlight text through the use of the mark tag.

    Example
    <p>Some text is important, but some other <mark>needs to be highlighted</mark></p>

Live examples

Live examples

Clone this wiki locally