+ 22

You're advised to use the <a> tag to make a link-but to what link?

https://code.sololearn.com/WQCIGxo9WcLj/?ref=app

28th Apr 2018, 4:41 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
2 odpowiedzi
+ 4
You can use it to link the text (or anything else) inside the tag with some other webpage. When you click a hyperlink (links to other webpages), your browser opens the specified webpage as per mentioned in the href attribute. The syntax looks like: <a href="www.google.com">Click Me</a> You can specify the link to any page, and to markup!
28th Apr 2018, 5:09 PM
Naveen Maurya
Naveen Maurya - avatar
+ 3
You can use it to link to another site as mentioned before, but you can also use it to link to sections on the same page. An example would be a book with chapters, where you click on the chapter name at the top of the page and it scrolls down and takes you to that chapter. See http://www.echoecho.com/htmllinks08.htm for an example on how to do this.
5th May 2018, 7:30 PM
Stefan du Toit
Stefan du Toit - avatar