Absolute File Path

The Absolute File Path is an address to a file location.  When displaying the Absolute File Path, write the full name of the URL for that web document, folder, or image.


Active Learning Question:  What is the Absolute File Path for jealous.html?

jealous-html

Answer:  The Absolute File Path is: http://www.itw.codeberkeley.com/jealous.html

  • The entire domain is displayed: including http:// and the www.
  • There is a “/” then the name of the document “jealous” is displayed
  • The .html is included in the address.

See the Pen Absolute File Path by jhoffmanbcc (@jhoffmanbcc) on CodePen.


Sub Directories

When contents are placed inside a folder, the folder is considered a directory.

file-path-3

The first forward slash “/” in the Absolute File Path above indicates a folder location.  There is a folder called “lessons” located in the root directory.

file-path

The second “/” indicates the document named “file-path.html” and is located inside the folder “lessons”.


Active Learning Question:

  1. Find the Absolute File Path for the image keyboardkitten.jpg
  2. Place the Absolute File Path within an External URL Link

Below is a visualization of the file path location for the image.

keyboard-kitten

 

See the Pen KeyboardKitten Code by jhoffmanbcc (@jhoffmanbcc) on CodePen.

Questions