Monday, 2 March 2015

IMAGE AND TEXT

In the preceding exercise, you put an inline images on a page with text below it. You also an include an image inside a line of text. In fact, this is what the pharase”inline image” actually means – it’s in a line of text.

To include images inside a line of text, just add the <img> tag inside an element tag (<h>, <p>, 

<address>,and so on), as in the following line:

<h2> <img src =”house. Jpg” alt = “house of terror”/> the Halloween house of terror!! </h2>

FIGURE 7.4

THE HALLOWEEN HOUSE PAGE WITH AN IMAGE INSIDE THE HEADING.













The image doesn’t have to be large, and it doesn’t have to be at the beginning of the text. You can include an image anywhere in a block of text, as in the following:

INPUT


<block quote>

 Love, from whom the world.

<img src =”world, gif” alt =”world” /> begun, <br/>.

Hath the secret of the sun.

<img src “sun. gif” alt = “sun” /> <br/>

Love can tell, and love alone, whence the million starts

<img src =”star. Gif” alt =”star” /> were strewn<br/>

Why each atom <img src =”atom.gif” alt = “atom”/>known its: own. </br/>

…Robert Bridges

</Block quote>

Figure 7.5 shows how this block looks.

No comments:

Post a Comment