[Solved] Relative File Path For a Picture


Try, <img src="https://stackoverflow.com/questions/47939821/Rezepte/GrilledFruitKebab.jpg">

Remember,

  • Is the image in the same directory as the file referencing it?
  • Is the image in a directory below?
  • Is the image in a directory above?

By “below” and “above”, I mean subdirectories and parent directories. Relative file paths give us a way to travel in both directions. Take a look at my primitive example:
enter image description here

Here is all you need to know about relative file paths:

  • Starting with “https://stackoverflow.com/” returns to the root directory and starts there
  • Starting with “../” moves one directory backwards and starts there
  • Starting with “../../” moves two directories backwards and starts
    there (and so on…)
  • To move forward, just start with the first subdirectory and keep
    moving forward

solved Relative File Path For a Picture