a href Attribute - Link to an element with a specified id within a page - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

a href Attribute - Link to an element with a specified id within a page

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<h2 id="top">Top of page!</h2>

<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>
<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>
<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>
<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>
<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>
<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>
<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>
<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>
<p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p><p>This is a test. This is a test. This is a test.</p>


<a href="#top">Go to top</a>
</body><!--  w  w  w .  j  av a 2 s  .c  o  m-->
</html>

Related Tutorials