In this section, we learn about <a> tag which means connect a page to internal or external links. There are a lot of unique <a> tags.
As normal <a> tag, we can write like this as we learned in the previous chapter.
<a href="URL">This is link</a>
Example:
<a href="http://www.vektanova.com">Click here to Vektanova</a>
If you want to open the clicked link in new window (new browser window), you can add - target="_blank" in it.
<a href="URL" target="_blank">This is link</a>
Example:
<a href="http://www.vektanova.com" target="_blank">Click here to Vektanova</a>
Then, how do i make link to a section in the same page?
For example, here you go.
<a name="coolsection">This is a cool section you must see!</a>
Then, you need to create "Cool section" link in the same page:
<a href="#coolsection">Click here to scroll directly to the cool section!</a>
Or, create a link to the "Useful Tips Section" from same or another page:
<a href="http://www.mywebsite.com/mypage.htm#coolsection">
Visit the cool section that you must see!</a>