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

How to add images in HTML or HTML5 using Image tag

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


Html Image Tag
1.Image tag() is used to add images in html page or website.

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


3.Almost all latest browser support tag.


4.Put Image tags tag in tag in your web page.

Html Image Tag
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.It will look like the below image.Html Image Tag





Html Image Tag

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
   
   
   

Html 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 images in HTML or HTML5 using Image tag

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×