## Frontmatter Frontmatter is a section at the top of Astro components and Markdown/MDX files, enclosed by two code fences (`---`). [Frontmatter in Astro components](https://docs.astro.build/en/core-concepts/astro-components/#the-component-script) is the component script, whereas [frontmatter in Markdown/MDX files](https://docs.astro.build/en/guides/markdown-content/) is the metadata in YAML. > [name=Voxel][color=gold] Frontmatter syntax changes depending on the filetype. [Frontmatter in Astro components](https://docs.astro.build/en/core-concepts/astro-components/#the-component-script) is written in TypeScript, and contains code that runs on the server during rendering. [Frontmatter in Markdown/MDX files](https://docs.astro.build/en/guides/markdown-content/) contains the file metadata, written in YAML. > I have written frontmatter both in TS and JS, sure it gets transpiled into TS during the build time but I dont see any problem with the paragraph above by genteure [name=Atharva][color=green]