1.

What is the correct syntax of web address?(a) path://prefix.port:domain/filename/scheme(b) scheme://prefix.domain:port/path/filename(c) prefix://scheme.port:domain/filename/path(d) port://domain.filenmae:path/scheme/prefixThis question was posed to me in unit test.My question comes from URL Encoding topic in division HTML Images & Web Page Files of HTML

Answer»

Right option is (b) SCHEME://prefix.domain:PORT/path/filename

The EXPLANATION is: The CORRECT syntax for a web address is scheme://prefix.domain:port/path/filename, where scheme is for https or http, prefix is for domain like www, domain denotes domain NAME, port defines port number, path defines path at server, filename is for name of the document.



Discussion

No Comment Found

Related InterviewSolutions