PDA

View Full Version : Question about html/css and linking local files a question of security.


DoodleDo
May 19, 2017, 02:51 PM
I'm sorry for this total noob question, but I'd rather be safe than sorry. (ive only been coding for like 2 weeks)
I am making a joke website for my brothers birthday using notepad++ and my limited knowledge. It won't ever be a live website and only he will have access to it.
I am currently in the process of coding the links to some local files. I know chrome and Firefox don't allow you to link to local files for obvious security reasons. There are workarounds that I haven't tried because I want to make sure that I won't be putting my files and computer at a higher risk because I'm linking to local files through my fake website.
Any advice is greatly appreciated.
Thank you in advance.

InfoJunkie4Life
May 22, 2017, 11:02 AM
What do you mean by linking local files.

Are you trying to utilize style sheets, create download links, insert images, etc.

Often in html using the <a href tag, you can link protocols, document anchors, and both relative and absolute URL's.

Here (https://www.w3schools.com/tags/att_a_href.asp) is a good rundown.