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 trialdavid valentino
Courses Plus Student 314 PointsTitle tag and h1 generated by PHP for SEO
say, if i had 200 titles of post and its content stored in database then I only had 1 page which is called post.php?id=1. and i fetch the title by $_GET['id']
and inside the title tag i wrote php->echo_>title that refers that id from database
how will google see my page? is it a good example for SEO practices
2 Answers
Konrad Pilch
2,435 PointsIm not 100% sure what you mean and how it works, but , from my experience, the title tag counts, so if you make it dynamic for te post you are on, like if you look now up , there your title in the title of the tab.
It will look automatically, i THINK for h1 tags.
I might be wrong, but tahts what i noticed from the websites i did.
Kristopher Van Sant
Courses Plus Student 18,830 PointsI'm not sure I fully understand your question, and I don't know much about PHP but I did try and do a google search for you and found the following about SEO and title tags....hopefully they can be of some help!
http://www.pearsonified.com/2006/12/the_simplest_most_effective_seo_move_you_can_make.php http://www.lunametrics.com/blog/2013/02/19/php-seo/ http://www.hobo-web.co.uk/title-tags/ http://stackoverflow.com/questions/12592410/get-page-title-url-and-echo-in-html http://static.googleusercontent.com/media/www.google.com/en//webmasters/docs/search-engine-optimization-starter-guide.pdf http://www.fathomdelivers.com/blog/seo/wordpress-seo-secret-switching-post-h1-h2-tags/
david valentino
Courses Plus Student 314 Pointsthankyou for your effort
david valentino
Courses Plus Student 314 Pointsim sorry, i've added some explanation there.
Konrad Pilch
2,435 PointsMake sure to delete
On each link otherwise it will break it. The best way would to put it into this kind of link
david valentino
Courses Plus Student 314 Pointsdavid valentino
Courses Plus Student 314 Pointsim sorry, i've added some explanation there. thankyou for the answer anyway