Virgil van Dijk Defends Against Atlético
Here’s a breakdown of the HTML code you provided, focusing on the image and its attributes:
Overall Structure
* <figure class="_figure_qp4xg_1 layout-component layout-normal">: This is a figure element, used to contain the image and potentially a caption. The classes suggest it’s part of a layout system.
* <img ...>: This is the actual image tag.
Image Attributes
* alt="Marcos Llorente celebrated even harder after his second goal. Photo: Jon Super / AP / NTB": The alternative text for the image. This is crucial for accessibility (screen readers) and SEO.
* class="_image_qp4xg_65 layout-component layout-normal": Classes for styling and layout.
* data-fullscreen-sizes="(min-width: 1000px) 2000px, 2000vw": Defines sizes for when the image is viewed in fullscreen mode. It adapts to screen size.
* data-track-element-type="Article image fullscreen": Used for tracking user interactions (e.g., clicks to fullscreen).
* data-track-name="ImageFullscreen": Further specifies the tracking event.
* decoding="async": Tells the browser to decode the image asynchronously, improving page load performance.
* loading="lazy": Enables lazy loading, meaning the image won’t be loaded until it’s near the viewport. This also improves initial page load time.
* height="2734": The height of the image in pixels.
* itemprop="image": Used for semantic markup, indicating that this is the main image for the article (helpful for search engines).
* sizes="(min-width: 980px) 980px, 100vw": This is a crucial attribute for responsive images. It tells the browser which image size to use based on the screen width:
* If the screen width is 980px or more, use an image with a width of 980px.
* Or else, use an image that takes up 100% of the viewport width.
* src="https://akamai.vgc.no/v2/images/e9a4f186-99d0-4a1f-9fb8-49924da6d4cc?format=auto&w=40&s=66f1b334919c6daa60d17eeed5e0e84cb45bff8f": The URL of the initial image to load. This is a very small image (40px wide).
* srcset="... (long list of URLs) ...": This is the heart of responsive images. It provides a list of image URLs with different widths. The browser will choose the most appropriate image based on the sizes attribute and the device’s pixel density. Each URL includes:
* The image URL.
* format=auto: Lets the browser choose the best image format (e.
