What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Change the font and size in ALT and TITLE

Seve

New member
I would like to change the font and size of the text in the TITLE= and ALT=/
<a href="" rel="" title="first"><img src=".jpg" alt="second" /></a>
 
These attributes are not intended for styling. These are support elements for the browser.
However, if you want to add a bubble above the link, read about tooltips.
 
The alt and title attributes in HTML are rendered by the browser, and their font and size are determined by the browser's default styling. Unfortunately, there is no direct way to change the font or size of the text displayed through these attributes because they are designed to serve as simple, consistent tooltips or alternative text for accessibility purposes.

If you want to customize the appearance of such text, you would need to implement a custom tooltip or styled text solution (e.g., via CSS or JavaScript). Otherwise, the default rendering of alt (for images that fail to load) and title (for hover tooltips) will remain as provided by the browser.
 
Back
Top