Add link to another file in the same folder with anchor element in HTML and CSS

Description

The following code shows how to add link to another file in the same folder with anchor element.

Example


<!--from   w  ww . j a  v  a 2 s .  com-->
<!DOCTYPE HTML>
<html>
<body>
<p>
<a href="aPageInTheSameDomain.htm">
This text</a> is a link to a page on this Web site.
</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Add link to another file in the same folder with anchor element in HTML and CSS