Link to the same page with anchor in HTML and CSS
Description
The following code shows how to link to the same page with anchor.
Example
<!-- w ww . java 2 s . co m-->
<!DOCTYPE HTML>
<html>
<body>
<a name="tips">Useful Tips Section</a>
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
<br/><br/><br/><br/><br/><br/><br/>
<a href="#tips">Jump to the Useful Tips Section</a>
</body>
</html>
The code above generates the following result.
HTML CSS Tutorial Anchor
Add border to anchor hover effect in HTML a...
Add link to another file in the same folder...
Add title attribute to anchor in HTML and C...
Create a basic link to an external web site...
Create a basic link to another page within ...
Create a link to a specific part of the pag...
Create a link to send an email in HTML and ...
Create a link with white space in HTML and ...
Create a mail to link in HTML and CSS
Create absolute link starting with http:// ...
Create an Image Link with anchor element an...
Set font size and color for visited anchor ...
Set font weight and color for active anchor...
Set font weight and color for anchor hover ...
Set id for anchor element in HTML and CSS
Add border to anchor hover effect in HTML a...
Add link to another file in the same folder...
Add title attribute to anchor in HTML and C...
Create a basic link to an external web site...
Create a basic link to another page within ...
Create a link to a specific part of the pag...
Create a link to send an email in HTML and ...
Create a link with white space in HTML and ...
Create a mail to link in HTML and CSS
Create absolute link starting with http:// ...
Create an Image Link with anchor element an...
Link to the same page with anchor in HTML a...
Set Link target in HTML and CSSSet font size and color for visited anchor ...
Set font weight and color for active anchor...
Set font weight and color for anchor hover ...
Set id for anchor element in HTML and CSS