Using CSS To Find Broken Links & 404 Pages

/ Published in: CSS
Save to your folder(s)

Using CSS3 selectors, highlight links to deleted pages and 404 pages. Also highlight function calls to deleted javascript using this CSS technique.

Copy this code and paste it in your HTML
  1. /* paths to deleted pages */
  2. a[href="/pages/contact.asp"],
  3. a[href="/pages/email.asp"]
  4. { border-width: 0px; }
  6. /* a deleted javascript function call */
  7. a[onclick*="old()"]
  8. { border: 5px dashed red; }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.