| Adding Graphics |
What we must learn now is the significance of screen resolutions. In
HTML, we measure screen height and width in pixels which is the
measurement system that determines screen resolutions:
Keep in mind that this has nothing to do with screen size. So, when creating/manipulating graphics for the web, always assume the person viewing your pages has the lowest resolution screen (800w X 600h is usually the standard these days).
There are two types of graphic file formats that can be displayed in the majority of Web browsers:
These file formats can be recognized by their .gif and .jpg file extensions respectively. A complete discussion about graphics (creating, editing, and manipulating) is beyond the scope of this class. The following information will provide you with some basic facts about these two file formats:
<img src="name_of_graphic_file"> - Calls and Displays the Graphic Example Code: <img src="theAnimal.jpg"> The Result:
Attributes: align="left
| right | top | middle | bottom"
Example Code: <img src="theAnimal.jpg" alt="The Animal" height="250" width="188"> The Result:
Example Code: <img src="theAnimal.jpg" align="right" alt="The Animal" height="250" width="188"><br /> The Result:
Example Code: <img src="theAnimal.jpg" align="top" alt="The Animal" height="250" width="188">Top Alignment The Result:
Example Code: <img src="theAnimal.jpg" align="middle" alt="The Animal" height="250" width="188">Middle Alignment The Result:
Example Code: <img src="theAnimal.jpg" align="bottom" alt="The Animal" height="250" width="188">Bottom Alignment The Result:
Click here for an example of text and graphic alignments.
Example Code: <a href="http://www.yahoo.com"><img src="yahoo1.gif" alt="Yahoo!"
height="100" width="80"></a> The Result:
|
|
|
| XHTML
Basics Workshop © 1996-2005 |