How to make an HTML link to open a folder ? Last Updated : 18 Jun, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report To create a link to a file or folder, you need to use an <a href > tag. HTML can be used to open a folder from our local storage. To open a folder from our local storage, use the 'href' attribute of HTML. In the href attribute, we specify the path of our folder. Syntax:<a href="Path"></a>Examples to open local folders using HTMLExample 1: Implementation to show how to make an HTML link to open a folder. html <!DOCTYPE html> <html> <head> <title>HTML link to open a folder</title> </head> <body> <h1>Opening a folder from HTML code</h1> <a href="file:///C:/path/to/your/folder" target="_blank">Click to open the folder</a> </body> </html> Output:Example 2: Implementation to show how to make an HTML link to open a folder. html <!DOCTYPE html> <html> <head> <title>Sample Code</title> </head> <body> <h1>Opening a folder from HTML code</h1> <a href="C:\Users\ABC\Desktop\cpp"> Click to open a folder </a> </body> </html> Output: How to make an HTML link to open a folder ? Comment More infoAdvertise with us Next Article How to use anchor tag to open links in HTML ? A anmolsharmalbs Follow Improve Article Tags : Web Technologies HTML HTML-DOM HTML-Questions Similar Reads How to Insert an Image from Folder in HTML The <img> src attribute is used to insert an image from folder in HTML. The src attribute accepts absolute and relative file path. Table of ContentUsing HTML <img> src AttributeInsert Image from Folder in CSSInsert Image from Folder using HTML <img> src AttributeThe <img> tag 1 min read How to Link a Button to Another Page in HTML? Linking a button to another page is a common requirement in web development. It can allow the users to navigate between a website's different sections or pages. This can be done using the various HTML elements.PrerequisitesHTMLCSS1. Using <a> Tag Styled as ButtonThe <a> tag is traditiona 3 min read How to make HTML files open in Chrome using Python? Prerequisites: Webbrowser HTML files contain Hypertext Markup Language (HTML), which is used to design and format the structure of a webpage. It is stored in a text format and contains tags that define the layout and content of the webpage. HTML files are widely used online and displayed in web brow 2 min read How to make a call-able link using HTML ? To make a callable link using HTML means creating a hyperlink that allows users to initiate a phone call directly from their devices. This is done using the <a> tag with the href attribute set to tel: followed by the phone number. When clicked, this link opens the phone dialer on supported dev 2 min read How to use anchor tag to open links in HTML ? In this article, we will learn how to use anchor tags to open links in HTML and we will implement different operations using anchor tags in HTML. We will see in this article, how to redirect another website through an anchor tag and how to open a blank new tag for any new link to open an image in a 3 min read How to Create a Link to Send Email in HTML ? Incorporating email links into HTML pages facilitates a smooth way for users to send a message directly from the webpage. We will see how to create these email links, making your web pages user-friendly and interactive.Using Mailto Protocol with Predefined SubjectTo create a link to send an email in 2 min read Like