HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Adding Pictures
Align Pictures
Alternative Name
Background Picture
Picture Border
Picture Link
Picture Spacing
Table Background
Width and Height
Width and Height
385
Picture Width and Height
Description
Here, you will learn how to change the width and height of pictures. The tag for the width and height is WIDTH="#" HEIGHT="#". This is added onto the picture tag so the end result looks like
<IMG SRC="url" WIDTH="#" HEIGHT="#">.
The # symbol is replaced by the number of pixels you want the width and the height to be. Below is an example of using the width and height tag.
Code
<IMG SRC="http://www.activejump.com/images/sample.jpg" WIDTH="100" HEIGHT="100">
Output
Practice
<IMG SRC="http://www.activejump.com/images/sample.jpg" WIDTH="100" HEIGHT="100">
Advertisements