HTML Image Tag

The HTML Image Tag <image> can’t be alone,

Example Source Code

<!DOCTYPE html>
<html>
<head>
<title>
</title>
<head>
<body>
<h1>
</h1>
<p>
<p/>
<img src=”name of image.bmp” width=”120px” height=”120px” alt=”This is an image” />
<body>
</html>

Notes:

src

is an attribute that tells the browser where to look for the image. if its the same folder then you can put just the name, but if is a link on the web or the computer then you need to put the hold link, this is not optional

width

it specify the width of the image, this is optional

height

it specify the height of the image, this is optional

alt

it just describe the image in words , this is for SEO purpose, also this is just in can the image cannot be display, anyway this is optional

Similar Posts