Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
How best to wrap anchor tags around a product tile
- 
					
					
					
					
 Hi Say I am on a Product Listing page on ecommerce website and I have product tiles which contain images and name/price underneath them. Is it better to wrap the whole product tile (image and name/price) in an anchor tag (linking to their product page) or to wrap the image and the name/price underneath in anchor tags separately (linking to the product page) ? thanks 
- 
					
					
					
					
 To wrap anchor tags around a product, you'll typically want to create a hyperlink that, when clicked, leads to a page or resource related to the product 
- 
					
					
					
					
 A possible answer to this issue could be: "To effectively wrap anchor tags around a product tile, you should ensure that the anchor tag encloses the entire content of the product tile. This can be done by placing the opening <a> tag at the start of the product tile and the closing </a> tag at the end of it. Here’s a step-by-step approach: Start with the opening anchor tag before any of the product tile content. Add the href attribute to the anchor tag with the URL you want the user to be directed to when they click the product tile. Ensure that the anchor tag has display block (display: block;) style applied to it, so it takes up the full tile space. This is important for making the whole area clickable. Place all the HTML that makes up the product tile between the opening and closing anchor tags. This includes the image, product title, price, and any other information you wish to display. Close the anchor tag after all the product tile content. 
 Remember to style the anchor tag to remove any default styling like underlines (text-decoration: none;) and ensure it inherits text colors (color: inherit;), so it blends seamlessly with your product tile design.Test the implementation across different browsers and devices to ensure the clickable area covers the entire tile consistently." By wrapping the entire tile in an anchor tag and ensuring the tag is displayed as a block-level element, users will be able to click anywhere on the tile to navigate to the product's detail page. 
- 
					
					
					
					
 To wrap anchor tags around a product tile effectively: Use a parent container for the product tile. 
 Place the anchor tag within the container.
 Ensure the anchor tag covers the entire product tile for accessibility.
 Set the anchor's href attribute to the product's page URL.
 This approach allows users to click anywhere on the product tile to access more details, improving user experience.
