0% found this document useful (0 votes)
2 views1 page

HTML File Paths

HTML file paths indicate the location of files within a website's folder structure, functioning like an address for web browsers. They are essential for linking external resources such as images, CSS, and JavaScript files in HTML documents. Various path types include relative paths, root-relative paths, and parent directory paths to specify file locations accurately.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

HTML File Paths

HTML file paths indicate the location of files within a website's folder structure, functioning like an address for web browsers. They are essential for linking external resources such as images, CSS, and JavaScript files in HTML documents. Various path types include relative paths, root-relative paths, and parent directory paths to specify file locations accurately.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

HTML File Paths

An HTML file path is used to describe the location of a file in a website folder.
File paths are like an address of file for a web browser. We can link any
external resource to add in our HTML file with the help of file paths such as
images, file, CSS file, JS file, video, etc.

The src or href attribute requires an attribute to link any external source to
HTML file.

Following are the different types to specify file paths:

1. <img src="picture.jpg"> It specifies that picture.jpg is located in the same


folder as the current page.
2. <img src="images/picture.jpg"> It specifies that picture.jpg is located in
the images folder in the current folder.
3. <img src="/images/picture.jpg"> It specifies that picture.jpg is located in
the images folder at the root of the current web.
4. <img src="../picture.jpg"> It specifies that picture.jpg is located in the
folder one level up from the current folder.

You might also like