What is URL brefily about different components of a url
Answers
Answer:
URL is an acronym for Uniform Resource Locator and is a reference (an address) to a resource on the Internet
Explanation:
What is URL ?
A Uniform Resource Locator, colloquially termed a web address, is a reference to a web resource that specifies its location on a computer network and a mechanism for retrieving it. A URL is a specific type of Uniform Resource Identifier, although many people use the two terms interchangeably.
Briefly describe about different components of a URL?
Protocol – the method used to process the URL eg. http or https
Domain – the domain name eg. www.tealium.com
Path – the section and page on the site
Hash – identifies a section within the page
Query String – key/value parameters containing dynamic data passed to the page
Example:
http://www.tealium.com/app/solutions/?example=test&example2=test2#section3
Data Layer Variables
In terms of the data layer, these URL components appear as follows:
dom.domain : "www.tealium.com"
dom.pathname : "/app/solutions/"
dom.query_string : "example=test&example2=test2"
dom.hash : "section3"
dom.url : "http://www.tealium.com/app/solutions/?example=test&example2=test2#section3"