---
title: .svelte files
---
Components are the building blocks of Svelte applications. They are written into `.svelte` files, using a superset of HTML.
All three sections — script, styles and markup — are optional.
```svelte
/// file: MyComponent.svelte
```
## `
```
You can `export` bindings from this block, and they will become exports of the compiled module. You cannot `export default`, since the default export is the component itself.
## `
```
For more information regarding styling, read the documentation around [styles and classes](styles-and-classes).