> For the complete documentation index, see [llms.txt](https://normal-tangerine8609.gitbook.io/html-widget/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://normal-tangerine8609.gitbook.io/html-widget/add-ons/less-than-hr-greater-than.md).

# \<hr>

```html
<widget>
  <hr/>
</widget>
```

The `<hr>` element defines a horizontal rule that is mimicked using a widget stack element. It is a self-closing tag, meaning you do not need a second closing tag but it must be marked with a forwardslash at the end.

### **File**

[html-widget-hr.js](https://github.com/Normal-Tangerine8609/Scriptable-HTML-Widget/blob/main/add-ons/html-widget-hr.js)

### **Attributes**

**background - colour or gradient**

Defines the background.

**cornerRadius - posInt**

Defines the corner radius.

**url - url**

Defines the hr url.

**height - posInt**

Defines the height.

**width - posInt**

Defines the width. When not set, the width automatically expands to fit the container.
