Adding images

Images:

    The images are defined with <img> tags.This tag does not have a closing tag.
                             <img src="url" alt="text">


If we write this code, the page appears to be...



    Here src attribute specifies the address of the image and the alt attribute is used as an alternative.If the user cannot view the image of some reason, this attribute provides an alternative text for that image and that text will be displayed on the frame.

Image Height and Width:


   We can use the style attribute to set both the height and width of an image. 


                  If we write this code, the page appears to be...





   We can also do that by using individual height and width attributes.



If we write this code, the page appears to be...






Image borders:

    Adding borders to images is done by using attributes like border_width, border_color and border_style in the style attribute.






Comments

Popular posts from this blog

Adding comments in HTML

Creating lists