Software Development | Troubleshooting

Help: Troubleshooting Common Issues

Select an issue to see what to check. Most problems show up as an error in the browser DevTools Console, so open it first.

Image Not Displaying

Use relative paths for files in your own site. A relative path does not start with a protocol such as https://.

Relative path example:

<img src="images/my-image.png" alt="Description of the image">

Path notation in relative references

  • A single dot ./ means the current folder, so ./images/logo.png is the same as images/logo.png. You normally do not need it; just start the path with the folder or file name.
  • Two dots ../ mean the parent folder (up one level).
  • A leading forward slash / starts at the root of the site. Avoid it on GitHub Pages project sites, where your site lives in a subfolder of the domain.

Absolute URLs include the protocol and domain. Use them for resources on other sites.

Absolute URL example:

<img src="https://example.com/images/breakfast.svg" alt="Breakfast illustration">

See also: Understanding File Paths and Quick Reminder About File Paths – CSS-Tricks

CSS Not Applying
Changes Not Showing in the Browser
JavaScript Not Working