|
HTML Home
HTML TutorialHTML Tutorial HomeAbout HTML Getting Started HTML Elements HTML Formatting HTML Attributes HTML Colors HTML Links HTML Images HTML Meta Tags HTML Comments HTML Forms HTML Tables HTML Image Maps HTML Frames HTML Entities HTML Layouts HTML Styles HTML Scripts HTML Website Templates Website Hosting Summary HTML Code GeneratorsHTML Code GeneratorHTML Table Generator Marquee Generator Music Code Generator HTML Text Generator Text Box Generator Free HTML CodesHTML Background CodeHTML Comment Box Codes HTML Font Codes HTML Picture Codes HTML Marquee Code HTML Music Codes More Codes... HTML ReferenceComplete HTML Tag ListHTML Special Characters Hex Color Codes HTML Help |
HTML ImagesImages make up a large part of the web - most websites contain images. HTML makes it very easy for you to embed images into your web page. To embed an image into a web page, the image first needs to exist in either .jpg, .gif, or .png format. You can create images in an image editor (such as Adobe Photoshop) and save them in the correct format. Once you've created an image, you need to embed it into your web page. To embed the image into your web page, use the Example of Image UsageHTML Code:
<img src="http://www.quackit.com/pix/smile.gif"
width="100" height="100" alt="Smile" />
This results in:
The
Image AlignmentYou can determine how your images will be aligned, relative to the other content on the page (such as a paragraph of text). You do this using the HTML Code:
This results in:
Otherwise, the image will just hang below the text and may look funny. Image LinksYou can make your images "clickable" so that when a user clicks the image, it opens another URL. You do this by simply wrapping the image with hyperlink code. HTML Code:
This results in: Removing the BorderYou might notice that this has created a border around the image. This is default behaviour for most browsers. If you don't want the border, specify HTML Code:
This results in: Creating ImagesThe above examples assumed that you already had an image to embed into your web page. To learn about creating images for the web, check out the Web Graphics Tutorial. Enjoy this website?
Oh, and thank you for supporting Quackit! |
FREE Hosting!With every domain name you register with ZappyHost, you get FREE (ad supported) hosting.PLUS you get:
Featured Template:
(Build your websites in minutes!) Got a MySpace Page?Get "www.yourname.com" for your MySpace page. Learn how >>. |