# check-links > Analyze and validate links and buttons on web pages. Use when users ask to check links, verify button hrefs, find empty links, detect javascript:void links, find broken navigation, or audit clickable elements. Detects empty href, javascript:void(0), hash-only links, missing href attributes, and non-accessible buttons. - Author: Léo Brival - Repository: leobrival/serum-plugins-official - Version: 20260120122914 - Stars: 1 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/leobrival/serum-plugins-official - Web: https://mule.run/skillshub/@@leobrival/serum-plugins-official~check-links:20260120122914 --- --- name: check-links description: Analyze and validate links and buttons on web pages. Use when users ask to check links, verify button hrefs, find empty links, detect javascript:void links, find broken navigation, or audit clickable elements. Detects empty href, javascript:void(0), hash-only links, missing href attributes, and non-accessible buttons. --- # Check Links Analyze and validate links (``) and buttons on web pages for proper navigation and accessibility. ## Quick Start Run the link checker from the scripts directory: ```bash cd /path/to/html-checker/scripts bun src/check-links.ts ``` ## CLI Options | Option | Short | Default | Description | |--------|-------|---------|-------------| | `--verbose` | `-v` | false | Show all links including valid ones | | `--json` | `-j` | false | Output results as JSON | | `--check-external` | `-e` | false | Verify external links (slower) | ## Checks Performed | Check | Severity | Description | |-------|----------|-------------| | Empty href | Error | Link with `href=""` or no href attribute | | javascript:void | Warning | Link with `href="javascript:void(0)"` | | Hash only | Warning | Link with `href="#"` (no destination) | | Button no action | Error | ` Statistics: Empty href: 2 javascript:void: 3 Hash-only: 1 Button no action: 1 Recommendations: - Replace javascript:void with proper button elements - Add href destinations or use ``` ### javascript:void(0) **Bad:** ```html Action ``` **Good:** ```html ``` ### Hash-only links **Bad:** ```html Scroll to top ``` **Good:** ```html Scroll to top ``` ## Accessibility (WCAG) - **SC 2.4.4**: Link purpose must be clear - **SC 4.1.2**: All interactive elements need accessible names - **SC 1.3.1**: Buttons must be properly identified ## SEO Impact - Empty/invalid links waste crawl budget - javascript:void links are not crawlable - Broken links harm site authority - Internal linking improves page discovery ## Related Files - **Command**: `plugins/html-checker/commands/check-links.md` - **Scripts**: `plugins/html-checker/scripts/src/check-links.ts` - **Check Headings**: `plugins/html-checker/skills/check-headings/` - **Check Images**: `plugins/html-checker/skills/check-images/`