Can the HTML title attribute be edited?
P粉277305212
P粉277305212 2024-02-25 23:52:19
0
1
403

<h2 title="Site Owner">Mr. Mark </h2>

Is it possible to edit/set the HTML title (works like a tooltip) property using CSS, as shown above?

I tried styling it using inline CSS but it didn't go through.

P粉277305212
P粉277305212

reply all(1)
P粉098979048

Yes, you will need the [title]:hover::after rule like this:

h2[title]:hover::after {
  content: attr(title);
  position: absolute;
  color: red;
  top: 200;
  left: 200;
}

Mr. Mark

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template