Skip to content

Commit 905c33a

Browse files
committed
fix(docs): index.html
1 parent 1610e8e commit 905c33a

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docs/react/project-structure.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,22 @@ These are detailed further below on this page.
8888
The Vite application HTML template:
8989

9090
```html
91-
<!DOCTYPE html>
92-
<html>
91+
<!doctype html>
92+
<html lang="en">
9393
<head>
9494
<meta charset="utf-8">
95-
<link rel="stylesheet" href="./base.css">
96-
<!-- head -->
95+
<meta name="viewport" content="width=device-width, initial-scale=1">
9796
</head>
98-
<body>
97+
<link rel="stylesheet" href="/base.css" />
9998
<div id="root"><!-- element --></div>
100-
</body>
10199
<!-- hydration -->
102100
<script type="module" src="/$app/mount.js"></script>
103101
</html>
104102
```
105103

106-
It needs to have `head`, `element` and `hydration` placeholders.
104+
It needs to have `element` and `hydration` placeholders.
105+
106+
The `<html>` and `<head>` tags are processed by [unhead](https://github.com/unjs/unhead).
107107

108108
And it must import `/$app/mount.js` as the main module.
109109

docs/vue/project-structure.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,22 @@ These are detailed further below on this page.
8888
The Vite application HTML template:
8989

9090
```html
91-
<!DOCTYPE html>
92-
<html>
91+
<!doctype html>
92+
<html lang="en">
9393
<head>
9494
<meta charset="utf-8">
95-
<link rel="stylesheet" href="./base.css">
96-
<!-- head -->
95+
<meta name="viewport" content="width=device-width, initial-scale=1">
9796
</head>
98-
<body>
97+
<link rel="stylesheet" href="/base.css" />
9998
<div id="root"><!-- element --></div>
100-
</body>
10199
<!-- hydration -->
102100
<script type="module" src="/$app/mount.js"></script>
103101
</html>
104102
```
105103

106-
It needs to have `head`, `element` and `hydration` placeholders.
104+
It needs to have `element` and `hydration` placeholders.
105+
106+
The `<html>` and `<head>` tags are processed by [unhead](https://github.com/unjs/unhead).
107107

108108
And it must import `$app/mount.js` as the main module.
109109

0 commit comments

Comments
 (0)