HTML Tutorial 10
Prepared by: Anthony Larrain
More on Images
Suppose you have an image file river2.jpg
in the same directory as your html document with width 400 and height 152. Suppose the HTML file had the following code along with the text.

Browser Display

- Notice the image is placed in the normal flow of the document and the text continues next to the image along the bottom of the image
- Can use the
align
attribute to adjust the text. - Values for the align attribute.
- Bottom (The default Alignment)
- Middle
- Top
Example 1


Browser Display


Floating an image
<div>
tag along with the align attribute. Or use the center tag.HTML div
tag
- The
div
tag defines a division within a web page. - The
div
tag allows individual sections of an HTML page to be styled. - Browsers usually place a line break before and after the div element.