Latest Posts:

Learn What is the difference between linking to an image, a website, and an email address With example

Learn What is the difference between linking to an image, a website, and an email address With example

An Image
In HTML (Hyper Text Mark-up Language) when there is need to link an image in a web page there is need to write a tag name as <img>. You need specify the image in quotes using the source attribute, src in the opening tag. If there is a location of an image then you need to specify the full location path in the open tag when you write the src tag. When you open web page image will be open by default. The <img> tag has not a closing tag. It can be write like this inside the <body> tag.
<html>
<head>
            <title>Image Page</title>
</head>
<body>
            <img src=”first.jpg”/>
</body>
</html>
If there is full path location need for image then it can be like this:
<img src=”D:\images\first.jpg”/>
A Website
In HTML (Hyper Text Mark-up Language) when there is need to link a website in a web page there is need to call the anchor tag named as <a>. You need to specify the web in quotes using the source attribute, href in the opening tag. There is no need of a full path of your own drive in this tag. The <a> tag has always a closing tag. It can be write like this inside the <body> tag.
<html>
<head>
            <title>Website Page</title>
</head>
<body>
            <a href=” href="www. torrentz.in”/>Torrentz</a>
</body>
</html>
An Email
In HTML (Hyper Text Mark-up Language) when there is need to link an email address in a web page there is also need to call the anchor tag again named as <a>. You need to specify the web in quotes using the source attribute, href in the opening tag. There is no need of a full path of your own drive in this tag. The <a> tag has always a closing tag. It can be write like this inside the <body> tag.
<html>
<head>
            <title>E-Mail Page</title>
</head>
<body>
            <a href=” href="mailto:stopgag@gmail.com”/>Email</a>
</body>

</html>
Share on Google Plus
    Blogger Comment
    Facebook Comment