Wednesday, February 18, 2009

HTML Syntax

In HTML, Attribute names are always followed by an equal sign and a value in double quotes.
<img src="http://pics.cssrule.com/pics/thecook.jpg" border="1" 
title="The Cook in Action" alt="Picture of a Chef" />

This img tag has several attributes with values of "thecook.jpg", text about cooking and a chef. The latter is for the title and also the alt attribute which is used to define an alternate, user-provided text definition of an image.

If you hover over the image, the title text will appear in a small white rectangle.

Picture of a Chef

Picture Credit: Benihana

Post a Comment

Note: Only a member of this blog may post a comment.