Skip to content

Broken Link Card

A copy-paste error & 404 pages component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Error & 404 PagesHTMLCSSany framework
https://example.com/missing-page
404

This link is broken

The destination URL could not be reached.

Copy into your project

HTML
<div class="nuda-err-brknlnk">
  <div class="nuda-err-brknlnk__top">
    <div class="nuda-err-brknlnk__url">
      <span class="nuda-err-brknlnk__protocol">https://</span>
      <span class="nuda-err-brknlnk__path">example.com/missing-page</span>
    </div>
    <span class="nuda-err-brknlnk__status">404</span>
  </div>
  <div class="nuda-err-brknlnk__chain">
    <span class="nuda-err-brknlnk__link"></span>
    <span class="nuda-err-brknlnk__break"></span>
    <span class="nuda-err-brknlnk__link"></span>
  </div>
  <p class="nuda-err-brknlnk__msg">This link is broken</p>
  <p class="nuda-err-brknlnk__sub">The destination URL could not be reached.</p>
</div>
CSS
.nuda-err-brknlnk {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: #1a1a1a;
  border: 1px solid rgba(255,107,107,.15);
  border-radius: 14px;
  width: 100%;
  max-width: 260px;
  gap: 10px;
}

.nuda-err-brknlnk__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  background: #111;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
}

.nuda-err-brknlnk__url {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.nuda-err-brknlnk__protocol {
  color: #555;
  font-size: 9px;
  font-family: ui-monospace,monospace;
  white-space: nowrap;
}

.nuda-err-brknlnk__path {
  color: #888;
  font-size: 9px;
  font-family: ui-monospace,monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nuda-err-brknlnk__status {
  flex-shrink: 0;
  padding: 2px 6px;
  background: rgba(255,107,107,.15);
  color: #ff6b6b;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  font-family: ui-monospace,monospace;
  margin-left: 6px;
}

.nuda-err-brknlnk__chain {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nuda-err-brknlnk__link {
  display: flex;
  width: 18px;
  height: 10px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 5px;
}

.nuda-err-brknlnk__break {
  width: 8px;
  height: 2px;
  background: transparent;
  border-top: 2px dashed rgba(255,107,107,.6);
  position: relative;
  top: -2px;
  animation: _nuda-errbrkl-gap 1.6s ease-in-out infinite;
}

.nuda-err-brknlnk__msg {
  color: #cfcfcf;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.nuda-err-brknlnk__sub {
  color: #555;
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

@keyframes _nuda-errbrkl-gap {
  0%,100% {
    opacity: .4;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-err-brknlnk__break {
    animation: none;
    opacity: .7;
  }
}

How to use Broken Link Card

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More error & 404 pages components

← Browse all NudaUI components