[Last Updated: Saturday, 14-Mar-1998 16:01:58 PST]
The <IMG> element takes several attributes, to allow some flexibility in page layout.
<IMG SRC="[image file reference]" ALIGN=[alignment value]>
Aligns the inline image in relation to text (choose one alignment value from TOP, BOTTOM, MIDDLE, LEFT, RIGHT, TEXTTOP, BASELINE, ABSMIDDLE, ABSBOTTOM).
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has no ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the TOP ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the BOTTOM ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the MIDDLE ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the LEFT ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the RIGHT ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the TEXTTOP ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the BASELINE ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the ABSMIDDLE ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the ABSBOTTOM ALIGN attribute specified: .........
.......... Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.
This paragraph has a small image placed in it using the <IMG> element. The image is by a second grade student studying the San Lorenzo River at Branciforte Elementary School, Santa Cruz. This example has the LEFT ALIGN attribute specified at the very beginning of the paragraph. Remember that some browsers do not support all of the ALIGN attributes; fortunately, they'll just ignore it and will display the image in the default alignment.