Answers for "html img src local file"

2

html local image

PATH
<img src="img.jpg" >
<img src="images/img.jpg" >
<img src="/program/images/img.jpg" >

NAME
<img src="img.jpg" alt="Name in the site" >

SIZE
<img src="img.jpg" style="width: 300px; height: 150px" >
<img src="img.jpg" style="width: 30%; height: 20%" >
Posted by: Guest on August-03-2021
0

image urol in src local image

<!DOCTYPE html>
<html>
   <head>
      <title>
         HTML img tag
      <title>
   </head>

   <body>
      <img src="file:/D:/images/logo.png" alt="Site Logo" width="50" height="50">
   </body>
</html>
Posted by: Guest on February-01-2021
7

path in html

/   = Root directory
   .   = This location
   ..  = Up a directory
   ./  = Current directory
   ../ = Parent of current directory
   ../../ = Two directories backwards
Posted by: Guest on March-26-2020

Browse Popular Code Answers by Language