Page 117 - CA_165_V2.0_Flipbook
P. 117
</P>
<IMG SRC = "DOLPHIN COPY.JPG" >
</BODY>
</HTML>
The output of the preceding HTML code is as follows:
Image of ‘dolphin’
inserted due to
‘IMG SRC’
Notes
The ALIGN attribute of <IMG> tag is not supported in HTML5.
BORDER Attribute
This attribute is used to specify the width of the border around the image. By default border is not set in
the page. Syntax to use the BORDER attribute of the <IMG> tag is as follows:
<IMG BORDER = "Value">
For example:
<IMG SRC="C:\dolphin.JPG" BORDER="2">
Notes
The BORDER attribute of <IMG> tag is not supported in HTML5.
WIDTH Attribute
This attribute is used to specify the width of the image in pixels or percentage, in comparison to its
original size.
<IMG WIDTH = "Value/Percentage">
For example:
<IMG SRC ="C:\dolphin.JPG" WIDTH="50%">
More About HTML 115

