+ 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>
4 Respuestas
+ 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>
+ 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
+ 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).