img
Image.
Note: When an image is used as a link, many browsers will show a border around the image. To get rid of this you should use CSS (border: 0).
Attributes
- src is used to specify the location of the image file.
- alt is used to specify the alternative text of the image, which should be a short description.
Optional Attributes
- longdesc can be used to specify the location (in the form of a URI) of a description of the image.
- height can be used to define the height of the image (in pixels). This can also be done with CSS.
- width can be used to define the width of the image (in pixels). This can also be done with CSS.
Example
<img src="http://www.YAHOO.com/images/logo.gif" alt="WALLPAPER" />
Other Topics
HTML
: EM ,HTML
: DT ,HTML : FIELDSET ,HTML
: HTML ,HTML
: FORM ,HTML
: IMG ,HTML
: INS ,HTML : INPUT ,HTML
: KBD ,HTML : LEGEND ,HTML : BR,CSS : Class selector,CSS : Sticky Footer Layout,CSS::STYLING FORMS, mechanical Engineering, English books,Photoshop tutorials,Harry potter,Best 100 english books,Mechanical-old-question-paper,CSS : Id Selector
No comments:
Post a Comment