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 > <html> <head> <title>Title of Document</title> </head> <body> <h1>HTML5 img tag.</h1> <h2>Example of image. </h2> <img src="RoseIndiaPick.jpg" ><br> <i>This is the logo of RoseIndia.</i><br> <h2>Secongd Image.</h2> <img src="RoseIndiaPick" alt="RoseIndia Image" height="19"> </body> </html> |
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.