Adding Images in webpage with Image tag :-
• Image tag in html is used to import image in webpage.
• <img> tag is used to insert image in webpage and src attribute used to give web address of image.
• It is also empty element means it doesn’t have end tag.
• Alt attributes helps during slow internet connection provides alternate text.
• Syntax of image tag is :-
<img attributes=”img location” />
• Some popular image extensions are as follows :-
1. JPEG (joint photography expert group):- .jpg
2. PNG ( Portable Network Graphics) :- .png
Comments
Post a Comment