PSDtoHTML logo

How to create a banner in HTML

Before creating a banner in HTML you should decide whether you would like a dynamic banner or a static banner. If you would prefer a dynamic banner it is of main importance to create this banner with the correct size in a .gif extension format. Using a .gif image will ensure browser compatibility and dynamic element support which makes this type of image the ideal banner file.

After completing the jpg, gif or any other image format banner, you can start creating the banner in HTML. Because banners are always clickable we have created an example which contains a link:

<a href="#">
<img src="banner.gif" alt="#" width="" height=""/>
</a>

By means of the CSS the banner can be positioned and formatted.



Was this useful?