Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Canonicalization or @media print

Hi Everyone,

Just finished the SEO course (which was awesome!). There's a section about including the rel="canonical" in a link tag on duplicated content, including pages for print. Does this differ from using '@media print' in your CSS? Is one way better than the other? Have i completely missed the point?

Help would be really appreciated.

Many Thanks, Simon.

2 Answers

Calvin Nix
Calvin Nix
43,828 Points

Hi Simon,

From what I recall you would include rel="canonical" to specify duplicate content because SEO will normally penalize your website for duplicate content. By including rel="canonical" you are essentially saying "Hey I know this is duplicate content but I have a good reason for using this again".

Please let me know if this helps.

Hay Calvin, thanks for replying.

So the canonical page dosen't negatively effect your page ranking. Got ya. Cheers sir.

I'm just wondering now if using media queries instead of a dedicated print page effects the SEO? Or makes no odds at all. A Canonical page won't increase rankings surely so therfore I suspect media queries could be seen as a more semantic option.

Unless the added CSS effects the load speed of the site. Which would be bad.

Maybe I'm just over thinking it.... :)