H1 tag optimization question
-
Hey folks, I've got a question about h1 coding.
Our H1 tags are currently coded like this:
[http://www.rapitup.com/mf-doom](<a href=)" class=" current">MF Doom
Do you think this would be better?
[http://www.rapitup.com/mf-doom](<a href=)" class=" current">
MF Doom
My guess is that the second example would be better, and even if not better we know it's not worse. Thoughts? Thanks!
-
HTML 5 doesn't care which way you do it, but the 2nd way is invalid in XHTML or HTML 4. I prefer the first way, since it looks cleaner (to me) in the code, and there is less chance of a broken tag (if someone misses a < or >) trashing the link completely.
-
I wasn't sure of the answer, but I found someone with a similar one in another forum.
General consensus seemed to be that if you're using HTML5, it doesn't matter, if you're not using HTML5, you should use the first instance.
Here's the link: http://webmasters.stackexchange.com/questions/20446/anchor-tag-inside-h1-or-h1-inside-achor-tag-which-is-better
Hope it works out for you!
-
Don't think there is a difference SEO-wise, just styling wise (inner tag style would override the outer tags style).
I would like some second opinions though.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Duplicate Title Issues using # anchor tags
Our homepage navigation uses anchor tags (?TabNumb=1#, ?TabNumb=1# etc) rather than directly linking to different pages to decrease load time (and simplify the build process I owuld imagine). These anchor links are showing up as duplicate titles in Moz. I am pretty sure if I were to use noindex or rel tags, that could have a negative affect on my search results. Any way to tackle this outside of a complete redesign of the structure? http://www.dedoose.com/about-us/?TabNum=2# as an example
Web Design | | sbnjl0 -
SSL, SEO, and Site Migration question
When migrating a site to a new url and one where the old url had no https and the new url will be full https does it matter if the 301 redirect points at http://thisisthenewsite.com ? Meaning, should the new site have the ssl / https up prior to redirecting the old site? Does it matter if you redirect the old site to http://thisisthenewsite.com or https://thisisthenewsite.com? Since the site will force to https anyway?
Web Design | | Atlanta-SMO0 -
Is it ok to redirect an old URL to new URL with anchor tag?
Ex. OLD URL - http://www.mysite.com/shoes/red/description NEW URL - http://www.mysite.com/shoes/red#desc Thanks in advance!
Web Design | | esiow20130 -
Will keyword optimization for a landing page impact SEO for subsequent pages?
For example, if I optimize keyword “pleurx” really well on our landing page, I'd like to know if subsequent
Web Design | | Todd_Kendrick
pages linking back to that landing page will rank higher than before for “pleurx”
even if “pleurx” wasn't optimized on the subsequent pages. Thanks! -Andrew0 -
PHP Framework Question! Zend, CakePHP, Symfony, CodeIgniter. Finally I get to ask something.
Hey ya'll! We are looking to re-build our backoffice website. It's a dynamically generated site that pulls information from a DB. The DB is populated by the quote form. The DB contains the customers' info, shipping, email templates, and everything to process orders. The backoffice website is custom made in JAVA, but the owner is not happy with the programmer. I told the owner we may want to go to a PHP Framework. My question is which PHP framework would you recommend and why? Zend CakePHP Symfony CodeIgniter
Web Design | | Francisco_Meza0 -
How Important is Title Tag while viewing in browser's tab
Hi SEOmozer,I have a dumb/silly question. Ok, I know Title tags are important for SEO and users and it shows up in the SERP and all that. My question is that, using a weird CMS, I have the title tag implemented and it appear in the SERP the way I want it. However, the problem is that when I hover over the tab on the browser, it doesn't appear the same way it is in the SERP. Does that really matter that it appears differently? I checked the HTMl and this what I got<title>Example Keywordtitle><meta name="layout" content="main"/><meta name="description" content="Keyword 1 | Keyword 2 | Company Name"/>So whats within the "content" is showing in the SERP and what is in "title" tag is showing in the browser tab. Shouldn't they be the same?
Web Design | | TommyTan0 -
TOP 5 Questions I Should Ask a web designer or developer?
I want to redesign my website to work better with SEO and crawls. I need to make sure I hire a good designer/developer but I don't have a ton of money to spend. What are the top 5 questions I should ask a web designer/developer to ensure they are good designers and have successfully implemented SEO??...or at least a site that is crawled well and has some SEO built in.
Web Design | | CapitolShine0 -
Optimal redirect configuration from a misspelled domain that we own.
We have a handful of inbound links to www.t-chek.com (note the hyphen). Our normal site is www.tchek.com (no hyphen). We own both domains and have some sort of domain-wide redirect set up now. This works fine for traffic, but I suspect it's not optimal for SEO purposes. I came to this conclusion by looking in OSE and noticing that none of the inbound links to www.t-chek.com were also being attributed to www.tchek.com. 2 questions: Is it immediately evident what type of redirect I have in place now, or do I need to figure that out? Is the fix as simple as editing the .htaccess file on the hyphenated domain? I don't have direct control over the hyphenated domain, and I'd like to be able to know exactly what we need to do so I can request help from my IT department. I'd appreciate hearing your wisdom. Thanks!
Web Design | | SheriGolla0