“Which option is an absolute path?
/public/styles.css
./script.js
../src/nav.html https://freecodecamp.org”
I chose option 4. I now learned that this is not an absolute path, because it does not point to a resource (fair enough!)
What completely confuses me though is that in just the previous lecture I was taught that absolute paths contain the protocol and start at the root directory, which the “correct” quiz option here does not do.
How does this make sense?
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Challenge Information:
Working with Links - What Is the Difference Between Slashes, a Single Dot, and Double Dot in Path Syntax?
I’m having the same problem. The curriculum plainly states in the very lesson prior to this one that “An absolute path also includes the protocol”. Yet, the correct answer to this question (“Which option is an absolute path?”) does not itself include a protocol.
Did you even read what I said? I know that one of the choices given is just a domain. I’m not talking about that one. I’m talking about the other answer. The one that didn’t include http://, https://, or file:// at the beginning of it, despite the curriculum saying that an Absolute Path would.
There are two types of absolute paths: external (the web), local (your machine).
The hint messages give useful information.
Be mindful your tone may come across as a little aggressive.
In the future, please create your own topic when you have a question. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.