Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does windows link html files to folders?

Almost every time you save a web page from a web browser to your local computer a PAGENAME.html (or .htm) file is created and a folder named 'PAGENAME_files' that contains resources specific to that page.

If you copy/move/delete either the folder or the .html file Windows automatically does the same operation the other file as well.

This behaviour also happens if you create a file named 1.html and a folder called 1_files.

How does this link happen? And why does it work only with web files?

like image 878
Nyalotha Avatar asked Aug 10 '17 13:08

Nyalotha


People also ask

How do I link to a folder in HTML?

html in your directories, you can make links to these pages by just linking to the directory name. Your browser will always pick up index as the main page for that folder. This means you can condense href="folder/index. html" into href="folder/" .

How do I open an HTML folder in Windows?

HTML can be used to open a folder from our local storage. In order to open a folder from our local storage, use 'HREF' attribute of HTML. In the HREF attribute, we specify the path of our folder.

How do I link a file in HTML from my computer?

The <a href=" filename"> tag signifies a link is coming and the file name is the target of the link (where you will jump to). The text between the <a href=" filename"> tag and the closing tag </a> is the second piece of the link. This text will be highlighted in your document.

How do you display the contents of a folder in HTML?

Use the dir tag in HTML to display directory list. This is very similar to <ul> tag but do not use <dir> since it is deprecated now.


1 Answers

This is a shell feature, not a file system feature. The shell copy engine just looks for a folder with the same name (plus a localized suffix) when copying/moving .htm[l] files.

This feature is called Connected Files and is documented here.

like image 105
Anders Avatar answered Oct 09 '22 10:10

Anders