HTML Images
Attribute definitions
src = uri
This attribute specifies the location of the image resource.
Examples of widely recognized web image formats include GIF, JPEG, and PNG.
alt = text
For user agents that cannot display images, this alternative text is displayed
align = bottom|middle|top|left|right
The following values for align concern the object's position with respect to surrounding text:
- bottom: means that the bottom of the object should be vertically aligned with the current baseline. This is the default value.
- middle: means that the center of the object should be vertically aligned with the current baseline.
- top: means that the top of the object should be vertically aligned with the top of the current text line.
- Two other values, left and right, cause the image to float to the current left or right margin.
width = length
Image width override the natural image size.
height = length
Image length override the natural image size.
border = pixels
The border attribute specifies the width of this border in pixels. The default value for this attribute
depends on the user agent.
The vspace and hspace attributes specify the amount of white space to be inserted to the left and right (hspace) and above
and below (vspace) an image.
previous slide |
next slide
Return to Beginning of Presentation
Return to Software Development Library