Snippets tagged “html-img-tag”
8 snippets use this tag.
- How to Add a Frame Around an ImageCSS
How to add border as a frame for images. Also add image borders to images. See also Circle and Round frames. All with examples.
- How to Add Border to Image in CSSCSS
Learn about how to add border to an image, how to add styling to it and how to specify each corner and have circle borders. Practice all with examples.
- How to Change the Image Source Using jQueryJavaScript
Read this tutorial which will provide you with useful information about the best and easy method that can be used to change the image source using jQuery.
- How to Convert an Image into a Grayscale Image With CSSCSS
Learn the steps to make an image grayscale or black and white using either filter or background-blend-mode properties. See examples.
- How to Crop and Center Images Automatically in CSSCSS
There are many ways of cropping and centering an image in CSS. Read and find examples with the background-image and object-fit properties, and the <img> tag.
- How to Give a Text or Image a Transparent Background Using CSSCSS
Use CSS3 opacity property to make an image or a background transparent. Learn also how to change the opacity while hovering. All with examples.
- How to Prevent the Appearance of Lines Around a Circle Created with clip-pathCSS
On this page, you will find out how it is possible to prevent the appearance of lines around a circle, which is created with the CSS clip-path property.
- When to Use HTML <img> Tag and CSS background-image PropertyHTML
In this snippet, we’ll discuss the differences between the HTML <img> tag and CSS background-image property, which will help you make a better decision.