Online HTML Link Code
Reference and copy common HTML link code: anchor, new window, mailto, and button-style links. Quick snippets for developers.
Common HTML link snippets. Copy and replace URL/text in your editor.
- Basic link
<a href="https://example.com">Link text</a>
- Link open in new tab
<a href="https://example.com" target="_blank" rel="noopener noreferrer">Open in new tab</a>
- Mailto link
<a href="mailto:user@example.com">Email us</a>
- Mailto with subject
<a href="mailto:user@example.com?subject=Hello">Email with subject</a>
- Button-style link
<a href="https://example.com" class="button">Click</a>
- Link with title (tooltip)
<a href="https://example.com" title="Tooltip text">Link</a>
Frequently Asked Questions
- What does this tool provide?
- Ready-to-copy HTML snippets for standard links, new-window links, mailto, and click handlers.
- Can I customize the snippets?
- Copy the snippet and replace the placeholder URL and text in your editor.
- Where is target _blank explained?
- The new-window snippet includes target="_blank" and rel="noopener noreferrer" for security.
Related Developer Tools
JSON Formatter
Format, validate, and beautify JSON. Minify or pretty-print with one click.
Base64 Decode
Decode Base64 strings to text. Encode text to Base64.
UUID Generator
Generate random UUIDs (v4) for unique identifiers. Copy with one click.
URL Encoder Decoder
Encode and decode URLs. Convert special characters for safe use in URLs.
Convert Color Hex to RGB
Convert hex color codes to RGB values (R, G, B).
Convert Color RGB to Hex
Convert RGB values (R, G, B) to hex color codes.