Home
HTML
HTML Images
Tryit: HTML image in a folder
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!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>