<heml>

Button

Use the button element to add a button-styled link.

Examples

Default button

<button href="https://heml.io">Click me!!</button>

Center a button

<button href="https://heml.io" style="margin: auto;">Click me!!</button>

Changing the background color

<heml>
  <head>
    <style>
      .secondary-button {
        background: CornflowerBlue;
      }
    </style>
  </head>
  <body>
    <button href="https://heml.io" class="secondary-button">Click me!!</button>
  </body>
</heml>

Attributes

This element supports the global attributes.

href url Set the destination address for when the button is clicked. Defaults to # .

Styling

The button supports the standard block and text element styles.

Pseudo elements

table::root
  table::table
    td::cell
      a::link