+ 1

Is my code related to internal linking correct?

<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <ul><li><a href="#Birds">Birds section</a> </li> </ul> <br> <br> <p> <a name="Birds">This article is about birds</a> </p> </body> </html>

20th Apr 2020, 2:18 PM
Sameer Kulkarni
Sameer Kulkarni - avatar
4 Answers
+ 2
Yes it is correct. You can also use ID attributes instead of <a> tag and name attributes simply . Syntex: <tag id="id_name"></tag> To acces it use this <a href="#id_name"></a>
20th Apr 2020, 3:02 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
I dont get you broh, are you trying to link another url to your document, or what are you specifically trying to link? Please be more clear, thank you
20th Apr 2020, 2:51 PM
Alfred Juma
Alfred Juma - avatar
+ 1
Yes it is correct, and the internal link doesn't necessarily be a <a> tag, it can be a <h3> or <p> or other, and you can use 'id' in place of 'name' attribute for the target section (#Birds).
20th Apr 2020, 3:02 PM
Ipang
20th Apr 2020, 3:03 PM
šŸ‡®šŸ‡³VivekšŸ‡®šŸ‡³
šŸ‡®šŸ‡³VivekšŸ‡®šŸ‡³ - avatar