Ajeetesh Sandhu: 13th in Morocco Golf Rising Stars

Okay, I’ve analyzed the provided code snippet. Here’s a breakdown and explanation of what it does and how it fits into an AMP (Accelerated Mobile Pages) context:

Overall Purpose:

This code is part of an AMP web page, specifically likely a sports news article related to Ajeetesh Sandhu’s golf ranking.It handles several key functions:

  1. Social Sharing Buttons: Provides buttons for sharing the article on platforms like WhatsApp, Facebook, X.
  2. Advertisement: Embeds a DoubleClick (Google Ad Manager) advertisement.
  3. Au Plus Subscription: It is for subscription service.
  4. Next/Previous Article Navigation: Adds navigation buttons to move to the next or previous article on the website.

Code Breakdown

Social Sharing Buttons:

: This is the start of an AMP extension, it is a custom element designed for social sharing.
: Each contains an (anchor) tag that forms the actual button or link. The href attribute specifies the URL to open when the button is clicked.
title: Specifies the title of the link when hovered.
class: Specifies the class of the link for styling.facebook, twitter, telegram are the classes for styling the icons.
data-vars-story-id, data-vars-share-type: These appear to be custom attributes used for tracking the sharing activity (likely for analytics).
target="blank": Ensures that the link opens in a new browser tab.
: Likely used to hold the social media icon itself and potentially a share count (though the share count logic is not within this snippet).
: inline SVG code for the icon of each social media platform.

Advertisement:

: This is the core AMP component for embedding advertisements.It’s a highly controlled and optimized way to display ads on AMP pages, ensuring they don’t negatively impact page load performance.
data-enable-refresh="45": this attribute enables the ad to refresh every 45 seconds.
width, height: Sets the dimensions of the ad slot.
type="doubleclick": Specifies that the ad is served through Google Ad Manager (DoubleClick).
data-slot: The ad slot configuration.
data-multi-size: This allows the ad slot to display ads of diffrent sizes, making it more versatile.
rtc-config: Real Time configuration.This configuration uses vendors for ad configuration. json: Customizes the targeting audience.

Next/Previous Article Navigation:

: This is the start of an AMP extension, it is a custom element designed for navigation between articles.
: The anchor tag to navigate articles.
: Inline SVG code for the forward icon.
: Hold the URL for next or previous articles.

Key AMP Aspects:

AMP Compatibility: The code uses AMP-specific components (, ). This is crucial as AMP has strict rules about HTML,CSS,and JavaScript to ensure fast loading times. Standard

This site uses Akismet to reduce spam. Learn how your comment data is processed.