Presented by: Nabin jamkatel
Absolute URL
 An Absolute URL, is thus something that is
independent or free from any relationships.
 When we use URL we point directly to a file.
 Hence absolute URL specifies the exact location of a
file/directory on the internet.
 It also follows that each absolute URL is unique which
means that two URL are identical.
 Syntax :-
<img src=“http//www.photobucket/image/a.jpg”
alt=“image”>
Relative URL
 An relative URL points to a file/ directory in relation to
present file directory
 For example:-
<img src=“../image/asian.jpg” alt=“asian”>
../= one step back from the folder to be on the root.
Differences between Absolute and
Relative URL
 Relative URL consumes more space than Absolute
URL
 Absolute URL consumes more time than Relative URL.
 The Absolute URL consumes more time to download
files where in relative URL the files are already in the
hardisk.
 Relative URL are more secure than Absolute URL.
Base element
 The <base> tag specifies the base URL/target for
relative URLs in a document.
 There can be at maximum one <base> element it must
be in <head> element.
 Syntax:
<!DOCTYPE>
<html>
<base href=“http://www.nepal1.com/images/”>
</head>
<body>
<img src=“Nepalsbeauty.jpg” width=“100” height=“100”
alt=“image”/>
<a href=“www.asm.edu.np”>Asian link</a>
</body>
</html>

File structure

  • 1.
  • 2.
    Absolute URL  AnAbsolute URL, is thus something that is independent or free from any relationships.  When we use URL we point directly to a file.  Hence absolute URL specifies the exact location of a file/directory on the internet.  It also follows that each absolute URL is unique which means that two URL are identical.  Syntax :- <img src=“http//www.photobucket/image/a.jpg” alt=“image”>
  • 3.
    Relative URL  Anrelative URL points to a file/ directory in relation to present file directory  For example:- <img src=“../image/asian.jpg” alt=“asian”> ../= one step back from the folder to be on the root.
  • 5.
    Differences between Absoluteand Relative URL  Relative URL consumes more space than Absolute URL  Absolute URL consumes more time than Relative URL.  The Absolute URL consumes more time to download files where in relative URL the files are already in the hardisk.  Relative URL are more secure than Absolute URL.
  • 6.
    Base element  The<base> tag specifies the base URL/target for relative URLs in a document.  There can be at maximum one <base> element it must be in <head> element.
  • 7.
     Syntax: <!DOCTYPE> <html> <base href=“http://www.nepal1.com/images/”> </head> <body> <imgsrc=“Nepalsbeauty.jpg” width=“100” height=“100” alt=“image”/> <a href=“www.asm.edu.np”>Asian link</a> </body> </html>