Tuesday, May 1, 2012

How to add images to Html.

The use of images in web-designing is very popular at the time.Introducing them into our Html website 
isn't very difficult, you only have to remember that they must be in the formats GIF, JPEG or PNG.
The tag we will use this time is <img src="">.Now I will explain you some things you can do with your image:

- src: This will be obligatory if we want to upload an image to our website, because we will have to add the source of the image, so that our program can find it.

- align:Allows us to align our image on the website.We can use align="Top,Bottom,Left or Right".

- alt:This attribute accepst a text, which must describe our image  well in order for search engine robots to know what exactly the image shows.

- width:With this one we will define the height of our image in Html in pixels.

- height:Allow us to define the height of our image, again in pixels.

- border:Here we can create a border, surrounding the image.You define the anchor of it with pixels. 

Example: <img src="add your image's source here" alt="The description of the image here" width="200" height="200" border="1" align="right" />

No comments:

Post a Comment