An image in another folder:-
<html>
<body>
<h2>Images in Another Folder</h2>
<p>It is common to store images in a sub-folder. You must then include the folder name in the src attribute:</p>
<img src="/images/car.gif" alt="car Icon" style="width:150px;height:150px;">
</body>
</html>
<html>
<body>
<h2>Images in Another Folder</h2>
<p>It is common to store images in a sub-folder. You must then include the folder name in the src attribute:</p>
<img src="/images/car.gif" alt="car Icon" style="width:150px;height:150px;">
</body>
</html>
OUTPUT:-
- If not specified, the browser expects to find the image in the same folder as the web page.
- It is common to store images in a sub-folder. You must then include the folder name in the src attribute.
No comments:
Post a Comment