Horje
How to create HTML Images in Another Folder

If you have your images in a sub-folder, you must include the folder name in the src attribute:


Example of HTML Images in Another Folder

you must include the folder name in the src attribute:
<img src="/images/html5.gif" alt="HTML5 Icon" style="width:128px;height:128px;">

Full Example of HTML Images in Another Folder

index.html
Example: HTML
<!DOCTYPE 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/html5.gif" alt="HTML5 Icon" style="width:128px;height:128px;">

</body>
</html>

Output should be:

Full Example of HTML Images in Another Folder





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


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