Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Using Graphics : Page 2

Just having a collection of Web-ready graphics is a good start. Now you have to learn how to use them effectively on your Web pages.




Application Security Testing: An Integral Part of DevOps

Embedded Images

The image tag embeds an image in your HTML file.

To make an image appear as if it is embedded in the page, use the image tag, <img>, at the point in your file where you want the image to appear.

For example, this image was inserted using the image tag. The image tag was used in its own paragraph, to place it on its own line:


The image tag we used looks like this. Click on it to see what each part does.

<img src="images/flame.gif" width="81" height="79" alt="flame">

Here are some examples of foreground images along with their sample <img> tags:

<img src="images/alice.gif" width="98" height="103" alt="Alice and Sophie">
Alice and Sophie
<img src="images/tristar.gif" width="73" height="70" alt="tristar">  

Check out the HTML Basics: Using Images tutorial for more information on using the image tag.

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date