COMPUTER LECTURES

HOME About us HTML ONLINE CODE EDITOR CONTACT US
HTML | IMAGE
The image tag can be used as a hyperlink. Sometimes it replaces the text in an anchor tag set with the image tag.
Note : The image extension can be either PNG, JPEG or GIF

SYNTAX

OPENING TAG CLOSING TAG
<img...>

Menu Tag in HTML

<img src="computerlectures.png" height="50%" width="50%">

Example : image.html

<!DOCTYPE html>
<html>
<head>
<title>Computer lectures | Image</title>
</head>
<body>

<img src="image.png" width="40%" height="40%" alt="Image">

</body>
</html>

The output on the web broswer

Image