Horje
How to create The src Attribute for Image

The required src attribute specifies the path (URL) to the image.


Full Example of The src Attribute

Note: When a web page loads, it is the browser, at that moment, that gets the image from a web server and inserts it into the page. Therefore, make sure that the image actually stays in the same spot in relation to the web page, otherwise your visitors will get a broken link icon. The broken link icon and the alt text are shown if the browser cannot find the image.
index.html
Example: HTML
<img src="https://itupto.com/avatar.png" alt="Trulli">

Output should be:

Full Example of The src Attribute





Category:
Web Tutorial
Sub Category:
HTML Images
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference