Create a basic link to an external web site in HTML and CSS

Description

The following code shows how to create a basic link to an external web site.

Example


<html>
<body>
<p>Why not visit the <a href="http://www.java2s.com/">HTML</a>?</p>
</body><!-- www . ja  v  a 2  s . c  om-->
</html>

Click to view the demo

The code above generates the following result.

Create a basic link to an external web site in HTML and CSS