You can use title
attribute.
<img src="smiley.gif" title="Smiley face"/>
You can change the source of image as you want.
And as @Gray commented:
You can also use the title
on other things like <a ...
anchors, <p>
, <div>
, <input>
, etc. See: this
Related Posts:
- Embed image in a
- Image is not showing in browser?
- forbidden 403 on image URLS
- Is element block level or inline level?
- How do I auto-resize an image to fit a ‘div’ container?
- CSS Display an Image Resized and Cropped
- How to place a text next to the picture?
- How to put a text beside the image?
- CSS: Moving the text down a few pixels but keeping the background still?
- Bootstrap 4 images thumbnail classes
- CSS: Moving the text down a few pixels but keeping the background still?
- Rotate an image in image source in html
- CSS Background image not loading
- How to “crop” a rectangular image into a square with CSS?
- CSS centred header image
- How to display image with JavaScript?
- Resize image with javascript canvas (smoothly)
- Wrap text around bootstrap image
- JavaScript: Get image dimensions
- Is it possible to set the equivalent of a src attribute of an img tag in CSS?
- How to add image that is on my computer to a site in css or html?
- How to display Base64 images in HTML
- Making an image act like a button
- Display text on MouseOver for image in html
- HTML5 Canvas Rotate Image
- HTML tag is not working
- Tooltip on image
- Unblur content inside blurring background div
- What character encoding is >?
- Setting table column width
- How to center an iframe horizontally?
- How can I set the default value for an HTML
- the use of `%3F` in URL
- Tab space instead of multiple non-breaking spaces (“nbsp”)?
- My website doesn’t work in I.E. (but does in chrome and firefox)
- Onclick javascript to make browser go back to previous page?
- Best way to encode Degree Celsius symbol into web page?
- How do you create a hidden div that doesn’t create a line break or horizontal space?
- AngularJS ngClass conditional
- How to darken a background using CSS?
- Programmatically change the src of an img tag
- Specifying width and height as percentages without skewing photo proportions in HTML
- How to solve PHP error ‘Notice: Array to string conversion in…’
- Draw a line in a div
- Get HTML code using JavaScript with a URL
- Change Color of Fonts in DIV (CSS)
- Why is “cursor:pointer” effect in CSS not working
- a href link for entire div in HTML/CSS
- How to read if a checkbox is checked in PHP?
- Definition of ui-sref in Angular.js?
- mailto using javascript
- Complete list of reasons why a css file might not be working
- CSS set li indent
- Why does this CSS margin-top style not work?
- How to do auto-width with HTML IFrame
- Freeze the top row for an html table only (Fixed Table Header Scrolling)
- HTML list-style-type dash
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- How can I make my footer center to the bottom of the page?
- “AutoComplete=Off” not working on Google Chrome Browser
- Why would max-width not work on this?
- How do I disable form fields using CSS?
- Scraping data from website using vba
- body background color not showing?
- How to make my website fit any screen size?
- Display:inline not working
- Bootstrap 3 Glyphicons CDN
- SVG drop shadow using css3
- How do I change the default index page in Apache?
- Force table column widths to always be fixed regardless of contents
- Colspan all columns
- Change the color of glyphicons to blue in some- but not at all places using Bootstrap 2
- Using Numbers With Font Awesome
- single line comment in HTML
- Copying HTML code in Google Chrome’s inspect element
- how do I get the bullet points of a
- to center with the text?
- aking a flex item float right
- wp_editor adds HTML entities to the content
- How to escape html code with html allowed
- Thumbnail + Excerpt = loss in word count
- How do you get words to show up at the bottom instead of beside a left-aligned photo? [closed]
- Migrating content from an old solution. How to easily change hardcoded hyperlinks in legacy content
- Embed tag length issues
- How put links in wordpress dynamic sidebar?
- How to add a class to the element?
- WordPress editor not creating tags properly in tables
- How do I make HTML output work when using the customizer?
- Remove tags from wordpress head
- render html no formatting
- hyphenation not working in Gutenberg editor
- All wordpress site went white blank screen
- Why is WordPress swapping double quotes (“) to curly quotes (“) and how do I stop it from happening?
- Display GIF as Facebook link thumbnail
- Change rel=”noopener noreferrer” to rel=’noopener noreferrer’ (single quote)
- How to add an ID to an existing HTML element?
- Open popup automatically when navigate to the page id
- Displaying html table on post content
- can’t update plugins or wordpress or install new plugins [duplicate]
- Post title appears twice in browser title bar