Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to have the title attribute of an html element to display for a longer time?

Tags:

html

tooltip

Without using tooltip plugins or such, is there a way to extend the duration of time that the title attribute of an html element will display for?

thanks!

like image 934
Dan Appleyard Avatar asked Aug 07 '09 17:08

Dan Appleyard


People also ask

How do you hover a title in HTML?

There are two ways you can create a hover text for your HTML elements: Adding the global title attribute for your HTML tags. Creating a tooltip CSS effect using :before selector.

What does the title attribute do in HTML?

The title attribute specifies extra information about an element. The information is most often shown as a tooltip text when the mouse moves over the element. The title attribute can be used on any HTML element (it will validate on any HTML element.

How do you customize a title in HTML?

Editing the HTML Title Tag html, or default. html. Update the text between the opening and closing title tags, i.e. <title> and </title>. For this to work, you must maintain the structure of the opening <title> and closing </title> and just modify the text between them.


1 Answers

No. The tooltip you see by default is a function of the browser and is not controllable from the page markup. Your only option is some form of javascript-based tooltip.

like image 63
Chris Avatar answered Sep 27 '22 21:09

Chris