Hawaiian Surfing: How Teens Brought It to the Mainland
Here’s a breakdown of the HTML code you provided, focusing on the image-related parts and their attributes:
First Image (Peruvian Surfers)
tag: This is a hyperlink.It wraps the image, making the image clickable.
class="imagewrap": A CSS class for styling. id="featuredStackSquareImagenx-s1-5518289-101": A unique identifier for this specific link/image.
href="https://www.npr.org/...": the URL the link points to.
data-metrics-ga4="...": Data attribute used for Google Analytics 4 tracking. It contains information about the click event.
tag: This element allows you to provide multiple image sources, letting the browser choose the best one based on factors like screen size, resolution, and supported image formats.
tag: Specifies an image source.
srcset="https://npr.brightspotcdn.com/...": The URL of the image. The URL includes parameters for resizing, quality, and format.
data-original="https://npr.brightspotcdn.com/...": The original image URL, likely used for lazy loading.
data-template="https://npr.brightspotcdn.com/...": A template URL that allows dynamic resizing, quality adjustment, and format selection. The {width}, {quality}, and {format} placeholders will be replaced with values.
data-format="jpeg": Indicates the default image format.
class="img lazyOnLoad": CSS classes for styling and lazy loading.
* loading="lazy": A browser attribute that enables lazy loading. The image will only be loaded when its near the viewport.
Second Image (Loneliness/Gen Z)
This image is structured very similarly