- 
					
					
					
					
 It's generally better to wrap the whole product tile, including the image and name/price, in a single anchor tag. This approach provides a larger clickable area for users, improving the overall user experience and making it easier for them to access the product details. 
 .
 .
 .
 ( IT Business Analyst ) (
- 
					
					
					
					
 It's generally best to wrap the entire product tile in a single anchor tag for a larger clickable area and improved user experience on e-commerce product listings. 
- 
					
					
					
					
 Hi, In most cases, it's better to wrap the whole product tile (image and name/price) in a single anchor tag linking to the product page. This approach provides a larger clickable area and offers a better user experience, as visitors can click anywhere within the tile to access the product details. It simplifies navigation and ensures consistency in user expectations when interacting with product listings on an e-commerce website. 
 .
 .
 .
 ( Diploma Courses In Canada ) (Canada PR) (PMP Exam Prep)
Browse Questions
Explore more categories
- 
		
		Moz ToolsChat with the community about the Moz tools. 
- 
		
		SEO TacticsDiscuss the SEO process with fellow marketers 
- 
		
		CommunityDiscuss industry events, jobs, and news! 
- 
		
		Digital MarketingChat about tactics outside of SEO 
- 
		
		Research & TrendsDive into research and trends in the search industry. 
- 
		
		SupportConnect on product support and feature requests. 
Related Questions
- 
		
		
		
		
		
		Requiring customer agree to shipping terms at checkout
 I work for an ecommerce company that has many of its shipments go by LTL freight. Our customer service team has issues with a few customers per month that aren't equipped to receive freight shipments which leads to returns and other issues. In an effort to better inform our customers, the customer service team is requesting that we add a checkbox to the checkout that requires customers to agree to our shipping and returns policy, including a link to the policy page. I am wondering how concerned people here would be that requiring the customer to check a box agreeing to those terms would lead to more customers abandoning during the checkout process. Or do you think it's not a concern? Thanks for your thoughts. Conversion Rate Optimization | | Kyle_M0
- 
		
		
		
		
		
		Collections or blog posts for Shopify ecommerce seo?
 Hi, hope you guys can help as I am going down a rabbit hole with this one! We have a solid-ranking sports nutrition site and are building a new SEO keyword strategy on our Shopify built store. We are using collections (categories) for much of the key product-based seo. This is because, as we understand it, Google prioritises collection/category pages over product pages. Should we then build additional collection pages to rank for secondary product search terms that could fit a collection page structure (eg 'vegan sports nutrition'), or should we use blog posts to do this? We have a quality blog with good unique content and reasonable domain authority so both options are open to us. But while the collection/category option may be best for SEO, too many collections/categories could upset our UX. We have a very small product range (10 products) so want to keep navigation fast and easy. Our 7 lead keyword collection pages do this already. More run the risk of upsetting ease/speed of site navigation. On the other hand, conversion rate from collection pages is historically much better than blog pages. We have made major technical upgrades to the blog to improve this but these are yet to be tested in anger. So at the heart of it all - do you guys recommend favouring blog posts or collection/category pages for secondary high sales intent keywords? All help gratefully received - thanks! SEO Tactics | | WP332
- 
		
		
		
		
		
		Is it OK to shorten your brand name in your title tags
 If your title tag is over 55 characters, is it generally OK or good practice to abbreviate your brand name (at the end of the title tag) for the sake of the other keywords in the tag? On-Page Optimization | | AliMac261
- 
		
		
		
		
		
		How many product subcategories are ok?
 Let's say I have a sea glass ankle bracelet. On my site, my main keyword is "Sea Glass Jewelry" and have ranked relatively well for this, but this main page has over 200 products in it. I thought that if the URL has the keywords in it, it would be beneficial. I also have a section for all my bracelets, so it would be there and then, a more specific ankle bracelets category. So, technically, an ankle bracelet will show up 3x. Sea Glass Jewelry (all products go here) Bracelets (all bracelets go here) Ankle Bracelets (only ankle bracelets) The URL is only attached to the main category so to speak. If you click the ankle bracelets category, the url will still revert back to the original main category: seaglassjewelry/sterlinganklebracelet so I don't believe there is duplicate content. I have had my domain for years and it has ranked well until someone hacked into my site 2 years back. I have never been able to recover from this loss. Since then, I have tried to optimize my site, but nothing seems to be working and I just want to make sure that I am not hurting my ranking by doing this. Can someone confirm this is the best way to do it or make a suggestion? Thank you. On-Page Optimization | | tiffany11030
- 
		
		
		
		
		
		Bold & Italics Best Practice?
 Hi All, Does anyone know the official best practice use of bold and italic fonts? If I have a long page of text- 800 words + I usually bold a few sentences to allow the user to be able to read only the bold on the page, and still make sense of the article. By reading all the bold it will kind of make sense and the user gets the point of the article. This wasn't really done for SEO purposes, but so the reader gets to the bottom of the page in a reasonable amount of time, and gets all the key points and facts of the article. I was advised not to do this and to just bold/italic the keyword/phrases the article was written to rank for. I would like to know anyone else's opinion/strategy on using bold/italics effectively and within best practices. What's the official word? Thank you for your help. Ian On-Page Optimization | | cookie7770
- 
		
		
		
		
		
		Should I watermark my product images
 I am in the process of creating new images for my products to use on my website. Are there any advantages or disadvantages of watermarking each image? Is there an SEO impact good or bad? I am aware that filename and Alt tags are important, but am unsure if google dislikes watermarked images. On-Page Optimization | | BipSum1
- 
		
		
		
		
		
		URL best practices, use folders or not ?
 Hi I have a question about URLs. Client have all URL written after domain and have only one / slash in all URLs. Is this best practice or i need to use categories,folders? Thanks On-Page Optimization | | 77Agency0
- 
		
		
		
		
		
		Using commas in the title tag?
 Is there a disadvantage/advantage to using commas to separate words in the title tag. Which will be more effective as a title tag: "keyword1 keyword2 - Brand" OR "keyword1, keyword2 - Brand"? On-Page Optimization | | Audiohype0
 
			
		 
			
		 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				