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

0

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 Apr 15, 2023 at 00:09
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.