In HTML, <img> is the tag that defines the image in the text. Its function is to provide the name of the picture, the size of the picture and some image attributes of the picture, such as Alt, which can give the picture a name to tell friends. This is also a detailed way to optimize seo. This way, Baidu Spider can know what your picture is, or when you publish this picture, Baidu Spider can better grab your picture. It’s convenient for you to optimize what you want to optimize. There is also the ability to independently define the information width and size of a particular picture.
So the writing format for inserting pictures into the code is like this
So what he’s showing is this.
This is the size of the original picture.
You can define it this way when you need to redefine it.
In <img>, you can define the size of the image independently.
This size for the rendering is the width and height defined in <img>.
Above is the use of picture labels in HTML introduced by Xiaobian. I hope it will be helpful to you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support to developpaer.
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!