Loading....
Coupon Accepted Successfully!

 

HTML Links

 How to create links in an HTML document.

Example:
<html>
<body>
<p><a href="newpage.html">This text</a> is a link to a page on this Web site.</p>
</body>
</html>

Open a link in a new browser window

(how to link to another page by opening a new window.)

Example:
<html>
<body>
<p><a href="newpage.html" target="_blank">Last Page</a> This text is a link to a page on this Web site.</p>
</body>
</html>

An image as a link

 (how to use an image as a link. )

Example:
<html>
<body>
<p><a href="page.htm"><img border="0" src="buttonnext.gif" width="65" height="38">
</a> This text is a link to a page on this Web site.</p>
</body>
</html>


Link to a location on the same page

(how to use a link to jump to another part of a document.)

Example-
<html>
<body>
<p><a href="#C4">See also Chapter 4.</a></p>
<h2>Chapter 1</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 2</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 3</h2>
<p>This chapter explains ba bla bla</p>
<h2><a name="C4">Chapter 4</a></h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 5</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 6</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 7</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 8</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 9</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 10</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 11</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 12</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 13</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 14</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 15</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 16</h2>
<p>This chapter explains ba bla bla</p>
<h2>Chapter 17</h2>
<p>This chapter explains ba bla bla</p>
</body>
</html>

Create a mailto link (how to link to a mail)

Example:
<html>
<body>
<p>This is a mail link:
<a href="mailto:[email protected]?subject=Hello%20again">
Send Mail</a></p>
</body>
</html>





Test Your Skills Now!
Take a Quiz now
Reviewer Name