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

The <img /> Element

When you want to insert a graphic file on a Web page, you actually do so with an URL. This URL is the specific location on the Internet where the graphic file is located. It can be on the same Web host computer that your HTML document is on, or it can be on a host somewhere else on the Internet.

The most basic <img /> element can be used to create an inline image, which appears exactly where you place it relative to the text in the HTML document. The other kind of images, floating images, are discussed later in the section “Left- and Right-Aligning Images.” The basic difference between the two types is that inline images aren’t aligned against a margin—they’re anchored in the text of the page. Floating images can be made to stick to the left or right margin.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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