HTML File Paths

The HTML filepath is used to add the location of a file in a webfolder.

It helps the address of a file which helps the browser to access the is used to link externl files such as links , images, .extensions files like that.

HTML File Paths Syntax

<img src="picture.jpg">

<img src="images/picture.jpg">

<img src="/images/picture.jpg">

<img src="../picture.jpg">


<!DOCTYPE html>
        <title>Example of HTML img tag</title>
               <img src="/img/example.png" alt="html">

Click on the "Run This Code" button to see how it works.


Welcome HTML Getting Started HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Links HTML Styles HTML Text Formatting HTML Tables HTML Images HTML Forms HTML Lists HTML Iframes HTML Comments HTML CSS HTML Colors HTML Classes HTML Id HTML javascript HTML Filepaths

HTML Advanced

HTML Doctypes HTML Validation HTML Validation HTML URL HTML URL Encode HTML URL Entities HTML Layout HTML Head HTML Meta HTML Scripts HTML Tags

HTML Media

HTML Media HTML Audio HTML Video HTML Plug-ins HTML Youtube

HTML Graphics