HTML Basic
HTML img src attribute
The <img> tag, which is indispensable for inserting pictures in HTML webpages, where the picture URL is placed through src, lets the browser know which picture is to be displayed. In simple terms, the <img> tag tells the browser to insert the picture. The src tells the browser the source of the image.
HTML img src syntax
<img src="URL of image to be inserted" alt="Alternative text for image">
The "URL of the image to be inserted" in the grammar, as the name suggests, is the URL of the image, and alt is the alternative text of the image, which is not required.
HTML img src works by downloading the image from the server to the browser record of the computer that opened the webpage while the webpage is opened, and then displaying the image on the screen through the browser, so before inserting the image using img src, It must be confirmed that the graphic files can be displayed normally to prevent netizens from seeing the wrong screen.
Post a Comment
0 Comments