Nofollow

2 snippets in HTML & CSS

HCHTML & CSS

Link Relationships (rel)

HC · Links & Navigation
syntax
<a href="url" rel="value">text</a>
example
<a href="https://partner.com" rel="nofollow">Sponsored Partner</a>
<a href="/next-page" rel="next">Next Page</a>
<link rel="preconnect" href="https://fonts.example.com">

Note Common rel values: nofollow (tells search engines not to follow), noopener (security for new tabs), preconnect (early connection to external origins), canonical (preferred URL).

Robots Meta Tag

HC · Meta & SEO
syntax
<meta name="robots" content="index, follow">
<meta name="robots" content="noindex, nofollow">
example
<meta name="robots" content="noindex, nofollow">
<!-- Use on staging, admin, or private pages -->

<meta name="robots" content="index, follow">
<!-- Default behavior, but explicit is fine -->

Note noindex prevents a page from appearing in search results. nofollow tells crawlers not to follow links on the page. For specific bots, use their name instead of robots (e.g., googlebot).