HTML Introduction HTML Basics HTML Editor HTML Basic Tags HTML Document HTML Attributes HTML Formatting HTML Links HTML Bookmark HTML Imggages HTML images HTML Table HTML Lists HTML Forms

HTML IMAGES


<img> tag is used to display images in HTML pages.
<img> is an empty tag.

<img> tag has the following attributes.


  • Alt:-The alt attribute provides alternative text if the image does not display for any reason in the browser.
  • Width & Height :-These attributes are used to change the height and width of an image.Style attribute is used to specify height and width.

Types of images


  • JPG
  • GIF
  • PING

Example

Try It Yourself