-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-good.html
More file actions
56 lines (46 loc) · 1.7 KB
/
test-good.html
File metadata and controls
56 lines (46 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<!-- ✅ Charset first -->
<meta charset="UTF-8">
<!-- ✅ Viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- ✅ Title with good length -->
<title>Perfect SEO Page - Example Site | 45 Characters</title>
<!-- ✅ Meta description -->
<meta name="description" content="A well-optimized page with all the right meta tags, proper image dimensions, and non-blocking resources for excellent performance.">
<!-- ✅ Canonical -->
<link rel="canonical" href="https://example.com/perfect-page">
<!-- ✅ Open Graph tags -->
<meta property="og:title" content="Perfect SEO Page">
<meta property="og:description" content="Well-optimized page example">
<meta property="og:image" content="https://example.com/og-image.jpg">
<meta property="og:url" content="https://example.com/perfect-page">
<!-- ✅ Preconnect for external domains -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<!-- ✅ Non-blocking stylesheet -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto" media="print" onload="this.media='all'">
<!-- ✅ Font with display swap -->
<style>
@font-face {
font-family: 'CustomFont';
src: url('/fonts/custom.woff2');
font-display: swap;
}
</style>
</head>
<body>
<h1>Perfect Page Example</h1>
<!-- ✅ Image with all attributes -->
<img
src="/hero.jpg"
alt="Hero image showing our product"
width="1200"
height="630"
loading="lazy"
>
<!-- ✅ Async scripts -->
<script src="https://cdn.example.com/analytics.js" async></script>
<script src="https://cdn.example.com/tracking.js" defer></script>
</body>
</html>