Canva AI Design Model & New Features
- Here's a breakdown of the HTML snippet you provided, focusing on the images and surrounding text:
- This HTML appears to be from a TechCrunch article discussing Canva's recent updates to Affinity, a design tool they acquired.
- * tags: these elements encapsulate the images and their captions.
Here’s a breakdown of the HTML snippet you provided, focusing on the images and surrounding text:
Overall Context:
This HTML appears to be from a TechCrunch article discussing Canva’s recent updates to Affinity, a design tool they acquired. Canva is making Affinity free for users.
Key Elements:
* <figure> tags: these elements encapsulate the images and their captions. They are used for semantic grouping of content.
* <img> tags: These are the image elements themselves. let’s break down the attributes:
* src: The URL of the image file.
* alt: Option text for the image (important for accessibility). in this case, it’s empty, which is not ideal.
* height and width: The dimensions of the image in pixels.
* loading="lazy": Indicates that the image should be loaded only when it’s near the viewport (improves page load performance).
* decoding="async": Tells the browser to decode the image asynchronously, further improving performance.
* srcset: This is a crucial attribute for responsive images. It provides a list of image URLs with different widths. The browser will choose the most appropriate image based on the user’s screen size and resolution. This is how the article serves different image sizes for different devices.
* sizes: This attribute helps the browser determine the image’s display size. It provides hints about how the image will be rendered at different viewport widths.
* <figcaption> tag: This contains the caption for the image. In this case, it credits the image to Canva.
* <p> tag: This contains the paragraph text.
* <a> tag: This creates a hyperlink to another TechCrunch article about Canva’s acquisition of affinity.
Image Details:
* First Image:
* URL: https://techcrunch.com/wp-content/uploads/2025/10/Email-AI.jpeg
* Original Width: 3840 pixels
* Multiple resized versions are provided in the srcset attribute, ranging from 50w to 2048w.
* Second image:
* URL: https://techcrunch.com/wp-content/uploads/2025/10/B1_Affinity_PTK_Non-Destructive_Editing.jpeg
* Original Width: 1920 pixels
* Resized versions are also provided in the srcset attribute, ranging from 150w to 1920w.
Responsive Image Implementation:
The use of srcset and sizes attributes demonstrates a good practice for responsive image delivery. this ensures that users receive images optimized for their devices, leading to faster page load times and a better user experience.
accessibility Note:
The empty alt attribute on the images is a problem. The alt attribute should always provide a meaningful description of the image for users who cannot see it (e.g., screen reader users).Without it, the image is effectively invisible to those users.
