Prev Source
Next Source

Basic Markup • Docs • Svelte

original source

A lowercase tag, like <div>, denotes a regular HTML element. A capitalised tag, such as <Widget> or <Namespace.Widget>, indicates a component.

Boolean attributes are included on the element if their value is truthy and excluded if it’s falsy.

All other attributes are included unless their value is nullish (null or undefined).


Date
April 7, 2024