Here are the basic HTML attributes for adding images to web pages and WordPress. Google recommends all images now include dimensions (explicit width and height tags) to help prevent layout shifts while your pages load. Dimensions are in pixels, it’s also recommended to add an Alt tag to your images. Adding these properties can help with SEO (a little bit!)
HTML Image Attributes <img src="your-image.jpg" alt="Your Image" width="500" height="500">