<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Click the Dog</title>
<style>
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
background: #f7e7c6;
font-family: Arial, sans-serif;
}
.container {
text-align: center;
}
#message {
height: 55px;
margin-bottom: 10px;
font-size: 2.5rem;
font-weight: bold;
color: #4a2c1a;
}
.dog {
position: relative;
width: 280px;
height: 240px;
margin: auto;
cursor: pointer;
transition: transform 0.15s ease;
user-select: none;
}
.dog:hover { transform: scale(1.04); }
.dog:active { transform: scale(0.96); }
.head {
position: absolute;
left: 45px;
top: 35px;
width: 190px;
height: 165px;
background: #c98b52;
border: 5px solid #4a2c1a;
border-radius: 48% 48% 45% 45%;
}
.ear {
position: absolute;
width: 78px;
height: 110px;
background: #8b572f;
border: 5px solid #4a2c1a;
z-index: -1;
}
.ear.left {
left: 10px;
top: 35px;
border-radius: 65% 35% 55% 45%;
transform: rotate(25deg);
}
.ear.right {
right: 10px;
top: 35px;
border-radius: 35% 65% 45% 55%;
transform: rotate(-25deg);
}
.eye {
position: absolute;
top: 63px;
width: 18px;
height: 22px;
background: #222;
border-radius: 50%;
}
.eye.left { left: 48px; }
.eye.right { right: 48px; }
.muzzle {
position: absolute;
left: 48px;
bottom: 20px;
width: 95px;
height: 65px;
background: #e9c49a;
border-radius: 50%;
}
.nose {
position: absolute;
left: 75px;
bottom: 57px;
width: 42px;
height: 30px;
background: #222;
border-radius: 50%;
}
.mouth {
position: absolute;
left: 94px;
bottom: 33px;
width: 3px;
height: 25px;
background: #4a2c1a;
}
.tongue {
position: absolute;
left: 82px;
bottom: 0;
width: 28px;
height: 42px;
background: #e87979;
border: 4px solid #4a2c1a;
border-top: 0;
border-radius: 0 0 50% 50%;
}
.hint {
margin-top: 8px;
color: #76543e;
font-size: 1rem;
}
</style>
</head>
<body>
<main class="container">
<div id="message" aria-live="polite"></div>
<div class="dog" id="dog" role="button" tabindex="0"
aria-label="Click the dog to say Hello World">
<div class="ear left"></div>
<div class="ear right"></div>
<div class="head">
<div class="eye left"></div>
<div class="eye right"></div>
<div class="muzzle"></div>
<div class="nose"></div>
<div class="mouth"></div>
<div class="tongue"></div>
</div>
</div>
<div class="hint">Click the dog!</div>
</main>
<script>
const dog = document.getElementById("dog");
const message = document.getElementById("message");
function sayHello() {
message.textContent = "Hello World";
}
dog.addEventListener("click", sayHello);
dog.addEventListener("keydown", (event) => {
if (event.key === "Enter" || event.key === " ") {
event.preventDefault();
sayHello();
}
});
</script>
</body>
</html>
Nothing. This page is entirely self-contained and contacts no other website when it runs.
Published on Globefin under the MIT License. You may copy, change, and reuse this page, including commercially — just keep the notice below with it.
Copyright © 2026 Reid Mccormick. Licensed under the MIT License. Published on Globefin.
Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →
Scripts run, but the demo has its own throwaway origin. It can't read your session or cookies, can't reach the page around it, and can't navigate your tab. Don't enter real passwords or personal data into any demo.