--- title: --- Sometimes we don't know in advance what kind of DOM element to render. `` comes in handy here. Instead of a sequence of `if` blocks... ```html {#if selected === 'h1'}

I'm a h1 tag

{:else if selected === 'h3'}

I'm a h3 tag

{:else if selected === 'p'}

I'm a p tag

{/if} ``` ...we can have a single dynamic component: ```html I'm a {selected} tag ``` The `this` value can be any string, or a falsy value — if it's falsy, no element is rendered.