Inserting an Image into a Page or Post

Inserting a photo or other image into a page or post is a snap. You either use your CMS to insert the image, just as you would insert an image into a document on your computer, or you add an <img> tag where you want the image to appear. The image tag must include the src attribute specifying the image location. Here’s an example:
148
Unfortunately, all that tag does is plop the image on the page. To adjust its alignment, wrap text around it, add a border, or do other cool and useful stuff, you need CSS styles, as explained in Part 3. In the following sections, I cover a few attributes that provide some control ...

Get The Complete Idiot's Guide® To HTML5 and CSS3 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.