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)
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
-
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 -
Do WooCommerce product tags effect SEO?
I'm just curious if I need these product tags and if they impact in any way at all SEO? - whether that be positively or negatively. on1iRin
On-Page Optimization | | xdunningx0 -
Image naming best practices?
While I have found many good sources of information for naming images for SEO purposes, I'm having trouble finding an up-to-date, exhaustive and authoritative source for image names, alt tags, etc. For instance... Max characters for image name? Max hyphens? How descriptive should you be? "ice-cream-flavors-icon_._jpg" or "ice-cream-flavors.jpg" or simply "ice-cream.jpg" How similar should the image name, alt text and page title be? At what point are you overusing a keyword? Rules to follow? So much more, but you get the idea! Anyone have a good reference or an answer to all things related to images and SEO? Thanks!
On-Page Optimization | | OSD0 -
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 -
Are H1 tags important or influential?
We are in the process of correcting our site in hopes that Google will rank us higher in the SERP. We have many pages that have multiple H1 tags or no H1 tag at all. How important is the H1 tag? Will it help us increase our ranking on Google? Thanks
On-Page Optimization | | WebRiverGroup0 -
How to Define Best URL Structure for Product Pages?
I am working on my website to edit structure with help of Google's search engine optimization starter guide. There is really good instruction to define URL structure which help us to perform well over Google's organic search. I have resolved issues regarding category pages but, I have confusion to define best URL structure for product pages. My website's product page URL structure is as follow. http://www.vistastores.com/marketumbrellas-californiaumbrella-slpt758-f13-red.html http://www.vistastores.com/homefurniture-winsomewood-93630.html URL structure is constructed with following terms. 1. Root Category Name (Market Umbrellas or Home Furniture or ....) 2. Brand Name 3. Manufacturer Part Number I am not happy with this structure and also not performing well over Google's organic search. I am thinking to include product name or title tag in URL after root domain. But, it may create very long URL and create issues in organic search display. Does it really matter to perform well over Google's organic search? How can I define best URL structure for product pages?
On-Page Optimization | | CommercePundit0 -
Best Practice for Deleting Pages
What is the best SEO practice for deleting pages? We have a section in our website with Employee bios, and when the employee leaves we need to remove their page. How should we do this?
On-Page Optimization | | Trupanion0