Skip to content

Commit d965fea

Browse files
authored
Update astro-pages.mdx
1 parent f71d61e commit d965fea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/content/docs/en/core-concepts/astro-pages.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Astro pages use the `.astro` file extension and support the same features as [As
5353
</html>
5454
```
5555

56-
A page must produce a full HTML document. If not explicitly included, Astro will add the necessary `<! DOCTYPE html>` declaration and `<head>` content to any `.astro` component located within `src/pages/` by default. You can opt-out of this behavior on a per-component basis by marking it as a [partial](#page-partials) page.
56+
A page must produce a full HTML document. If not explicitly included, Astro will add the necessary `<!DOCTYPE html>` declaration and `<head>` content to any `.astro` component located within `src/pages/` by default. You can opt-out of this behavior on a per-component basis by marking it as a [partial](#page-partials) page.
5757

5858
To avoid repeating the same HTML elements on every page, you can move common `<head>` and `<body>` elements into your own [layout components](/en/core-concepts/layouts/). You can use as many or as few layout components as you'd like.
5959

@@ -112,7 +112,7 @@ Additionally, partials should not be used if the component contains scoped style
112112

113113
Partials are page components located within `src/pages/` that are not intended to render as full pages.
114114

115-
Like components located outside of this folder, these files do not automatically include the `<! DOCTYPE html>` declaration, nor any `<head>` content such as scoped styles and scripts.
115+
Like components located outside of this folder, these files do not automatically include the `<!DOCTYPE html>` declaration, nor any `<head>` content such as scoped styles and scripts.
116116

117117
However, because they are located in the special `src/pages/` directory, the generated HTML is available at a URL corresponding to its file path. This allows a rendering library (e.g. htmx, Stimulus, jQuery) to access it on the client and load sections of HTML dynamically on a page without a browser refresh or page navigation.
118118

0 commit comments

Comments
 (0)