English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

pleease

2006-11-21 11:03:19 · 2 answers · asked by AloneFur 1 in Computers & Internet Computer Networking

2 answers

2006-11-21 11:09:05 · answer #1 · answered by a 4 · 3 0



However, more information can be given in addition to the src (source). Here's an example of good usage:
A photograph of Apollo 15 on the Moon's surface, with the flag flying and a saluting astronaut. The Moon Lander and Moon Rover to the right.

In addition to specifying the src (source), there are several additional attributes you can include:
* title/alt/longdesc: To provide alternate text for people who are blind or are using web browsers that don't display images.
* width/height: To specify the exact width of the image. This is useful as it will allow the web browser to know how much space the image will use before it loads. Otherwise you may have the page flickering as it moves everything for each image as it loads.
* id/name: Useful primarily if you're using JScript/JavaScript/ECMAScript on your page.
* lang/dir: Not particularly relevant for images, but it allows you to specify the language.
* style: Allows you to specify the CSS to apply to the image.
* onclick and other ECMAScript event handlers: Specifically for scripting.
* align, border, hspace, vspace: Specifies the alignment (centered, to the right, to the left), border width (mostly for links), and horizontal/vertical margins.
* usemap/ismap: For imagemaps. (So you can have clicking different parts of the image go to different pages.)

The trailing '/' at the end is unnecessary in HTML, but is required for XHTML, as the tag has no closing tag.

2006-11-24 21:00:12 · answer #2 · answered by General Wesc 3 · 0 0

fedest.com, questions and answers