In my site I have the page http://www.example.com/page.php , however, I have links leading to http://www.example.com/page.php#page so I want them not to be indexed or followed. Will it be correct to mark these links as
<a href="http://www.example.com/page.php#page" rel="noindex, nofollow">
Also, as a canonical meta tag on the same page I already have
<link rel="canonical" href="http://www.example.com/page.php" />
Thank you!!!
P.S: I ask if this syntax is right, not how Google works and what is its politic towards urls