Computer Science, asked by harshitkumar00010, 6 months ago

With the help of an example, write the code in HTML to create an image link on a web page.​

Answers

Answered by amrikhoreAmrik
2

<html>

<head>

<title> Image </title>

</head>

<body>

<img src="image.jpg" width=50px alt="This is an image">

</body>

</html>

Note :

• Your imge file can be of any extension like .png , .jpg or .gif . And you can also place your image in a folder in the case , the format will be src="/folder name/image file/"

• I have mentioned only the width to adjust the aspect ratio respectively. If you want , you can also use height attribute .

• You can use percent representation as well in width and height attribute instead of pixel or px representation

Similar questions