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
- HTML5 Canvas Rotate Image
- HTML tag is not working
- Tooltip on image
- Display text on MouseOver for image in html
- Open source social media icons to download and use on website? [closed]
- CSS Background Opacity [duplicate]
- How to create an HTML button that acts like a link
- What does In html mean
- Center image horizontally within a div
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- How to get a tab character?
- How to make JavaScript execute after page load?
- Is there an upside down caret character?
- Prevent line-break of span element
- How to align iframe always in the center
- How can I get the values of data attributes in JavaScript code?
- Disable Scrolling on Body
- Darken CSS background image?
- Alternative to iFrames with HTML5
- Responsive image map
- How to wrap text around an image using HTML/CSS
- How to darken a CSS background image?
- How can I create a marquee effect?
- What is “X-Content-Type-Options=nosniff”?
- How to make an input type=button act like a hyperlink and redirect using a get request?
- Get checkbox value in jQuery
- Including external HTML file to another HTML file [duplicate]
- CSS list-style-image size
- How can I override Bootstrap CSS styles?
- Can’t fix: ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags
- How to disable auto-play for local video in iframe
- Styling an input type=”file” button
- How to stick footer to bottom (not fixed) even with scrolling
- How to semantically add heading to a list
- Multiple distinct pages in one HTML file
- How to change the background-color of jumbrotron?
- vertical-align with Bootstrap 3
- What is the difference between localStorage, sessionStorage, session and cookies?
- How to place Text and an Image next to each other in HTML?
- How do I align in my image to move it vertically up?(CSS,HTML)?
- How to center links in HTML
- Bootstrap Columns Not Working
- How to center an unordered list?
- Form inside a table
- How do I change the font color in an html table?
- Do you have to include link rel=”icon” href=”favicon.ico” type=”image/x-icon” /?
- How to make a div 100% height of the browser window
- Pure HTML Back Button
- How to access and download a file from a server using HTML 5
- Layout a flex box similar to a table?
- html : iframe not showing content in html
- How can I capture the right-click event in JavaScript?
- In which directory do I find the HTML file of my wordpress pages?
- How can I publish Word files to a WordPress blog without losing the footnotes?
- Preserve white-space in Page
- How do we remove mystical [X] from text? Image included
- Remove html markup by wordpress
- How can I set different html lang attribute for different countries?
- Add Attribute to p Tag of Post Content
- custom html in page change in browser
- Add Adsense to a website but the server responds with error 510 [closed]
- Can’t save any WordPress post with the html tag in it
- remove string: ‘custom content…’ from every page
- Whitespace Before Doctype
- html entities occur in the_excerpt used as meta description
- Allow Access To Subfolder Of HTML For Logged In Visitors
- Removing Line Break Tags from a Page
- Using Tags Instead of Categories for site structure
- Use Mail-Tag from Contac Form 7 in a script
- Tidy HTML formatting in Gutenberg HTML blocks
- Unable to autoplay and loop a cinemagraph from Imgur
- standard callback function for wp_list_comments
- How to replace a specific html tag in bulk?
- Inserting code into a page just shows raw HTML
- How can I insert a disclaimer in a WordPress site?
- How to play a video after the end of another one via link?
- Moving from Microsoft Front Page 2003 to WordPress