The mistakes that novices often make when making personal homepages are path problems, and there are also phenomena where file names or folder names are in Chinese. I think these can be avoided. Here I will talk about some of my opinions. If you have any comments, please leave a comment.
First of all, I want to remind everyone that when making a website, it is best to create a folder for the site first. It is best not to use Chinese for all subfolders or files in the folder, because Chinese is displayed in the IE address bar in a certain way. Form (I don’t know the specific method, but it’s the expression of the dish).
Next, let’s talk about the path problem. The path problem is mainly divided into absolute path and relative path.
Absolute path also means writing your path in full (you should be able to understand this), for example, there is a windows folder under your C drive with the notepad.exe file, then you need to write the absolute path, which is c :windowsnotepad.exe. I recommend not to use this. If you want to use it, use it only when citing links from other people's websites.
Benefit: This file can be used anywhere
Disadvantages: This disadvantage should be included in web page production. If this file is moved, it will no longer be accessible correctly.
Relative paths generally consist of [..] [.] and / and other delimiters. For example, if your current location is the C drive and you want to access the file C:windowsnotepad.exe, then you can Use a path like windows/notepad.exe to access (of course these were used in the DOS era. Now everyone uses Windows, such commands are rarely used, but I think everyone should be able to understand it.
illustrate:
..Access files in the upper-level directory
Use the file name directly as a link without any separators, such as <a href="index.html">Homepage</a>.
../../ accesses files in multi-level directories, ../ represents a directory
Advantages: You can access files at any time. Even if your entire site folder is moved, you can still access it normally without inaccessible errors.
Disadvantages: It is easy to mistake the location of files or directories
Let me give you a reminder: When you are making a website, it is best to create a site, then the software will automatically set the path to a relative path. For example, Dreamweaver or Frontpage have this function.