What does the "base href" meta tag do? For SEO and webdesign?
-
I have encounter the "base href" on one of my sites. The tag is on every page and always points to the home URL.
-
<base> allows you to set the default attributes for links on the page. For example if I set <base href="http://www.mydomain.com/"> then I can make a link to and it will point to http://www.mydomain.com/mypage.html
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
-
Generating Dynamic Meta Titles for SEO - Advice?
Hi, I'm working with a new client that works with a lot of suppliers and they want to have their titles built in a specific way. If I generate a template (so to speak) will generating dynamic meta titles have a negative effect on their SEO and is this even possible? If so, what would be the best way to handle this? There is approximately 100 suppliers. Any feedback/advice is appreciated!
On-Page Optimization | | daniel-brooks0 -
No meta description on category page
Hi Moz is reporting no meta description on a wordpress category page like this one: http://www.dwliverpoolphotography.co.uk/category/uncategorized/ Can I add a meta description to a category? Best wishes. David.
On-Page Optimization | | WallerD0 -
Should I "No Index" Certain Pages On My Site?
I have some pages on my site that don't really have any content other than some iframes that are embedded from another site. I thought it would be best to tag the page with a no-index so that search engines would leave the page alone since it has no content as far as the search engine can tell (but does provide value to my site visitors). Is this the proper approach or does it do more harm than good?
On-Page Optimization | | Kyle Eaves0 -
"Turning off" content to a site
One site I manage has a lot of low quality content. We are in the process of improving the overall site content but we have "turned off" a large portion of our content by setting 2/3 of the posts to draft. Has anyone done this before or had experience with doing something similar? This quote from Bruce Clay comes to mind: “Where a lot of people don’t understand content factoring to this is having 100 great pages and 100 terrible pages—they average, when the quality being viewed is your website,” he explained. “So, it isn’t enough to have 100 great pages if you still have 100 terrible ones, and if you add another 100 great pages, you still have the 100 terrible ones dragging down your average. In some cases we have found that it’s much better, to improve your ranking, to actually remove or rewrite the terrible ones than add more good ones.” What are your thoughts? Thanks
On-Page Optimization | | ThridHour0 -
Canonical tags
In previous we had issues with capital letters in page urls. So we made a 301 redirection to lower case page url. But I read there that it's not good idea to use 301 redirection, better solution for that canonical tag. So we placed canonical url tak to lower case page url... So after week, in google webmaster tools I see around 60k os dublicate pages. Why google don't see canonical tag? Thank you
On-Page Optimization | | bele0 -
SSL sites and SEO
I'm seeing a lot about how SSL sites can negatively affect SEO from the analytics perspective, but if duplicate content issues are addressed and load times are OK, what else is there to worry about? Any advice is much appreciated. Thank you!
On-Page Optimization | | PerfectPitchConcepts0 -
How many meta tags are appropriate?
How many meta tags are appropriate? There is a page that ranks above me that has many more than I do. It has (I have removed the content of each to give a description of the type of content): I only use meta tags for keywords and description, robots. Should I have more? Thanks.
On-Page Optimization | | scanlin0 -
How unique should meta descriptions be?
I understand that it is a best practice to write a different meta description for each page. However if you have 50 pages on a topic that are similar, is it okay to just change a couple words. For instance if you have a page about how to get an SEO job in each state, can you use the same meta description 50 times but change just the state name. Or is it much better to vary the meta descriptions significantly. Thanks!
On-Page Optimization | | SparkplugDigital0