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

Chapter 3. Working with Images > Adding Graphics Using the Image Element

Adding Graphics Using the Image Element

The image element in XHTML is considered an inline element. This means that it can be contained within block elements such as paragraphs. It also means that the image will quite literally be rendered "in line," right where the tag is placed within the document. The minimal required syntax for the image element includes two attributes: src for the source URL of the image file, and alt for the alternative text used to describe the image:

<img src="myphoto.jpg" alt="A photo of the author" />


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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