Quick contact buttons in HTML and CSS
Three buttons to call, message on WhatsApp or send an email, with ready-made tel:, wa.me and mailto: links. The simple contact block that customers of a tradesperson or small business expect.
Here is an excerpt of this component's code in HTML and CSS. The full code is free for members, ready to copy into your project.
This component also comes in
The code in HTML and CSS
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Boutons de contact rapide</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="demo">
<section class="bcr" aria-labelledby="bcr-titre" data-bcr>
<h2 class="bcr__title" id="bcr-titre">Une fuite, un devis ? Contactez-nous</h2>// The copy button is a fallback for computers without a mail client, so it only appears when the clipboard is usable.
document.querySelectorAll("[data-bcr]").forEach((group) => {
const button = group.querySelector("[data-bcr-copy]");
const status = group.querySelector("[data-bcr-status]");
if (!button || !status || !navigator.clipboard) return;
let timer = 0;
button.hidden = false;
button.addEventListener("click", async () => {
try {
await navigator.clipboard.writeText(button.dataset.bcrCopy);
status.textContent = "Adresse e-mail copiée.";
} catch {:root {
--bcr-text: #0f172a;
--bcr-body: #475569;
--bcr-surface: #ffffff;
--bcr-line: #e2e8f0;
--bcr-call-bg: #1d4ed8;
--bcr-call-hover: #1e40af;
--bcr-call-text: #ffffff;
--bcr-wa-bg: #15803d;
--bcr-wa-hover: #166534;
--bcr-wa-text: #ffffff;
--bcr-mail-border: #94a3b8;Free component: copy it freely, including for commercial projects.
Other buttons components in HTML and CSS
Buttons components in HTML and CSS
A row of buttons to share the page on Facebook, LinkedIn, WhatsApp or by email, with a copy-link button and no third-party script.
- Tailwind
- React
- CSS
- WordPress

Toggle heart buttons that count favourites, remember them between visits and announce them to screen readers.
- Tailwind
- React
- CSS
- WordPress

A button that adds an event to Google Calendar, Outlook or any calendar through an .ics file, with no third-party service.
- Tailwind
- React
- CSS
- WordPress

A button that copies an IBAN, a reference, an address or a promo code and confirms "Copied", on screen and to screen readers.
- Tailwind
- React
- CSS
- WordPress

A WhatsApp button pinned to the bottom of the screen that opens a welcome bubble with common topics and a pre-filled message, with no third-party widget.
- Tailwind
- React
- CSS
- WordPress

A bar pinned to the bottom of mobile screens with Call and Directions buttons and a live open-now status, built for trades and local shops.
- Tailwind
- React
- CSS
- WordPress