answersLogoWhite

0

Most common mistake for this is when a link is absolute when it should be relative.

Relative means that the path is relative to the current directory the file is in.

For example, let's say we have a folder named "web" and inside "web" we have another folder called "pages". Now, in the folder "web" we have a "index.html" file and inside the "pages" we have a "home.html" file.

If we want to link from "index.html" to "home.html" using relative path we would use:

Home

If we want to link from "home.html" to "index.html" using relative path we would use:

Index

".." indicates a parent folder. If we wanted to move two parent folders we would use "../.." .

Relative paths help us for exactly that reason, it doesn't matter where your file is as long as you can find it relatively to a particular file.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

Where is the HTML file on you blog?

Where is the HTML file on you blog?


How do you send a HTML attachment?

You can save your HTML file from the browser as an Archived HTML file, but the best way to send a HTML file and its folders is to zip it.


What is th difference between saving an HTML file and opening an HTML file?

When you save an HTML file, the contents of that file are written on the hard drive. This has the effect of changing the contents of the file. When you read and HTML file, the file remains unchanged on the disk.


How do you save a text file as HTML if the HTML file choice is not in Notepad?

When you go to save your file, type in your desired file name, then type ".html" on the end. This tells Notepad that you want to save your document as an HTML file.


What is an HTML file extension?

The original extension of a HTML page was .htm because of file name restrictions that limited filetype extensions to 3 characters, today you can use 3 or 4 so either .html or .htm is perfectly fine.


How do you create web by HTML tages?

Web can be created by creating a .html file. Inside the HTML file, you can put the tags of HTML.


How do you run HTML notpad code?

To "run" HTML code, you simply need to open it using a web browser. This can be done by placing the file on the server and pointing the browser to it, or you can use the native "Open File..." command in the browser itself. If you want to learn HTML you can visit one of the websites in the related links.


How do you get rid of HTML?

open HTML file, delete "code", save file


Why do my links never work when I use them in HTML it always says file?

You need to add the Hypertext Transfer Protocol to the linkhttps://example.com/


Put file in the same directory as my HTML file?

Yes you need to put the file in the same directory. This will get the file to be executed from the HTML file.


How do you save a text file as HTML?

go to file menu--> select option "save as" --> then choose the file type "html document" name the file. and you are done


What is a HTML file?

a website file