понедельник, 18 февраля 2013 г.

Inserting Inline Images, How To Insert Inline Images


The IMG (image) tag allows you to display inline on your Web page. The term inline simply means that an image that an image is inserted at a particular location, “ in a line,” within a Web page.


The most commonly used image format for inline image is the GIF image as inline image. Not all current graphical Web browser support the JPEG graphics format, which provides file compression and more colors than GIF.


The IMG (image) tag is an empty or stand-alone, document element.

Syntax: 

IMG SRC=”imagefile”>

The SRC (source) attribute is a required is a attribute that identifies the full or partial address (URL) or just the name of the file to display.

Example:

P> The inline graphics, FLOWERS.GIF, is displayed here:

P> img scr=”FLOWERS.GIF”>

p tag is placed in front of the IMG tag. The IMG tag dose not from a new block elements here and would appear on the same line as the text that precedes it (that is, unless you added the P tag here). In this case, however, you want the image to appear below the line of text.


Using the ALT Attribute


You use the ALT attribute to provide an alternative to an image in the case of someone using a text-only browser or using graphical browser with image turned off. The capability of turning off the display images to help pages load faster.


Example:

The inline graphics, FLOWERS.GIF, is displayed here:

Комментариев нет:

Отправить комментарий