What does the elements mean in syntax given for URL in HTML?

Asked: Apr 15, 2023

URL stands for Uniform Resource locater. This helps just like the Internet pooling concept where the people recognize themselves and others people connected together with each other. URL allows a document to be located on World Wide Web (www).

scheme://host.domain:port/path/filename

This code has got with no meaning but there are some elements that are defined:

scheme - Is the type of internet service. In this HTTP can be used which has to most common type.

Host – It is used to control the host name and fetch the information from other templates as well.

Domain – It defines the internet domain that is google.com.

:port – It defines the port number on the Host where the default port that is being used is 80.

path – This defines the path of the server that consists of a hierarchical directory structure.

filename - It defines the unique name for the file or the document that saves it.

Asked by brijesh

Answers (0)

No answers yet. Be the first to answer!