.:: Welcome To My Personal Blog ::.

Tuesday, December 14, 2010

Web designing - HTML Tutorial - 3

Sometimes it is important to add image while creating a page. To add picture the tag "<img>" is used. An example is given below :

Here, "name" and "size" are two attributes of the "<img>" tag.
The directory of the image must be same as the page here and the name of the image has to be "pic1.jpg".

A simple thing that should be carefully use is - all tags have starting and ending. A tag that has started once, must be closed later. Otherwise, it can't work. Two examples about this are given below :





The first example is right here, but the second one is absolutely wrong.

There is a tag in HTML that need not to be closed. The tag is "<br>". It is used to go to a new line or used for line feed.


To be continued............

No comments:

Post a Comment

Popular Posts