HTML File PathsAn 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:
File paths are used on webpages to link external files like:
There are two types of File Paths:
Absolute File PathsAbsolute file path specifies full URL address. Example:Test it NowRelative File PathsThe relative file path specifies to a file which is related to the location of current page. Example:Let's take an example to see how the file path points to a file in the images folder located at the root of the current web. Test it NowExample:This is how a file path points to a file in the images folder located in the current folder. Test it NowExample:When the images folder located in the folder one level above the current folder. Test it NowImportant Points for File path:
Next TopicHTML Head |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India