Fichier fonctionnel d’origine
reference/public/article.html
Le code et les pages d’exemple fonctionnelles conservent leurs identifiants et leurs textes d’origine. La leçon et les consignes des fichiers les expliquent dans votre langue.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Fix a mismatched contact link</title>
<link rel="stylesheet" href="style.css" />
<link rel="canonical" href="https://YOUR-SITE.example/article.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Fix a mismatched contact link" />
<meta
property="og:description"
content="A short example showing how to compare href and id, repair the anchor and verify the result."
/>
<meta property="og:url" content="https://YOUR-SITE.example/article.html" />
<meta property="og:image" content="https://YOUR-SITE.example/share-card.jpg" />
<meta
property="og:image:alt"
content="Emre and Bilge checking a framed picture in a print workshop."
/>
<meta name="twitter:card" content="summary_large_image" />
</head>
<body>
<main>
<h1>Fix a mismatched contact link</h1>
<p>
A Contact link pointed to #message, while its section used id=contact. Comparing
those exact strings exposed the mismatch. Change href to #contact, then activate
the link and verify that the intended section is reached.
</p>
<img
src="share-card.jpg"
alt="Two people checking a framed picture in a print workshop."
/>
</main>
</body>
</html>