This is an example of a <a href="#" class="tooltip" aria-label="The tooltip or a hint is a common GUI element that describes the item it's related to.">Tooltip</a>. Click on it to learn more.
/* --- Required CSS (not customizable) --- */

.tooltip:hover::after {
  content: attr(aria-label);
  display: block;

/* --- Required CSS (customizable) --- */

.tooltip:hover::after {
  position: absolute;
  top: 100%;
  font-size: 1.2rem;
  background-color: #f2f2f2;
  border-radius: 0.5rem;
  color: initial;
  padding: 1rem;
  width: 13rem;
  margin-top: 0.5rem;
  text-align: left;

.tooltip {
  position: relative;
  color: goldenrod;
  display: inline-block;

.tooltip:hover::before {
	top: 100%;
	right: 0;
  left: 0;
  margin: -1rem auto 0;
  display: block;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-bottom-color: #f2f2f2;
	border-width: 1rem;

/* --- Codepen styles - not required --- */

body {
  padding: 4rem 2rem;
  text-align: center;
  font-size: 2rem;

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.