Learn English – What could a part of path of URL be called


http://example.com/test/test/coffee.html <- this is called a URL

/test1/test2/ <- this called a path

In this context, what would be a proper expression for a part of that path, such as test2?

Best Answer

It's called the path segment.

See: https://www.rfc-editor.org/rfc/rfc2396#section-3.3

The path may consist of a sequence of path segments separated by a single slash "/" character.