Basic Markup • Docs • Svelte
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
orundefined
).