Snoop Dogg, Warlok, Eminem, 50 Cent Photos
Here’s a breakdown of the provided HTML snippet, focusing on the image and text content:
Overall Structure:
The code represents two “slides” within a carousel or slider (likely using a library like Swiper, judging by the swiper-slide class).Each slide contains a figure with an image and a caption.
Slide 1: Snoop Dogg
* Image:
* src="https://awsimages.detik.net.id/community/media/visual/2025/07/18/snoop-dogg-1752801802871.jpeg?w=700&q=90": This is the URL of the Snoop Dogg image. It’s hosted on awsimages.detik.net.id. The query parameters w=700&q=90 suggest the image is resized to a width of 700 pixels and has a quality setting of 90.
* alt="Famous rapper Snoop Dogg is one of the new investors in Championship club, Swansea City. The news of Snoop Dogg joining as an investor in Swansea City was announced by the club, Friday (18/7/2025). This man whose real name is Calvin Cordozar Broadus jr previously helped promote the club's newest jersey last week.": The alt text provides a detailed description of the image, including the context of Snoop Dogg’s investment in swansea City. This is vital for accessibility (screen readers) and SEO.
* title="Snoop Dogg": the title attribute provides a short description that appears as a tooltip when hovering over the image.
* class="max-h-full max-w-full object-contain": These classes control the image’s sizing and how it fits within its container.
* max-h-full: The image will not exceed the height of its container.
* max-w-full: The image will not exceed the width of its container.
* object-contain: The image is scaled to fit within its container while preserving its aspect ratio. Empty space may appear if the aspect ratio doesn’t match the container.
* Caption:
* class="text-lg": Sets the font size of the caption to “large”.
* The caption text: “Snoop Dogg or Calvin Cordozar Broadus jr. is a legendary hip-hop icon from Long Beach, USA, known for his unique rap style. Photo: Doc. Instagram/@swansofficial” provides additional details about Snoop Dogg and credits the source of the photo.
slide 2:
The structure of the second slide is identical to the first. It also includes:
* An image with a similar zoom/enlarge functionality.
* A caption.
Common Elements:
* Zoom/Enlarge Icon: Both slides have a small SVG icon in the top-right corner. This icon is likely a button to enlarge the image. The onclick="_pt(this)" suggests a JavaScript function _pt is called when the icon is clicked.
* dtr-evt, dtr-sec, dtr-act, dtr-ttl attributes: These attributes are likely used by a custom tracking or analytics system on the detik.com website.
* CSS Classes: The code uses Tailwind CSS classes extensively for styling (e.g., absolute, top-1.5, right-1.5, flex, flex-col, gap-4, bg-white).
In summary:
This HTML snippet displays two image slides with captions, likely part of a news article or gallery on the detik.com website. The first slide features Snoop Dogg and his investment in Swansea City.the code is well-structured and uses modern CSS practices (Tailwind CSS) for styling.The alt text is descriptive, which is good for accessibility and SEO.
