Here, we will implement <img> tag. The <img> tag is used to insert image in a document. The image is presents as part of web page. But it is important to know that image is not a technically part of wep page. Generally, Maximum browser supports only GIF, JPEG and PNG format.Attributes of <img> tag :
|<img src="URL" altr="TEXT" />|
<!DOCTYPE html >|
<title>Title of Document</title>
<h1>HTML5 img tag.</h1>
<h2>Example of image. </h2>
<img src="RoseIndiaPick.jpg" ><br>
<i>This is the logo of RoseIndia.</i><br>
<img src="RoseIndiaPick" alt="RoseIndia Image" height="19">
The img tag is available in both HTML5 and HTML4.01. So there is no difference.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.