How images are inserted in an HTML Document? Explain with example?



The simplest way to place an image on the webpage is to use <IMG> tag. These images are also known as inline images because they are inserted in the line of the text.
The <IMG> tag requires the SRC attribute to specify the image file’s location. The simplest form of this tag is
<IMG SRC = “URL”>
Here URL may be absolute or relative URL. The end tag </IMG> is optional.
For Example :-
<html>
<head>
<title></title>
</head>
<body bgcolor="blue">
Life is too short to live.
<hr>
<img src="F:\WALLPAPERS\Fav\content-management (27).jpg">
</body>
</html>

Comments

Post a Comment

Popular posts from this blog

Write a program to add two number using inline function in C++?

Traversing of elements program with algorithm and Flowchart