Answers for "html add image from 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
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
0

html relative path

<!--The ./ means the contact.html file is in the same file 
as the file that is linked to it-->
<a href="./contact.html">Contact</a>
Posted by: Guest on August-18-2020

Browse Popular Code Answers by Language