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
-
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 -
Over Optimised Magento Pages
We are working on a clients Magento site and we've added new copy which has a decent keyword density which is in line with best practice. When we run it through Moz we are getting a Key Word Stuffing alert saying the page has 27 keywords, where we can only see about 11. This is the page https://www.greatbeanbags.com/bean-bag-cushions The client is pushing back saying the page must have already been optimised before as our new copy has triggered the stuffing alert. But my guess is the page was already stuffed but buy some Magento code we can't see. Any ideas? #magento #Keyworddensity
Content Development | | Marketing_Optimist0 -
Optimizing shop content for desktop and mobile users
When arranging content on a shop category page I place a descriptive optimized opening paragraph of text above products. On desktop this shows both the opening text and the products above the fold (visible here https://www.scamblermusic.com/royalty-free-music-downloads/ - also shown on the screen grab below). The text may well be ignored by most visitors (who will likely be drawn straight to product images) but it still serves a purpose. dekstop.png When it comes to smaller mobile screens I have started to disable the opening paragraph of text (above the products) and instead place a copy of it below the products, (screen grab below). This keeps the optimized text on the page, but it means that mobile users instantly see products rather than having to scroll past text that they may see as inconvenient. mobile.png I'm conscious of the fact that Google indexes mobile content first, and it also doesn't like duplicate content. I therefore have three questions relating to this: Will moving the optimized text content below all the products to the bottom of the page devalue it (I understand important content should be as near to the top of page as possible)? Although the optimized paragraph of text only displays once on desktop (at the top of the page) and once on mobile (at the bottom of the page) it is actually visible twice in the source code - does this count as duplication, and could it therefore hurt the performance of the page in SERPs? If this practice does cause issues, is there an ideal way to optimize content on pages (especially shop category pages) that doesn't require mobile users to scroll through text before seeing products? Lastly, on topic optimized landing pages that feature product promotions such as this one - https://www.scamblermusic.com/royalty-free-music-downloads/music-licensing-scotland/ - I wonder if it is best to lead with an optimized text introduction above product images, or better to place the products right at the top of the page for immediate impact, then follow this with the content/article/blog post? Many thanks for any advice offered.
On-Page Optimization | | JCN-SBWD0 -
Introduce customer reviews and ratings onto our product pages
Hi, I'm looking to introduce historical customer reviews onto our product pages but i want an opinion on whether a product page that's indexed will jump from 0 reviews to possible 30+, what if any problems that could arise from this.. For a bit of background, we've been collecting customer reviews/ratings since 2015 on our internal system. I'm only looking to start using feedback from 2020 onwards. The current set up is that the product page will display the latest 30 reviews, on the same page is a link that will take the user to another page where they can review all the customer feedback. I'm using Google Schema to markup the text to ensure it is firstly understood by google and displays correctly too. So back to my original question. Will an e-commerce product page that currently has no customer reviews that is indexed, been seen differently if when the next time it's crawled its found to have, say 30+ reviews? Are there any implications this way? What's your experience? I look forward to reading your feedback.
Technical SEO | | Train4Academy.co.uk
Thanks0 -
Should you do on-page optimization for a page with rel=canonical tag?
If you ad a rel=canonical tag to a page, should you still optimize that page? I'm talking meta description, page title, etc.
On-Page Optimization | | marynau0 -
Adding Tags in the blog is good or bad?
Hi Friends, In my blog I used to write unique content in between 300 to 450 words and add the related tags up to 15. When I research about adding tags in the blog I come across this video from “Matt Cutts” says Is it worth spending time on creating tags and categories? http://www.youtube.com/watch?v=A96yDPqa2rs Key Points from Matt Cutts Video are given below: No Need Tags - In general, Google figure out what your post is about, so don't worry too much about it. So my question is do I need to remove all tags from my blog or can I reduce the tag count to 5 alone? Currently I am using 15 tags to each post, is there any dis-advantage by adding tags like this? Let me know your suggestions? Thanks
On-Page Optimization | | zco_seo0 -
Is there a recommended character limit for alt text tags?
I've searched around for a maximum number of characters to use when writing alt tags, but not seeing anything more than "don't keyword stuff." Is there a recommended number of characters?
On-Page Optimization | | KimCalvert0 -
Same H1 tag in header across entire site
Should I have the same H1 tag in my header through out my entire site? Or is this considered to be self canalization for my main keywords. For example right now I have an H1 tag with my main targeted keywords on every page on my site, even if the pages content doesn't necessarily match the keywords in the H1 tag.
On-Page Optimization | | TRICORSystems0