Tuesday, January 1, 2019

An image in another folder

An image in another folder:- 


<html>
<body>

<h2>Images in Another Folder</h2>
<p>It is common to store images in a sub-folder. You must then include the folder name in the src attribute:</p>

<img src="/images/car.gif" alt="car Icon" style="width:150px;height:150px;">

</body>
</html>

OUTPUT:-   


  • If not specified, the browser expects to find the image in the same folder as the web page.
  • It is common to store images in a sub-folder. You must then include the folder name in the src attribute.

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...