• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Adding Images and Other Page ... > The <img> Tag and Its Attributes

9.4. The <img> Tag and Its Attributes

The <img> tag inserts a graphic image into the document's text flow. Unlike horizontal rules, it doesn't create any paragraph breaks, so you can place graphics inline with the text. By default, the bottom of an image will align with the baseline of surrounding text (ways to alter this will be discussed later).

There are over a dozen attributes that can be added within the <img> tag to affect its display, but the only required attribute is src, which provides the URL of the graphic. The minimal HTML tag for placing an image on the page looks like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint