Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to add image in HTML , HTML5 or add image in your Website/webpage

Here are the Steps to insert or Display images in Html,html5 or web page using tag :


1. tag is used to add image in html page or website.

2. tag have may attributes like :src, alt, width, height, align.

3.Almost all latest browser Support tag.

4.Put tag in tag in your web page.
Example:
                                                           
5.src attribute provide the link or path of the image either local or internet link.while the Alt Attribute display text of alt attribute when image path is not correct or unavailable.


6.Earlier version of HTML are also support other tag attribute like: hspace, aligh, border.
   But HTML5 does not support these attributes.
Example:

   
          Image Tag
   
   
   
  The output of above code is:



This post first appeared on The Code Developer, please read the originial post: here

Share the post

How to add image in HTML , HTML5 or add image in your Website/webpage

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×