Complete the code to create a new Astro page that displays a heading.
---
---
<html>
<body>
<h1>[1]</h1>
</body>
</html>The heading inside the <h1> tag should be a simple greeting like "Hello World" to show the page content.
Complete the code to export a frontmatter variable called 'title' in an Astro page.
--- export const [1] = 'My Astro Page'; --- <html> <body> <h1>{title}</h1> </body> </html>
The frontmatter variable used in the template is title, so it must be exported with the same name.
Fix the error in the Astro page by completing the import statement for a component.
--- import [1] from '../components/Header.astro'; --- <html> <body> <Header /> </body> </html>
Component names in Astro are case-sensitive and usually start with a capital letter. The import must match the usage <Header />.
Fill both blanks to create a page that uses a component and passes a prop.
--- import [1] from '../components/Button.astro'; --- <html> <body> <Button label=[2] /> </body> </html>
The component must be imported as 'Button' to match usage. The prop value should be a string with double quotes inside JSX-like syntax.
Fill all three blanks to create a page with frontmatter, import, and component usage with a prop.
--- export const [1] = 'Home Page'; import [2] from '../components/Hero.astro'; --- <html> <body> <[2] title=[1] /> </body> </html>
The frontmatter variable is 'title'. The component is imported as 'Hero' and used with the prop 'title' set to the variable 'title'.
