filmov
tv
Absolute aur Relative file paths kya hota hai | HTML file Paths tutorial in Hindi@arvindprogramming

Показать описание
#Absolute aur #Relative file #path kya hota hai | #html file Paths tutorial in Hindi @arvindprogramming
Absolute file paths and relative file paths are used in HTML to specify the location of files or resources such as images, stylesheets, or scripts.
1. Absolute File Paths:
- Absolute file paths start with the root directory of a website or the file system. They provide the full and complete path to a file from the root directory onwards.
- Absolute file paths contain the full URL or local file path, including the protocol (http://) or file system root (/) and all the directories needed to reach the file.
- They are generally used when the file or resource is located on a different website or server, or when referencing files from a different directory hierarchy.
2. Relative File Paths:
- Relative file paths are defined relative to the current page or file location. They indicate the path to a file based on the current directory or file structure.
- Relative file paths do not contain the protocol or the complete URL; they only specify the necessary path information.
- They are commonly used when referencing files within the same website or when the files are in the same directory or a subdirectory.
Overall, the main difference between absolute and relative file paths is the level of specificity in specifying the file's location. Absolute paths provide the complete path information, starting from the root, while relative paths indicate the path relative to the current page or file. Social Media Links-
Absolute file paths and relative file paths are used in HTML to specify the location of files or resources such as images, stylesheets, or scripts.
1. Absolute File Paths:
- Absolute file paths start with the root directory of a website or the file system. They provide the full and complete path to a file from the root directory onwards.
- Absolute file paths contain the full URL or local file path, including the protocol (http://) or file system root (/) and all the directories needed to reach the file.
- They are generally used when the file or resource is located on a different website or server, or when referencing files from a different directory hierarchy.
2. Relative File Paths:
- Relative file paths are defined relative to the current page or file location. They indicate the path to a file based on the current directory or file structure.
- Relative file paths do not contain the protocol or the complete URL; they only specify the necessary path information.
- They are commonly used when referencing files within the same website or when the files are in the same directory or a subdirectory.
Overall, the main difference between absolute and relative file paths is the level of specificity in specifying the file's location. Absolute paths provide the complete path information, starting from the root, while relative paths indicate the path relative to the current page or file. Social Media Links-