espionage09 / Tea-Cozy

1 stars 0 forks source link

Best practices on Linking & File management #4

Open tommygebru opened 5 years ago

tommygebru commented 5 years ago

Consider using local file paths for your local project assets for easy access and offline use, for further reading here are two excellent resources on dealing with files and linking to file paths 😄 https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/Dealing_with_files



HTML file paths should have this structure "resources/images/donut.jpg"

https://www.kirupa.com/html5/all_about_file_paths.htm


This also goes for your background-images in the css document instead of relying on separate web URL links coming from different servers

CSS file paths should have this structure "mages/location-background.jpg"

tommygebru commented 5 years ago

Also as you begin to use local file paths, make sure to become familiar with relative vs absolute file paths Relative file paths, will secure the project assets and make them viewable anywhere

Absolute file paths, will require that a specific domain name or url to access and view the documents

You can review these concepts further here https://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/