How to Use Images in HTML

By Anthony Delgado

Use Images in HTML Use Images in HTML

Rate: (1 Ratings)

Learn to add pictures into HTML code.

Instructions

Difficulty: Moderately Easy

Step1
Add picture: (Blue) "img src" defines the image source. In the quotes you put the web path to the image. If you do not put a path, but just put the file name, it will look in the same directory as the html file only. You can use a slash to identify a sub-directory that exists in the same directory as the html file as seen in the example.
Step2
Size: (Orange) width and height are used to change the size of the picture in pixels. It is always best to change it proportionally to the original file. For example, if the picture is 800x600, you can change it to 400x300 and it will look the same, just smaller. If you make it 400x400, it will be stretched widthwise.
Step3
Alternate Text: "alt" is used to specify alternate text. This text will appear if for some reason the image file is not accessible.
Step4
Buttons: (Green) A button is just a picture that has a hyperlink referenced to it so that when you click on the picture, you are redirected to the URL. Use the "a href" function as shown in the example.
Look at this article for more details.
http://www.ehow.com/how_2102636_write-html-hyperlink.html
Step5
Background: (Red) The background is one of the options in the body command. A background is specified by "body background" and the referencing the location of the picture to be used just like with other pictures.

Post a Comment

POST A COMMENT

Request a New How-To Article

Looking for more How To information? Chances are there’s an eHow member who knows how to do what you’re looking to do. Submit an article request now!

eHow Article:  How to Use Images in HTML

eHow Member: Anthony Delgado

Anthony Delgado

Authority Authority | 13355 Points

Category: Internet

Articles: See my other articles

Related Ads

Internet

Veesites
Meet Virginia DeBolt eHow’s Internet Expert.