Monday, 1 August 2011

What I learned on my computer subject (Jul.25-29)


I learn how to put an image in a web page. What is <img> tag? The <img> tag embeds an image in an HTML page. The <img> tag has two required attributes: src and alt. In HTML the <img> tag has no end tag. The alt attribute is meant to be used as an alternative text if the image is not available, not as a mouse-over text. To show a mouse-over text on images or image-maps, use the title attribute, like this: <img src="angry.gif" alt="Angry face" title="Angry face" />The href attribute specifies the destination of a link. The href or the name attribute must be present in the <a> tag. An absolute URL - points to another web site (like href="http://www.example.com/default.htm"). A relative URL - points to a file within a web site (like href="default.htm"). An anchor URL - points to an anchor within a page (like href="#top")

No comments:

Post a Comment