Back to Homework Page
Back to Graphics Homework Page

Aligning Graphics

1. Here are text and a graphic defaulting to left with a linked image.apple

apple 1a. Compare to #1’s code. Just like #1, I did not use an align attribute in the image tag. But my image is first here and second on #1. However, I have a lot more text here. If you tried this with the image first, it would throw the image in a funny spot. More text for demo purpose. One day I went to the store to buy some lemons. The store was out of lemons so I had to go to another store. I ended up in France before I could find the lemons but I had a nice trip.

2. Here are text and a graphic using center tags, linked image using border="0".apple



apple missing 3. Here is an image but I put the wrong path. The browser can’t find the image. The words apple missing are there because I have an alt attribute in the image tag. It has a align=left attribute in the image tag.





apple missing 3a. Here is the same image as above with its correct path and align=left attribute in the image tag.



4. Here are text and a graphic using p tag, align=right.apple

4a. Here are text and a graphic using align=right in the image tag.apple







5. Here are two images, side by side and the apple as a lowsrc under the marble.
apple

apple 6. If I want my text to wrap around my image, I used the align="left", hspace="5" and vspace="5" attributes in my image tag. One day I went to the store to buy some lemons. The store was out of lemons so I had to go to another store. I ended up in France before I could find the lemons but I had a nice trip. One day I went to the store to buy some lemons. The store was out of lemons so I had to go to another store. I ended up in France before I could find the lemons but I had a nice trip. One day I went to the store to buy some lemons. The store was out of lemons so I had to go to another store. I ended up in France before I could find the lemons but I had a nice trip. One day I went to the store to buy some lemons. The store was out of lemons so I had to go to another store. I ended up in France before I could find the lemons but I had a nice trip.

apple
7. I wanted my text under my image. I used the same code as above but removed the align attribute in the image tag. Then I use a br tag: br clear="left" to get the text to go completely below the image. One day I went to the store to buy some lemons. The store was out of lemons so I had to go to another store. I ended up in France before I could find the lemons but I had a nice trip. One day I went to the store to buy some lemons.

Back to Top of Page