in Web Technologies
4,033 views
6 votes
6 votes

In a web server, ten WebPages are stored with the URLs of the form http://www.yourname.com/var.html; where var is a different number from 1 to 10 for each Webpage. Suppose the client stores the Webpage with var = 1 (say W1) in the local machine, edits and then tests. Rest of the Webpages remains on the web server. W1 contains several relative URLs of the form "var.html" referring to the other Webpages. Which one of the following statements needs to be added in W1, so that all the relative URLs in W1 refer to the appropriate Webpages on the web server?

  1. <a href: "http://www.yourname.com/", href:"...var.html">
  2. <base href: "http://www.yourname.com/">
  3. <a href: "http://www.yourname.com/">
  4. <base href: "http://www.yourname.com/", range:"...var.html">
in Web Technologies
4.0k views

2 Answers

7 votes
7 votes
Best answer
selected by
by

2 Comments

Is Option D incorrect because any attribute of base tag with the name "range" does not exist?
4
4
yes. it is invalid.
3
3
1 vote
1 vote

The tag specifies the base URL/target for all relative URLs in a document. There can be at maximum one element in a document, and it must be inside the element. Source: http://www.w3schools.com/tags/tag_base.asp

Answer is B

Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true