How to redirect to a particular section of a page in html

<div id="go1">
<!--  content -->
</div>

<div id="go2">
<!-- content -->
</div>

<div id="go3">
<!-- content -->
</div>

...

Just append url id as below ,you are done !

news.html#go1
news.html#go2
news.html#go3

You can do it in two ways.

1) [via Javascript (+jQuery)]

<a href="#" id="home">home</a>

$('#home').click(function(){
$(document).scrollTop(100) // any value you need
});

2) [via pure HTML]

<a href="#home_section">home</a>

<section id="home_section"></section>

Tags:

Html