Skip to main content

Iframes and File Paths

Iframes and File paths | HTML: iframes are using to get the other documents and File paths are using to get the files by suitable paths.

Here is the iframesandPaths.html:

  1. <!DOCTYPE html>
  2. <html lang="en" dir="ltr">
  3.   <head>
  4.     <title>Iframes and Paths in Html</title>
  5.   </head>
  6.   <body>
  7.     <!-- Ifame in Html -->
  8.     <iframe src="ClassesAndIds.html" style="height:505px;width:300px;" title="Iframe"></iframe>
  9.     <!-- File Paths in Html -->
  10.     <img src="park.jpg" alt="park in current folder">
  11.     <img src="images/park.jpg" alt="park in images folder">
  12.     <img src="/images/park.jpg" alt="park in root of current web">
  13.     <img src="../images/park.jpg" alt="park in one level up folder">
  14.   </body>
  15. </html>

Web view of Html:



Here is the Video: