Image tags with its source attribute points to the uniform resource locator that is URL of the graphic file to be displayed to add an inline image to the web document. The tag is added to the HTML document at the location in which we want to display the image. Then file name is replaced with the URL of the image we want to display.
When an inline image is inserted in a document along with text by default the text is aligned with the bottom of the image. The default alignment can be changed using the image tags align attribute. To align the text at the top of the image we can use few attributes. Browsers display images inline and text does not wrap around images but an image can be displayed on the right or left side of the document such that the text surrounds the image. Such an image is termed as a floating image in professional web design.
A floating image can be easily created by using the image tags align attribute that is left or right. Hyper Text Markup Language also supports image scaling. Scaling down of an image means that the image would be displayed in a size described by the image tags height and width attributes, irrespective of the actual dimensions of the image. The download time of the image does not reduce if we specify dimensions less than the actual image dimensions. The browser still downloads the actual image and then scales it before displaying it on our web page.
Scaling up on an image can also be done. It is similar to scaling down of the image that we attain by using the height and width attribute. Scaling up an image causes deformation of image that is termed as pixilation. Hence scaling up of an image should be avoided as far as possible in professional web design
Alternative text can also be provided for users who use text based browsers. Alternative text tells the user about the presence of a graphic image and provides a brief description of the same. This can be achieved by using image tags.
Web browsers display images with a border around them. The border attribute of image tag can be set by providing a value for the border thickness in pixels. White space around an image can be provided by using space attributes of the image tag. Space tag is used to add vertical and horizontal space around the image.
These attributes provide the space and pixels. Hyper Text Markup Language uses image maps which are a kind of navigational tabs making work easy in professional web design. An image maps an image to one or several links using regions called hot zones.
Images For Web Design
The PNG image file format is not new to the web. It originally developed in the mid-90s as a solution to the shortcomings of the traditional GIF image file format. However, because early browser applications offered only spotty support for the PNG's advanced features, web designers, developers were limited in its use.
One large hurdle in particular faced by PNG's was Microsoft Internet Explorer (IE). Far and away the most popular browser, IE offered particularly poor support for the file format. However, with the release of IE 7 as well as several JavaScript hacks, this has all changed, and PNGs are more popular than ever.
But who cares!? And besides being one letter short of my favorite 1972 video game, what makes a PNG so great? Below, are three reasons why PNGs are the best image format since the Polaroid.
They’re See-Through! (Alpha Transparency):
As compared to the GIF, PNG offers a far less basic form of transparency. With GIFs, a particular color (or colors) is able to be saved as transparent, leaving colors either entirely opaque or transparent. There is no in-between.
PNGs have a distinct advantage in this area. The PNG file format supports "semi-transparent pixels," meaning a PNG can be saved with a soft drop shadow and floated over any background. It can be used as a watermark on a textured or gradiented background. It can even be smoothly faded from fully opaque to transparent, revealing the web page contents beneath.
Summerour.net features a logo which demonstrates this function. The homepage layout called for a logo with a soft drop shadow over a textured background of architectural sketches that regularly change. Using a GIF or JPG would be highly impractical, because every time the image changed, the logo’s background would need to be edited. A PNG, however, is floated over the image with a faded drop shadow, making the task quick, simple and dynamic. PNGs make the look and feel of your page flexible.
They Look Great! (Lossless Compression ):
Every time a JPEG is saved and compressed, it loses some of the original file's information and the image quality degrades. The GIF file format offers lossless compression (so the file can be saved and resaved without losing image quality), but it only supports a limited 256 color palette, making it useless for full-color photography and other such complex images.
PNG offers the best of both worlds. It displays full color photographic images, like the JPEG, but it also supports a managed color palette, like the GIF format. While the PNG will typically have a larger file size than the JPEG for photographic images, it does have a distinct advantage: its compression is lossless, meaning images never degrade in quality or suffer from "compression artifacting" which affects many JPEG images.
The results are crisper, brighter images that will “pop" on your pages unlike ever before.
They’re Self Optimizing! (Gamma Correction ):
Adjusting the brightness and contrast of images to look correct on a wide variety of monitors and operating systems is a common problem facing web designers. This problem is primarily related to different monitor Gamma settings.
Gamma is a method monitors use to distribute their luminance evenly across the display. Unfortunately, different operating systems (in particular the Mac and Windows) use different Gamma settings. So an image that is color-corrected for the Macintosh operating system may look too dark on the Windows operating system and vice-versa.
The PNG file format offers a solution for this problem. The image can be saved with built-in Gamma correction, enabling it to anticipate the operating system's Gamma settings and automatically adjust its brightness and contrast. By using a PNG, designers can simply color-correct the image for their personal operating systems and let the PNG do the rest.
Both Kyle Newton & Mike Bradbury are contributors for EditorialToday. The above articles have been edited for relevancy and timeliness. All write-ups, reviews, tips and guides published by EditorialToday.com and its partners or affiliates are for informational purposes only. They should not be used for any legal or any other type of advice. We do not endorse any author, contributor, writer or article posted by our team.
Kyle Newton has sinced written about articles on various topics from Payday Loans, Satellite and Cash Advance Loan. Kyle Newton is a Professional web design and ecommerce professional with 7 years of experience in the web development field. He has developed total online presence systems a. Kyle Newton's top article generates over 165000 views. Bookmark Kyle Newton to your Favourites.
Mike Bradbury has sinced written about articles on various topics from Web Development, Computers and The Internet and Arts. This article was co-authored by Mike Bradbury and Mike Harvey. Both are employees of Objectware, Inc, an Atlanta web development and. Mike Bradbury's top article generates over 27100 views. Bookmark Mike Bradbury to your Favourites.
Business Book Best Seller Another important thing to consider, is your books placement on the bookstore shelf.With all these tips, you are sure to succeed like I did!