I uploaded the required files in the “htdocs” folder and linked a .html file and an image to the “index.html” file specifying the path as /htdocs/“file-name”.
But neither image nor the linked page is working.
Then, what should be the file path name for linking items?
htdocs or for example on another hosting can have the name public or www is the place where files that will be publicly available (online via browser) are placed.
Don’t look at it as another folder in the tree,
but as a starting place from where all files for your website are loaded.