- Thursday, May 14, 2009, 6:06
- Programming
- 1,785 views
HTML is capable to embed images in a webpage; it can be done by using html tag <img>. Image tag is not a container tag means there is no closing tag but it has several attributes.
Tag Syntax
<img src=”picpath” height=”10” width=”20” alt=”image description” align=>
Src
Src attribute of image tag defines source of image, src is always set to the path of image.
Html Code
<html>
<head>
<title>
Html image example
</title>
</head>
<body>
<img src="a.jpg"> or ...
Full article