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
- 
		
		
		
		
		
		How to Increase Website Visibility on Google and Bing?
 I am working on an e-commerce niche website and I aim to rank higher on Google to drive more traffic to my website. Any suggestions? Link Building | | digitalenginehub0
- 
		
		
		
		
		
		What is the safest way to redirect for best SEO benefits?
 What is the safest way to redirect for best SEO benefits? Example: loodgieter-aanhuis.nl -> loodgieters-ambacht.nl Does someone have any technical information on how to (root) redirect for best SEO practices? On-Page Optimization | | hans-keeren0
- 
		
		
		
		
		
		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
- 
		
		
		
		
		
		How to index e-commerce marketplace product pages
 Hello! We are an online marketplace that submitted our sitemap through Google Search Console 2 weeks ago. Although the sitemap has been submitted successfully, out of ~10000 links (we have ~10000 product pages), we only have 25 that have been indexed. I've attached images of the reasons given for not indexing the platform. gsc-dashboard-1 gsc-dashboard-2 How would we go about fixing this? Technical SEO | | fbcosta0
- 
		
		
		
		
		
		Auto loading articles ?- best practices
 Hi all! In the past months I see more and more website that doing 'auto loading articles in scrolling' - can you tell me if it's okay for SEO and what are the best practices for this? Thanks! On-Page Optimization | | JohnPalmer1
- 
		
		
		
		
		
		Less Tags better for SEO?
 I am currently reviewing my strategy when it comes to categories and tags on my site. Having been no-indexed for some time, and having many tags with just one entry I am thinking that this is not optimal for SEO purposes. This is what I am planning: Categories - Change these to Index, but only after adding a hundred words or so by way of introduction (see this example - https://www.besthostnews.com/news/hosting/a-small-orange-news/). With the categories I am thinking of highlighting key articles as well to improve link juice distribution to older articles that are important. Tags - About half my tags have only 1 entry, with a few more just having 2 entries. I am thinking of deleting all tags with just one entry, and trying to merge those with just two or 3 entries where it makes sense to do so. I will keep these as no-index, but I think this will mean more optimal distribution of link juice within the site. I would appreciate your thoughts \ suggestions on the best practices here. On-Page Optimization | | TheWebMastercom0
- 
		
		
		
		
		
		Best way to nofollow affiliate links?
 I don't "nofollow" affiliate links but I have quite a few. Doing them one by one would just be an impossible job. Would it be best to get a plugin that nofollows EVERYTHING? What would google prefer? I need to DOFOLLOW some links because those sites deserve it. On-Page Optimization | | 2bloggers0
- 
		
		
		
		
		
		Multiple Cities in Title Tag
 My question is how to avoid having a spammy title. Currently I'm working on a project where a business serves four cities, but two of them are out of its home state. I'm trying to create a title tag that is appealing to the eyes, and meets what I need it to do at the same time. I was wondering what everyone though of this sample Brand X Dealer Serving Newark, DE; New Castle, DE; Glens Mills, PA; and Springfield, PA I know that too much repetition can be a bad thing, but this might not be a big deal since they are separate instances. Let me know what you all think. Thanks! On-Page Optimization | | OOMDODigital0
 
			
		 
			
		 
			
		 
			
		 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				