Links between sections of different document.

+1 Pramod Kumar · December 13, 2014
Friends, I am a beginner in this field so can anybody tell me how can i link one html file to the section of another document?

Post a Reply

Replies

Oldest  Newest  Rating
0 Bernard Pyc0d333 Parah · December 14, 2014
to the section of another document?
are you trying to link pages or?
+2 Eugene Botma · December 14, 2014
Give the section you want to link to an id, eg: <div id="ThisSection"></div>, then in your link, add #<id> behind the url, Eg:
<a href="otherpage.html#ThisSection"><link to a specific section on another page</a>
  • 1

HTML / CSS / Web Design

107,015 followers
About

Discuss, share, ask, learn and teach HTML5 and CSS3.

Links
Moderators