0% found this document useful (0 votes)
10 views10 pages

PDF and Assignemnt/3th Day Image

Html, coding

Uploaded by

umairahmed342.mu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views10 pages

PDF and Assignemnt/3th Day Image

Html, coding

Uploaded by

umairahmed342.mu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Welcome to

CNCWEBWORLD

Topic:Image

Trainer –
Shilpa Nikhare
IMAGE
 <img> tag defines an image in an HTML page.
 src: specifies URL of the image file.

 Relative path
<img src="2.jpg">
<img src="img/2.jpg">
 Absolute path
<img src="G:\picture\img\1.JPG">
IMAGE
 Width and Height: sets width and height of the
image.
<img src="2.jpg" width="300" height="200">

 Border: sets a border around the image.

<img src="2.jpg" width="300" height="200"


border="1">
IMAGE
 align: this sets horizontal alignment of the image
and takes value either left, right.

<img src="2.jpg" width="300" height="200"


align="right">

 Align-center: this sets center alignment.

<img src="2.jpg" width="300" height="200" >


IMAGE
 Alt: Specifies alternate name.

<img src="2.jpg" width="300" height="200"


alt="furniture">

 Title: specifies a text title. The browser, perhaps


flashing the title when the mouse passes over the
link.
<img src="2.jpg" width="300" height="200"
title="furniture image">
IMAGE
 Hspace: horizontal space around the image.
 Vspace: vertical space around the image.

<img src="2.jpg" width="300" height="200"


vspace="30" hspace="40">
IMAGE
 Example 1:
IMAGE
 Example 2:
IMAGE
 Example 3:

You might also like