diff --git a/src/content/docs/de/_roundtrip_breakpoints.txt b/src/content/docs/de/_roundtrip_breakpoints.txt
index d2d48bc..9b2a4f6 100644
--- a/src/content/docs/de/_roundtrip_breakpoints.txt
+++ b/src/content/docs/de/_roundtrip_breakpoints.txt
@@ -1,35 +1,34 @@
---
title: Breakpoints & Images
-description: Why some (but not all) breakpoints are important for your images
-taskInputHash: 57ab72e7e951b197
+description: Why some (but not all) breakpoints matter for your images
+taskInputHash: a740eb96e1b2103c
lang: en
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Background
-Small screens and big monitors require different layouts. For `srcset` and `sizes`, we need to know when the layout changes.
+Small and large screens require different layouts. For `srcset` and `sizes`, we need to know at which resolution to change the layout.
-Web developers need to decide what should be scaled down, hidden, or moved on smaller screens - or decide what should be expanded, revealed, or added on larger screens. They also have very little information available. Is the user on a tablet or phone in landscape mode or in a small browser window?
+Web developers need to decide what to shrink, hide, or move on smaller screens—or, more often, what to expand, show, or add on larger screens. But they have very little information available. Is the user on a tablet or a phone in landscape mode, or on a small browser window?
-We have to choose an arbitrary viewport width at which the layout changes. This is called a **breakpoint**. It can be any number of CSS pixels ([not device pixels](/en/pixels-not-pixels)). Polypane has a [great article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) on commonly used breakpoints.
+We need to choose an arbitrary viewport width at which to change the layout. This is called a **breakpoint**. It's an arbitrary number of CSS pixels ([not device pixels](/en/pixels-not-pixels)). Polypane has a [great article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) about common breakpoints.
-Some images (like logos, icons, or buttons) can be immune to the layout shifts caused by these breakpoints (and are okay with [srcset density descriptors](/en/density-descriptors)).
+Some images (like logos, icons, or buttons) may be immune to the layout shifts caused by these breakpoints (and work well with [density descriptors in `srcset`](/en/density-descriptors)).
-Main content images are limited by the size of their container. Typically, the main area of a page layout is constrained to a specific width, a `max-width`, on the largest screens, but on small screens the main content area fills the entire viewport.
+Main content images are limited by the size of their container. Typically, a page's main content area is constrained to a certain width, a `max-width`, on the largest screens, but on small screens, the main content area will fill the entire viewport.
-When you have more than one column at some breakpoints, it becomes difficult to compute the effective size rules because the percentage of viewport width taken up by the image changes.
+If you have more than one column at some breakpoints, it becomes harder to compute effective size rules, since the percentage of viewport width that the image occupies changes.
-### The easy way
+### The simple method
-That doesn't mean you should smash your head against the wall. You will likely get very far with the following approach:
+Still, don't think too hard. You will likely be happy with the following approximation:
-1. At what size does the main column (or the container of the image) stop growing? Until that viewport width, we can use `100vw` for the `sizes` attribute of the image to indicate that the image takes up 100% of the viewport width.
-2. What is the maximum width the container will ever be? We can set that as a fixed `width` for everything else.
+1. At what size does the main column (or the image's container) stop growing? Up until that viewport width, we can use `100vw` for the image's `sizes` attribute, to say that the image takes up 100% of the viewport width.
+2. What's the largest size the container will ever be? We can set that as a fixed `width` for everything else.
-If your answer to 1 is 700px and your answer to 2 is 800px, you can use the following `sizes` attribute:
+If your answer to 1 was 700px and your answer to 2 was 800px, you can use the following `sizes` attribute:
```html
@@ -38,7 +37,7 @@ If your answer to 1 is 700px and your answer to 2 is 800px, you can use the foll
-> You would think that the browser could kindly do all these calculations for us based on the CSS. Unfortunately, browsers are aggressively trying to choose an image URL *before* downloading stylesheets. So we have to do the calculations ourselves. And if we're not perfect, that's their problem.
+> You might think the browser could handle all these computations nicely for us, based on the CSS. Sadly, browsers are aggressively keen to choose an image URL *before* downloading stylesheets. That's why we need to make the computations ourselves, and they'll forgive us if we don't do it perfectly.
=====================
Content prompt used:
@@ -52,7 +51,7 @@ Also carefully translate the title and description for the article; do not use &
2. Why some (but not all) breakpoints matter for your images
Metadata returned1. Breakpoints & Bilder
-2. Warum manche (aber nicht alle) Breakpoints wichtig für Ihre Bilder sind
+2. Warum einige (aber nicht alle) Breakpoints für Ihre Bilder wichtig sind
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/_roundtrip_browser-picks-srcset.txt b/src/content/docs/de/_roundtrip_browser-picks-srcset.txt
index f129def..89d3274 100644
--- a/src/content/docs/de/_roundtrip_browser-picks-srcset.txt
+++ b/src/content/docs/de/_roundtrip_browser-picks-srcset.txt
@@ -1,67 +1,68 @@
---
-title: How the Browser selects
-description: How the browser selects between images listed in the "srcset" attribute
-taskInputHash: 21fa78dd27583003
+title: How browsers choose
+description: >-
+ How browsers choose between images listed in the srcset attribute
+taskInputHash: 09ab2b098b259019
lang: en
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-How does the browser select between images listed in the "srcset" attribute? Here is a step-by-step guide with examples for both width and density descriptors and how the browser decides based on the device and viewport.
+How do browsers choose between the images listed in the srcset attribute? Here is a step-by-step guide with examples for both width and density specifications and how the browser decides based on device and viewport.
-- When using the "srcset" attribute in HTML, the browser uses a set of rules to select the most suitable image from a list of provided sources. These rules depend on both the display characteristics of the device (resolution, pixel density) and the size of the viewport. The "srcset" attribute allows you to specify different images based on width (using the "w" descriptor) or pixel density (using the "x" descriptor). Let's go through examples for both cases.
+When the `srcset` attribute is used in HTML, the browser uses a set of rules to select the most appropriate image from a list of provided sources. These rules depend on both the display properties of the device (resolution, pixel density) and the size of the viewport. The `srcset` attribute allows you to specify different images based on width (using the `w` descriptor) or pixel density (using the `x` descriptor). Let's go through each case with examples.
-1. Width descriptor ("w"):
+1. Width descriptor (`w`):
-Assuming we have the following "srcset" attribute:
+Assuming we have the following `srcset` attribute:
```html
-
-
```
-The browser will perform the following steps:
+The browser will perform the following steps:
-a. Determine the DPR (Device Pixel Ratio) of the device. For instance, a standard display has a DPR of 1, while a high-resolution (Retina) display has a DPR of 2 or higher.
+a. Determine the DPR (Device Pixel Ratio) of the device. For example, a standard display has a DPR of 1, while a high-resolution (Retina) display has a DPR of 2 or higher.
-b. Calculate the effective width for each image in the "srcset". Multiply the width descriptor by the DPR. For a device with a DPR of 1:
+b. Calculate the effective width for each image in the `srcset`. Multiply the width descriptor by the DPR. For a device with a DPR of 1:
-- example-small.jpg: 400 * 1 = 400px
+- example-small.jpg: 400 * 1 = 400px
-- example-medium.jpg: 800 * 1 = 800px
+- example-medium.jpg: 800 * 1 = 800px
-- example-large.jpg: 1600 * 1 = 1600px
+- example-large.jpg: 1600 * 1 = 1600px
-c. Compare the effective widths to the viewport width. Assuming the viewport width is 420px, the browser selects the smallest image whose effective width is greater than or equal to the viewport width. In this case, "example-medium.jpg" is selected.
+c. Compare the effective widths with the viewport width. Assume the viewport width is 420px. The browser selects the smallest image with an effective width that is greater than or equal to the viewport width. In this case, `example-medium.jpg` will be chosen.
-2. Density descriptor ("x"):
+2. Density descriptor (`x`):
-Assuming we have the following "srcset" attribute:
+Assuming we have the following `srcset` attribute:
```html
-
-
```
-The browser will perform the following steps:
+The browser will perform the following steps:
-a. Determine the DPR (Device Pixel Ratio) of the device. For instance, a standard display has a DPR of 1, while a high-resolution (Retina) display has a DPR of 2 or higher.
+a. Determine the DPR (Device Pixel Ratio) of the device. For example, a standard display has a DPR of 1, while a high-resolution (Retina) display has a DPR of 2 or higher.
-b. Compare the device's DPR with the "x" descriptors in the "srcset". In this case, we have three images with the following descriptors:
+b. Compare the device's DPR with the `x` descriptors in the `srcset`. In this case, we have three images with the following descriptors:
-- example-1x.jpg: 1x
+- example-1x.jpg: 1x
-- example-2x.jpg: 2x
+- example-2x.jpg: 2x
-- example-3x.jpg: 3x
+- example-3x.jpg: 3x
-c. Select the image with the "x" descriptor closest to the device's DPR. For a device with a DPR of 1, the browser selects "example-1x.jpg". For a device with a DPR of 2, it selects "example-2x.jpg", and so on.
+c. Select the image with the `x` descriptor that is closest to the device's DPR. For a device with a DPR of 1, the browser will select `example-1x.jpg`. For a device with a DPR of 2, it will select `example-2x.jpg`, and so on.
-It is important to note that you can also use the "sizes" attribute in combination with the "srcset" attribute to provide further information on how the image should display at different viewport widths. This is particularly useful when using the width descriptor ("w"). Here is an example:
+It is important to note that you can also use the `sizes` attribute in combination with the `srcset` attribute to provide additional information on how the image should be displayed at different viewport widths. This is especially useful when using the width descriptor (`w`). Here is an example:
```html
-
` element. Density descriptors (`x`) are used in conjunction with srcset to provide images at different resolutions based on the pixel density of the user's display.
+Srcset is an HTML attribute that enables you to specify multiple image sources for a single ` ` element. Density descriptors (`x`) are used in conjunction with Srcset to provide images with different resolutions based on the pixel density of the user's display.
-## When to use srcset with density descriptors?
+## When to Use Srcset with Density Descriptors?
-Using srcset with density descriptors is especially useful when you:
-1. Want to provide high resolution images for high DPI displays (e.g. Retina displays) while using lower resolutions for standard displays.
-2. Want to improve page rendering by providing the most appropriate image size for each user's device.
+You should use Srcset with density descriptors particularly in the following scenarios:
+1. If you want to provide high-resolution images on high-DPI devices (such as retina displays) while providing lower-resolution images on standard displays.
+2. If you want to improve the page's performance by delivering the best-suited image size for each user's device.
-## Implementing srcset with density descriptors
+## Implementing Srcset with Density Descriptors
-To use srcset with density descriptors, follow these steps:
+To use Srcset with density descriptors, follow these steps:
1. Prepare your images in different resolutions.
-2. Add the `srcset` attribute to the ` ` element, including the image sources and corresponding density descriptors.
-3. Optionally, add the `sizes` attribute to set the size of the image on the screen.
+2. Add the `srcset` attribute to the ` ` element, including the image sources and their corresponding density descriptors.
+3. Add the `sizes` attribute (optionally) to set the size at which the image is displayed on the screen.
-### Markup example
+### Example Markup
-Here is an example of how to implement srcset with density descriptors in your markup:
+Here's an example of how you can implement Srcset with density descriptors in your markup:
```html
```
-This markup example includes:
-- **src**: The default image source to be displayed when the browser does not support srcset.
-- **srcset**: The list of image sources and their density descriptors (1x, 2x, 3x). The browser chooses the most appropriate image based on the user's display.
-- **alt**: A description of the image for accessibility purposes.
+This example markup includes:
+- **src**: The default image source that shows if the browser doesn't support Srcset.
+- **srcset**: The list of image sources and their density descriptors (1x, 2x, 3x). The browser selects the most suitable image based on the user's display.
+- **alt**: A description of the image for accessibility.
-And that's it! You have successfully implemented srcset with density descriptors, improving the performance and user experience of your website.
+And that's it! You've successfully implemented Srcset with density descriptors and improved your website's performance and user experience.
=====================
Content prompt used:
@@ -55,8 +54,8 @@ Also carefully translate the title and description for the article; do not use &
1. Density descriptors & srcset
2. Examples of using density descriptors in `srcset`
-Metadata returned1. Density-Descriptoren und Srcset
-2. Beispiele für die Verwendung von Density-Descriptoren in `srcset`
+Metadata returned1. Density-Descriptors & Srcset
+2. Beispiele für die Verwendung von Density-Descriptors in `Srcset`
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/_roundtrip_introduction.txt b/src/content/docs/de/_roundtrip_introduction.txt
index a15f270..a6226b6 100644
--- a/src/content/docs/de/_roundtrip_introduction.txt
+++ b/src/content/docs/de/_roundtrip_introduction.txt
@@ -1,41 +1,43 @@
---
-title: srcset and sizes
-description: An efficient and definitive guide to responsive images until 2023
-taskInputHash: f8e7c31ccf577572
+title: '`srcset` and ` ` sizes'
+description: An efficient and definitive guide to responsive images for 2023
+taskInputHash: dc8c8594bdd45d91
lang: en
-ignore: '/* cSpell:locale de,en*/'
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-**An efficient and definitive guide to images until 2023**
+**An Efficient and Definitive Guide to Images for 2023**
-See the sidebar for the detailed analysis. This is the quick reference for updating these ` ` tags to support modern devices of all sizes and pixel densities. You should [know that pixel ≠ pixel](/en/pixel-not-a-pixel) and `devicePixelRatio` is more likely to be 3.875 than 1:1. Modern phones pretend to be 320-428px wide to improve legibility (in CSS pixels), but have many device pixels per CSS pixel.
+Check the sidebar for details. This is a quick reference for updating ` ` tags to handle modern devices in all their various sizes and pixel densities. You should [understand that Pixel ≠ Pixel](/en/pixel-not-pixel) and that `devicePixelRatio` is likely to be closer to 3.875 than to 1:1. Modern phones pretend to be 320-428px wide (in CSS pixels) for legibility but have many device pixels per CSS pixel.
-> If your image size never changes no matter how narrow you make the browser window, consider using a [density descriptor](/en/density-descriptors) instead. This is often suitable for logos, icons, and buttons.
+> If your image never changes its size, regardless of the size of the browser window, you should use a [density descriptor](/en/density-descriptors) instead. This is often suitable for logos, icons, and buttons.
-Do you know what your [breakpoints](/en/breakpoints) are? You’ll need those numbers to fine-tune the solution below – and at least the viewport breakpoint where the main content area stops growing.
+Do you know what your [breakpoints](/en/breakpoints) are? You will need these numbers to fine-tune the solution below -- and at least the viewport width breakpoint at which the main content stops growing.
-### The easy method
+### The Simple Method
```html
+
-
+ sizes="(max-width: 700px) 100vw, 800px" alt="Dog riding a bike" />
+
+
-
+
```
+
+{{Note that the symbol "&" in the `srcset` attribute should be replaced with "&" to be valid HTML.}}
=====================
Content prompt used:
@@ -48,8 +50,8 @@ Also carefully translate the title and description for the article; do not use &
1. srcset & sizes
2. An Efficient and Opinionated Guide to Responsive Images for 2023
-Metadata returned1. srcset und sizes
- 2. Ein effizienter und dezidierter Leitfaden für responsive Bilder bis 2023
+Metadata returned1. `srcset` und ` ` Größen
+2. Ein effizienter und entschiedener Leitfaden für responsive Bilder für 2023
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/_roundtrip_lighthouse-performance-test.txt b/src/content/docs/de/_roundtrip_lighthouse-performance-test.txt
index de4e2f1..323b713 100644
--- a/src/content/docs/de/_roundtrip_lighthouse-performance-test.txt
+++ b/src/content/docs/de/_roundtrip_lighthouse-performance-test.txt
@@ -1,28 +1,27 @@
---
-title: Testing Performance with Lighthouse
-description: Steps for testing a website's performance using Lighthouse
-taskInputHash: ec9606eee206cc98
+title: Test Performance with Lighthouse
+description: Steps to test a website's performance using Lighthouse
+taskInputHash: 26eb06d37d959148
lang: en
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-How do you test your website's performance using Lighthouse?
-
-> Lighthouse is a tool that allows for the measurement of a website's performance, accessibility, and other aspects. To test your website's performance using Lighthouse, follow these steps:
->
-> 1. Open the Google Chrome web browser and navigate to the page you wish to test.
->
-> 2. Click on the three dots in the upper right corner of the browser window, then select "More Tools" and then "Developer Tools," or simply use the keyboard shortcut "Ctrl+Shift+I" (Windows, Linux) or "Command+Option+I" (macOS).
->
-> 3. In the Developer Tools window, click on the Lighthouse icon on the left side of the window, or press "Ctrl+Shift+P" (Windows, Linux) or "Command+Shift+P" (macOS) to open the Command Menu. Type "Lighthouse" and select "Generate report."
->
-> 4. In the Lighthouse dialog box, select the performance and other relevant options you wish to test, then click "Generate report."
->
-> 5. Once Lighthouse completes its analysis, you will see a report with scores and recommendations for improving your website's performance, accessibility, and other areas.
->
-> By following these steps, you can use Lighthouse to test and optimize your website's performance, which can improve user experience and search engine rankings.
+How to test your website's performance with Lighthouse?
+
+>Lighthouse is a tool that can be used to measure the performance, accessibility, and other aspects of a website. To test your website's performance with Lighthouse, follow these steps:
+
+>1. Open the Google Chrome web browser and navigate to the page you want to test.
+
+>2. Click on the three dots in the upper right corner of the browser window and then select "More Tools" and then "Developer Tools" or simply use the keyboard shortcut "Ctrl+Shift+I" (Windows, Linux) or "Command+Option+I" (macOS).
+
+>3. In the Developer Tools window, click on the Lighthouse icon on the left side of the window or press "Ctrl+Shift+P" (Windows, Linux) or "Command+Shift+P" (macOS) to open the command menu, then type "Lighthouse" and select "Generate report."
+
+>4. In the Lighthouse dialog box, select the performance and other relevant options you want to test, and then click "Generate report."
+
+>5. After Lighthouse has completed its analysis, you'll see a report with ratings and recommendations to improve the performance, accessibility, and other areas of your website.
+
+>By following these steps, you can use Lighthouse to test and optimize your website's performance, which can help improve the user experience and search engine rankings.
=====================
Content prompt used:
@@ -35,8 +34,8 @@ Also carefully translate the title and description for the article; do not use &
1. Test performance with Lighthouse
2. Steps on how to test a website's performance using Lighthouse
-Metadata returned1. Testen der Leistung mit Lighthouse
-2. Schritte zum Testen der Leistung einer Website mit Lighthouse
+Metadata returned1. Testen Sie die Leistung mit Lighthouse
+2. Schritte zum Testen der Leistung einer Website mithilfe von Lighthouse
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/_roundtrip_picture-examples.txt b/src/content/docs/de/_roundtrip_picture-examples.txt
index b3a5396..82fed81 100644
--- a/src/content/docs/de/_roundtrip_picture-examples.txt
+++ b/src/content/docs/de/_roundtrip_picture-examples.txt
@@ -1,54 +1,61 @@
----
-title: Examples for usage of element
-description: >-
- Provides examples for the usage of the element for responsive images, art direction, and various image formats.
-taskInputHash: aace1b3e0a9751e5
-lang: en
----
-Here are a few examples for the usage of the `` element and their explanations:
-
-1. Example for responsive images:
-
-```html
-
-
-
-
-
-```
-
-Explanation: In this example, the `` element is used to provide different image sources for different screen sizes. The `` elements specify the different image sources using the `srcset` attribute and the `media` attribute to define the conditions under which each source should be used. The ` ` element is used as fallback for older browsers or if the conditions specified in the `` elements are not met.
-
-2. Example for Art Direction:
-
-```html
-
-
-
-
-```
-
-Explanation: In this example, the `` element is used to provide different image sources based on the orientation of the device. The `` element with the `media` attribute set to `(orientation: landscape)` specifies an image source for wide screens while the ` ` element specifies an image source for portrait screens.
-
-3. Example for various image formats:
-
-```html
-
-
-
-
-
-```
-
-Explanation: In this example, the `` element is used to provide different image sources for various image formats. The `` elements specify different image sources using the `srcset` attribute and the `type` attribute to define the image format. The ` ` element is used as fallback for older browsers that do not support the `` element.
-
-## Breakpoints
-
-In responsive design, breakpoints are used to define when the layout of a website or application should change based on the size of the viewport. Breakpoints are typically defined with media queries in CSS that apply different styles depending on the screen width. These breakpoints can be used in conjunction with the `` element to provide different image sources for different screen sizes.
-
-In the first example above, we used the `media` attribute to specify the screen width at which each source should be used. If the screen width is greater than or equal to 768 pixels, the `image-large.jpg` source will be used. If the screen width is greater than or equal to 480 pixels but less than 768 pixels, `image-medium.jpg` source will be used. If the screen width is less than 480 pixels, the `image-small.jpg` source will be used. This allows appropriately sized images to be provided for each device, reducing page load times and improving the user experience.
-
-Breakpoints can be defined for any screen size, and multiple breakpoints can be used to create layouts that respond to a wide range of devices. By combining breakpoints with the `` element, flexible and responsive designs can be created that look great on any device.
+---
+title: Examples of Using the Element
+description: >-
+ Provides examples of using the element for responsive images, art
+ direction, and different image formats.
+taskInputHash: b441f3138e70c382
+lang: en
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
+---
+Here are a few examples of using the `` element and their explanations:
+
+1. Example for responsive images:
+
+```html
+
+
+
+
+
+```
+
+Explanation: In this example, the `` element is used to provide different image sources for different screen sizes. The `` elements specify the different image sources using the "srcset" attribute and the "media" attribute to specify the conditions under which each source should be used. The ` ` element is used as a fallback for older browsers or when the conditions specified in the `` elements are not met.
+
+2. Example for art direction:
+
+```html
+
+
+
+
+
+```
+
+Explanation: In this example, the `` element is used to provide different image sources based on the orientation of the device. The `` element with the "media" attribute set to "(orientation: landscape)" specifies an image source for wide screens, while the ` ` element specifies an image source for portrait screens.
+
+3. Example for different image formats:
+
+```html
+
+
+
+
+
+
+
+```
+
+Explanation: In this example, the `` element is used to provide different image sources for different image formats. The `` elements specify different image sources using the "srcset" attribute and the "type" attribute to specify the image format. The ` ` element is used as a fallback for older browsers that do not support the `` element.
+
+## Breakpoints
+
+In responsive design, breakpoints are used to determine when the layout of a website or application should change based on the size of the viewport. Breakpoints are typically defined using media queries in CSS, which apply different styles depending on the screen width. These breakpoints can be used in conjunction with the `` element to provide different image sources for different screen sizes.
+
+In the first example above, for instance, we used the `media` attribute to specify the screen width under which each source should be used. If the screen width is greater than or equal to 768 pixels, the `image-large.jpg` source will be used. If it's greater than or equal to 480 pixels but less than 768 pixels, the `image-medium.jpg` source will be used. And if the screen width is less than 480 pixels, the `image-small.jpg` source will be used. This allows us to provide appropriately sized images for each device, reducing website load times and improving the user experience.
+
+Breakpoints can be defined at any screen size, and multiple breakpoints can be used to create layouts that respond to a variety of devices. By combining breakpoints with the `` element, flexible and responsive designs can be created that look great on any device.
=====================
Content prompt used:
@@ -61,8 +68,8 @@ Also carefully translate the title and description for the article; do not use &
1. Examples using element
2. Provides examples using the element, for responsive images, art direction and different image formats
-Metadata returned1. Beispiele für die Verwendung des -Elements
-2. Bietet Beispiele für die Verwendung des -Elements für responsive Bilder, Art Direction und verschiedene Bildformate.
+Metadata returned1. Beispiele zur Verwendung des -Elements
+2. Bietet Beispiele unter Verwendung des -Elements für responsive Bilder, Art Direction und unterschiedliche Bildformate.
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/_roundtrip_pixels-not-pixels.txt b/src/content/docs/de/_roundtrip_pixels-not-pixels.txt
index 0055c57..9f4ad20 100644
--- a/src/content/docs/de/_roundtrip_pixels-not-pixels.txt
+++ b/src/content/docs/de/_roundtrip_pixels-not-pixels.txt
@@ -1,23 +1,23 @@
---
title: px ≠ Pixel
description: Device Pixels ≠ Browser Pixels ≠ Image Pixels
-taskInputHash: 6bf2840ae3339b2e
+taskInputHash: b857216a5693bfeb
lang: en
-ignore: '/* cSpell:locale de,en*/'
sidebar_sort_priority: 900
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Device Pixels ≠ Browser Pixels ≠ Image Pixels
-Thanks to Apple, CSS and HTML pixels (`px`) almost never correspond to a single device/printer pixel. The `devicePixelRatio` on my phone is 3.875; [how high is yours?](https://www.mydevice.io/)
+Thanks to Apple, 1 CSS/HTML pixel (`px`) corresponds **almost always to multiple device/printer pixels**. The `devicePixelRatio` on my phone is 3.875; [what is it on yours?](https://www.mydevice.io/)
-My desktop `devicePixelRatio` changes as I zoom in on the browser, but it is typically 1.5 (my `System > Display > Scale` is set to 150%, after all).
+My desktop's `devicePixelRatio` changes with browser zoom, but the standard is 1.5 (my `System > Display > Scale` is set to 150%).
-Image files (except for SVG) decode to a grid of pixels. **Unfortunately, it is difficult to display image pixels perfectly at a 1:1 ratio with device pixels -- but with `srcset`, you can get *close enough*, and some JavaScript can adjust the size of the HTML element after it loads if you have a really compelling reason for perfect parity, though such black arts will not be revealed here.**
+Image files (excluding SVGs) are decoded as a raster of pixels. **It's extremely difficult to display image pixels perfectly in a 1:1 ratio with device pixels, but with `srcset` you can get *close* to it**, and a little bit of JavaScript can adjust the size of the HTML element after loading if you have very important reasons for a perfect match, but those forbidden arts will not be disclosed here.
+
+> Other absolute [units (in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/de/docs/Web/CSS/L%C3%A4ngenangaben) are defined in terms of the number of CSS pixels, acting as if everything is 96 dpi. Developers avoid absolute units because it's generally better to use units derived from font size or viewport/container dimensions. Mismatching units can break layout when the user adjusts the `Accessibility > Text size` multiplier, zooms the program window, or rotates the device. You should take care of all this before launching your website, which goes without saying.
-> Other absolute [units (in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/en-US/docs/Web/CSS/length) are defined in terms of the number of CSS pixels they represent, pretending that everything is 96dpi. Developers should generally avoid absolute units, opting for units that derive from font size or viewport/container dimensions. Mismatched units can break a layout when the user adjusts the `Accessibility > Text Size` multiplier, when the browser zooms, or when the device is rotated. Of course, you should test all of these things before publishing your site.
=====================
Content prompt used:
@@ -31,7 +31,7 @@ Also carefully translate the title and description for the article; do not use &
2. Device px ≠ browser px ≠ image px
Metadata returned1. px ≠ Pixel
-2. Geräte-Pixel ≠ Browser-Pixel ≠ Bild-Pixel
+2. Geräte-Pixel ≠ Browserpixel ≠ Bildpixel
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/_roundtrip_specify-width-height.txt b/src/content/docs/de/_roundtrip_specify-width-height.txt
index 1e1616b..890f30f 100644
--- a/src/content/docs/de/_roundtrip_specify-width-height.txt
+++ b/src/content/docs/de/_roundtrip_specify-width-height.txt
@@ -1,10 +1,10 @@
-Why should you include width and height in HTML?
+Why should you specify width and height in HTML code?
-> It is recommended to include width and height attributes in the HTML code for images, as they help the web browser to know the size of the image before it is fully loaded. This allows the browser to reserve the appropriate space on the webpage for the image, which prevents content from jumping when the image is loaded.
+> It is recommended to use width and height attributes in HTML code for images as this helps the web browser to know the size of the image before it is fully loaded. This allows the browser to reserve the appropriate space on the webpage for the image to prevent content from shifting when loading the image.
>
-> Additionally, specifying width and height attributes for images can help improve the overall performance of the webpage. If a browser knows the size of an image in advance, it can more accurately calculate how much space is needed to display the image and avoid unnecessary reflows or repaints of the content during loading.
+> In addition, specifying width and height attributes for images can also improve the overall performance of the webpage. If a browser knows the size of an image in advance, it can more accurately calculate how much space is needed to display the image and avoid unnecessary reflows or repaints of the content while loading.
>
-> Overall, the use of width and height attributes in HTML code for images can improve the user experience by loading content faster and reducing visual errors.
+> Overall, the use of width and height attributes in HTML code for images can improve the user experience by loading content faster and reducing visual disruptions.
=====================
Content prompt used:
@@ -18,7 +18,7 @@ Also carefully translate the title and description for the article; do not use &
2. Benefits of using width and height attributes in HTML code
Metadata returned1. Verwendung von Breite und Höhe
-2. Vorteile der Verwendung von Breite und Höhe Attributen im HTML-Code
+2. Vorteile der Verwendung von Breiten- und Höhenattributen im HTML-Code
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/_roundtrip_when-to-use-picture.txt b/src/content/docs/de/_roundtrip_when-to-use-picture.txt
index 508508a..2620362 100644
--- a/src/content/docs/de/_roundtrip_when-to-use-picture.txt
+++ b/src/content/docs/de/_roundtrip_when-to-use-picture.txt
@@ -1,26 +1,25 @@
---
title: When to Use the Element
-description: 'Explains in which situations to use the element.'
-taskInputHash: 0d098655c456a3e4
+description: 'Explains in which situations you should use the element.'
+taskInputHash: 73c0c55c4704b344
lang: en
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-27'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-The `picture` element is used to provide multiple versions of an image and choose which version of the image to display based on certain conditions. It is especially useful for optimizing images for different screen sizes and resolutions and is commonly used in responsive web design.
+The `picture` element is used to provide multiple versions of an image and determine which version of the image should be displayed based on certain conditions. It is particularly useful for optimizing images for different screen sizes and resolutions and is commonly used in responsive web design.
-Here are some specific scenarios in which you would want to use the `picture` element:
+Here are some specific scenarios in which you should use the `picture` element:
-* **Retina displays:** High-resolution screens such as Apple's Retina displays have a higher pixel density, which means that images can look blurry or pixelated if they are not optimized for high resolutions. With the `picture` element, you can provide a version of the image that has twice as many pixels as the normal version, so it looks sharp and clear on Retina displays.
+* **Retina displays:** High-resolution displays such as Apple's Retina displays have a higher pixel density, which means that images can appear blurry or pixelated if they are not optimized for high resolution. With the `picture` element, you can provide a version of the image that has twice as many pixels as the normal version, making it appear sharp and clear on Retina displays.
-* **Different aspect ratios:** If you are designing a website that needs to display images with different aspect ratios (e.g. landscape vs. portrait), you can use the `picture` element to provide different versions of the image that are optimized for each aspect ratio.
+* **Different aspect ratios:** If you are designing a page that needs to display images with different aspect ratios (such as landscape vs portrait), you can use the `picture` element to provide different versions of the image that are optimized for each aspect ratio.
-* **Bandwidth limitations:** Images can be large files that require a lot of bandwidth, especially on mobile devices. With the `picture` element, you can provide smaller versions of the image for devices with smaller screens or slower internet connections, to reduce website load times.
+* **Bandwidth limitations:** Images can be large files that require a lot of bandwidth, especially on mobile devices. With the `picture` element, you can provide smaller versions of the image for devices with smaller screens or slower internet connections, which can help reduce page load times.
-* **Art-directed layouts:** Sometimes you want to present an image in a certain way depending on the layout of the rest of the page. For example, you might want to show a close-up of a person's face on mobile devices, but a wider view on desktop devices. The `picture` element allows you to provide different versions of the image that are optimized for different layouts.
+* **Art-directed layouts:** Sometimes you want to present an image in a certain way depending on the layout of the rest of the page. For example, you may want to show a close-up of a person's face on mobile devices, but a wider shot on desktop devices. The `picture` element allows you to provide different versions of the image that are optimized for different layouts.
-Overall, the `picture` element is a powerful tool that allows you to optimize your images for a variety of use cases and ensure they look great regardless of the device or screen size.
+Overall, the `picture` element is a powerful tool that allows you to optimize your images for a variety of use cases and ensure that they look great regardless of the device or screen size.
=====================
Content prompt used:
@@ -34,7 +33,7 @@ Also carefully translate the title and description for the article; do not use &
2. Explains in which situations you should use the element
Metadata returned1. Wann man das -Element verwenden sollte
-2. Erklärt, in welchen Situationen das -Element verwendet werden sollte.
+2. Erklärt, in welchen Situationen du das -Element verwenden solltest.
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/_roundtrip_width-density.txt b/src/content/docs/de/_roundtrip_width-density.txt
index 892da3c..f91af97 100644
--- a/src/content/docs/de/_roundtrip_width-density.txt
+++ b/src/content/docs/de/_roundtrip_width-density.txt
@@ -1,50 +1,49 @@
---
-title: Width and Density Adapters
-description: Examples of using width and density adapters in `srcset`
-taskInputHash: 2171ff4767b5d45d
+title: Width and Density Descriptors
+description: Examples of using width and density descriptors in `srcset`
+taskInputHash: ecf3cb15eb544dea
lang: en
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Understanding width (`w`) and density (`x`) adapters in `srcset`. Use examples and markdown.
+Understanding width (w) and density descriptors (x) in `srcset`. Use examples and markdown.
-> `srcset` is an HTML attribute that allows developers to provide multiple image sources with different resolutions or pixel densities and let the browser choose the appropriate image based on the display properties of the device. The `srcset` attribute uses a combination of `URL` and `w-` or `x-` adapters to specify the images.
+> `srcset` is an HTML attribute that allows developers to provide multiple image sources with different resolutions or pixel densities and let the browser select the appropriate image based on the device's display properties. The `srcset` attribute uses a combination of the `URL` and the `w` or `x` descriptors to specify the images.
-## Width (`w`) Adapter
+## Width (w) Descriptor
-> The `w-` adapter is used to indicate the width of an image in pixels. It is used when we want to provide image dimensions to the browser so that it can choose the appropriate image for the available screen space.
+> The `w` descriptor is used to specify the width of an image in pixels. It is used when we want to provide the browser with the dimensions of an image so that it can select the appropriate image for the available screen space.
-> The syntax for using the `w-` adapter in `srcset` looks like this:
+> The syntax for using the `w` descriptor in `srcset` is as follows:
```html
+ alt="Example image">
```
-> In the above example, we have provided the browser with three images and their corresponding widths in pixels. The browser selects the image with the closest width to the available screen space.
+> In the above example, we provided the browser with three images and their corresponding widths in pixels. The browser will select the image with the closest width to the available screen space.
-## Density (`x`) Adapter
+## Density Descriptor (`x`)
-> The `x-` adapter is used to indicate the pixel density of an image, which is the ratio of physical pixels to CSS pixels. It is used when we want to provide the browser with different versions of the same image with different pixel densities.
+> The `x` descriptor is used to specify the pixel density of an image, which corresponds to the ratio of physical pixels to CSS pixels. It is used when we want to provide the browser with different versions of the same image at different pixel densities.
-> The syntax for using the `x-` adapter in `srcset` looks like this:
+> The syntax for using the `x` descriptor in `srcset` is as follows:
```html
+ alt="Example image">
```
-> In the above example, we have provided the browser with three images and their corresponding pixel densities. The browser selects the image with the closest pixel density to the device screen.
+> In the above example, we provided the browser with three images and their corresponding pixel densities. The browser will select the image with the closest pixel density to the device's display.
-> Note that the `w-` and `x-` adapters can be used in the same `srcset` attribute to provide the browser with more options to choose from.
+> Note that the `w` and `x` descriptors can be used together in the same `srcset` attribute to provide the browser with more options to choose from.
=====================
Content prompt used:
@@ -57,8 +56,8 @@ Also carefully translate the title and description for the article; do not use &
1. Width and density descriptors
2. Examples of using width and density descriptors in `srcset`
-Metadata returned1. Breiten- und Dichteadapter
-2. Beispiele für die Verwendung von Breiten- und Dichteadaptern in `srcset`
+Metadata returned1. Breiten- und Dichtedeskriptoren
+2. Beispiele für die Verwendung von Breiten- und Dichtedeskriptoren in `srcset`
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/de/breakpoints.md b/src/content/docs/de/breakpoints.md
index 98ebd65..7014dda 100644
--- a/src/content/docs/de/breakpoints.md
+++ b/src/content/docs/de/breakpoints.md
@@ -1,41 +1,40 @@
---
title: Breakpoints & Bilder
-description: Warum manche (aber nicht alle) Breakpoints wichtig für Ihre Bilder sind
-taskInputHash: 57ab72e7e951b197
+description: Warum einige (aber nicht alle) Breakpoints für Ihre Bilder wichtig sind
+taskInputHash: a740eb96e1b2103c
lang: de
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Hintergrund
-Kleine Bildschirme und große Monitore benötigen unterschiedliche Layouts. Für `srcset` und `sizes` müssen wir wissen, wann das Layout geändert wird.
+Kleine und große Bildschirme erfordern unterschiedliche Layouts. Für `srcset` und `sizes` müssen wir wissen, bei welcher Auflösung das Layout geändert werden soll.
-Webentwickler müssen entscheiden, was auf kleineren Bildschirmen verkleinert, ausgeblendet oder verschoben werden soll - oder sie müssen entscheiden, was auf größeren Bildschirmen erweitert, aufgedeckt oder hinzugefügt werden soll. Sie haben auch sehr wenig Informationen zur Verfügung. Befindet sich der Benutzer auf einem Tablet oder Telefon im Landscape-Modus oder in einem kleinen Browserfenster?
+Webentwickler müssen entscheiden, was auf kleineren Bildschirmen verkleinert, ausgeblendet oder verschoben werden soll - oder häufiger, was bei größeren Bildschirmen erweitert, angezeigt oder hinzugefügt werden soll. Sie haben jedoch nur sehr wenige Informationen zur Verfügung. Befindet sich der Benutzer auf einem Tablet oder einem Telefon im Querformat oder auf einem kleinen Browserfenster?
-Wir müssen eine beliebige Viewport-Breite wählen, an der das Layout geändert wird. Dies wird als **Breakpoint** bezeichnet. Es handelt sich um eine beliebige Anzahl von CSS-Pixeln ([nicht Gerätepixeln](/de/pixels-not-pixels)). Polypane hat einen [großartigen Artikel](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) über gebräuchliche Breakpoints.
+Wir müssen eine willkürliche Viewport-Breite wählen, bei der das Layout geändert wird. Dies wird als **Breakpoint** bezeichnet. Es handelt sich um eine willkürliche Anzahl von CSS-Pixeln ([keine Gerätepixel](/de/pixels-not-pixels)). Polypane hat einen [großartigen Artikel](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) über gebräuchliche Breakpoints.
-Einige Bilder (wie Logos, Icons oder Buttons) können immun gegenüber den Layoutverschiebungen sein, die durch diese Breakpoints verursacht werden (und sind in Ordnung mit [srcset Density Descriptors](/de/density-descriptors)).
+Einige Bilder (wie Logos, Icons oder Schaltflächen) sind möglicherweise immun gegen die Layoutverschiebungen, die diese Breakpoints verursachen (und funktionieren gut mit [Dichtedescriptoren von `srcset`](/de/density-descriptors)).
-Hauptinhaltbilder werden durch die Größe ihres Containers begrenzt. Typischerweise ist der Hauptbereich eines Seitenlayouts auf den größten Bildschirmen auf eine bestimmte Breite begrenzt, eine `max-width`, aber auf kleinen Bildschirmen füllt der Hauptinhaltbereich den gesamten Viewport aus.
+Hauptinhalt-Bilder sind begrenzt durch die Größe ihres Containers. In der Regel wird der Hauptinhaltbereich einer Seite auf den größten Bildschirmen auf eine bestimmte Breite begrenzt, eine `max-width`, aber auf kleinen Bildschirmen wird der Hauptinhaltbereich den gesamten Viewport ausfüllen.
-Wenn Sie bei einigen Breakpoints mehr als eine Spalte haben, wird es schwieriger, die effektiven Größenregeln zu berechnen, da sich der Prozentsatz der Viewport-Breite, den das Bild einnimmt, ändert.
+Wenn Sie bei einigen Breakpoints mehr als eine Spalte haben, wird es schwieriger, die effektiven Größenregeln zu berechnen, da sich der Prozentsatz der Viewportbreite ändert, den das Bild einnimmt.
### Die einfache Methode
-Das heißt aber nicht, dass man sich den Kopf darüber zerbrechen soll. Wahrscheinlich kommen Sie mit der folgenden Annäherung sehr gut zurecht:
+Trotzdem sollten Sie nicht zu viel darüber nachdenken. Sie werden wahrscheinlich mit der folgenden Näherung sehr zufrieden sein:
-1. Bei welcher Größe hört die Hauptspalte (oder der Container des Bildes) auf zu wachsen? Bis zu dieser Viewport-Breite können wir `100vw` für das `sizes`-Attribut des Bildes verwenden, um anzugeben, dass das Bild 100% der Viewport-Breite einnimmt.
-2. Was ist die maximale Breite, die der Container jemals erreicht? Wir können das als festgelegte `width` für alles andere setzen.
+1. Bei welcher Größe hört die Hauptspalte (oder der Container des Bildes) auf zu wachsen? Bis zu dieser Viewport-Breite können wir `100vw` für das `sizes`-Attribut des Bildes verwenden, um zu sagen, dass das Bild 100% der Viewport-Breite einnimmt.
+2. Was ist die maximale Breite, die der Container jemals erreicht? Wir können das als festgelegte `width` für alles andere einstellen.
-Wenn Ihre Antwort auf 1 700px und Ihre Antwort auf 2 800px lautet, können Sie das folgende `sizes`-Attribut verwenden:
+Wenn Ihre Antwort auf 1 700px und Ihre Antwort auf 2 800px war, können Sie das folgende `sizes`-Attribut verwenden:
```html
-
+
```
-> Man würde denken, dass der Browser all diese Berechnungen netterweise für uns basierend auf dem CSS übernehmen könnte. Leider sind Browser aggressiv darum bemüht, eine Bild-URL *vor* dem Herunterladen von Stylesheets zu wählen. Also müssen wir die Berechnungen selbst durchführen. Und wenn wir nicht perfekt sind, ist es ihr Problem.
+> Man würde denken, dass der Browser alle diese Berechnungen auf Basis des CSS schön für uns handhaben könnte. Leider sind Browser aggressiv bestrebt, eine Bild-URL *vor* dem Herunterladen der Stylesheets zu wählen. Deshalb müssen wir die Berechnungen selbst durchführen, und es sei ihnen recht, wenn wir es nicht perfekt machen.
diff --git a/src/content/docs/de/browser-picks-srcset.md b/src/content/docs/de/browser-picks-srcset.md
index 542c414..548e403 100644
--- a/src/content/docs/de/browser-picks-srcset.md
+++ b/src/content/docs/de/browser-picks-srcset.md
@@ -1,18 +1,19 @@
---
title: Wie der Browser wählt
-description: Wie der Browser zwischen in srcset aufgelisteten Bildern wählt
-taskInputHash: 565e2cc4a65e54bd
+description: >-
+ Wie der Browser zwischen Bildern auswählt, die im srcset-Attribut aufgelistet
+ sind
+taskInputHash: 09ab2b098b259019
lang: de
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Wie wählt der Browser zwischen den in srcset angegebenen Bildern? Hier sind die Schritte mit Beispielen für sowohl Width- als auch Density-Spezifikationen und wie der Browser basierend auf Gerät und Viewport entscheidet:
+Wie wählt der Browser zwischen den Bildern aus, die im srcset-Attribut aufgelistet sind? Hier ist eine schrittweise Anleitung mit Beispielen für sowohl Width- als auch Density-Spezifikationen und wie der Browser auf der Grundlage von Gerät und Viewport entscheidet.
-- Wenn man das `srcset`-Attribut in HTML verwendet, verwendet der Browser eine Grundsätze zur Auswahl des geeignetsten Bildes aus der Liste der bereitgestellten Quellen. Diese Grundsätze hängen sowohl von den Anzeigeeigenschaften des Geräts (Auflösung, Pixeldichte) als auch von der Viewport-Größe ab. Das `srcset`-Attribut ermöglicht es Ihnen, verschiedene Bilder auf der Grundlage der Breite (mit Breiten-Beschreibung `w`) oder der Pixeldichte (mit X-Beschreibung `x`) zu spezifizieren. Lassen Sie uns jeden Fall mit Beispielen durchgehen.
+Wenn das `srcset`-Attribut in HTML verwendet wird, verwendet der Browser eine Reihe von Regeln, um das geeignetste Bild aus einer Liste bereitgestellter Quellen auszuwählen. Diese Regeln hängen sowohl von den Anzeigeeigenschaften des Geräts (Auflösung, Pixeldichte) als auch von der Größe des Viewports ab. Das `srcset`-Attribut ermöglicht es Ihnen, unterschiedliche Bilder je nach Breite (unter Verwendung von `w`-Deskriptor) oder Pixeldichte (unter Verwendung von `x`-Deskriptor) festzulegen. Lassen Sie uns jeden Fall mit Beispielen durchgehen.
-1\. Width-Beschreibung (`w`):
+1\. Breitendeskriptor (`w`):
Angenommen, wir haben das folgende `srcset`-Attribut:
@@ -22,22 +23,21 @@ Angenommen, wir haben das folgende `srcset`-Attribut:
```
-Der Browser wird die folgenden Schritte ausführen:
+Der Browser wird folgende Schritte ausführen:
-a. Bestimmen Sie die DPR (Gerätepikselverhältnis) des Geräts. Ein Standardbildschirm hat beispielsweise eine DPR von 1, während ein hochauflösender (Retina-)Bildschirm eine DPR von 2 oder höher hat.
+a. Bestimmen Sie das DPR (Device Pixel Ratio) des Geräts. Ein Standard-Display hat beispielsweise eine DPR von 1, während ein hochauflösendes (Retina-) Display eine DPR von 2 oder höher hat.
-b. Berechnen Sie die effektive Breite für jedes Bild im `srcset`. Multiplizieren Sie die Breiten-Beschreibung mit der DPR. Für ein Gerät mit einem DPR von 1:
+b. Berechnen Sie die effektive Breite für jedes Bild im `srcset`. Multiplizieren Sie den Breitendeskriptor mit der DPR. Für ein Gerät mit einem DPR von 1:
-- Beispiel-small.jpg: 400 * 1 = 400px
+- example-small.jpg: 400 \* 1 = 400 px
-- Beispiel-medium.jpg: 800 * 1 = 800px
+- example-medium.jpg: 800 \* 1 = 800 px
-- Beispiel-large.jpg: 1600 * 1 = 1600px
+- example-large.jpg: 1600 \* 1 = 1600 px
-c. Vergleichen Sie die effektiven Breiten mit der Viewport-Breite. Angenommen, die Viewport-Breite beträgt 420px. Der Browser wählt das kleinste Bild mit einer effektiven Breite, die größer als oder gleich der Viewport-Breite ist. In diesem Fall wählt er `example-medium.jpg`.
+c. Vergleichen Sie die effektiven Breiten mit der Viewport-Breite. Nehmen Sie an, dass die Viewport-Breite 420px beträgt. Der Browser wählt das kleinste Bild mit einer effektiven Breite aus, die größer oder gleich der Viewport-Breite ist. In diesem Fall wird `example-medium.jpg` ausgewählt.
-
-2\. Pixeldichte-Beschreibung (`x`):
+2\. Pixeldichtedeskriptor (`x`):
Angenommen, wir haben das folgende `srcset`-Attribut:
@@ -47,21 +47,21 @@ Angenommen, wir haben das folgende `srcset`-Attribut:
```
-Der Browser wird die folgenden Schritte ausführen:
+Der Browser wird folgende Schritte ausführen:
-a. Bestimmen Sie die DPR (Gerätepikselverhältnis) des Geräts. Ein Standardbildschirm hat beispielsweise eine DPR von 1, während ein hochauflösender (Retina-)Bildschirm eine DPR von 2 oder höher hat.
+a. Bestimmen Sie das DPR (Device Pixel Ratio) des Geräts. Ein Standard-Display hat beispielsweise eine DPR von 1, während ein hochauflösendes (Retina-) Display eine DPR von 2 oder höher hat.
-b. Vergleichen Sie die DPR des Geräts mit den `x`-Beschreibungen im `srcset`. In diesem Fall haben wir drei Bilder mit den folgenden Beschreibungen:
+b. Vergleichen Sie das DPR des Geräts mit den `x`-Deskriptoren im `srcset`. In diesem Fall haben wir drei Bilder mit den folgenden Deskriptoren:
-- Beispiel-1x.jpg: 1x
+- example-1x.jpg: 1x
-- Beispiel-2x.jpg: 2x
+- example-2x.jpg: 2x
-- Beispiel-3x.jpg: 3x
+- example-3x.jpg: 3x
-c. Wählen Sie das Bild mit der `x`-Beschreibung aus, die der DPR des Geräts am nächsten kommt. Für ein Gerät mit einem DPR von 1 wählt der Browser `example-1x.jpg` aus. Für ein Gerät mit einem DPR von 2 wählt er `example-2x.jpg` aus und so weiter.
+c. Wählen Sie das Bild mit dem `x`-Deskriptor aus, der dem DPR des Geräts am nächsten kommt. Für ein Gerät mit einem DPR von 1 wählt der Browser `example-1x.jpg` aus. Für ein Gerät mit einem DPR von 2 wird er `example-2x.jpg` wählen und so weiter.
-Es ist wichtig zu beachten, dass man auch das `sizes`-Attribut in Kombination mit dem `srcset`-Attribut verwenden kann, um weitere Informationen darüber zu liefern, wie das Bild bei unterschiedlichen Viewport-Breiten dargestellt wird. Dies ist besonders nützlich bei Verwendung der Breitenbeschreibung (`w`). Hier ist ein Beispiel:
+Es ist wichtig zu beachten, dass Sie auch das `sizes`-Attribut in Kombination mit dem `srcset`-Attribut verwenden können, um weitere Informationen darüber bereitzustellen, wie das Bild bei verschiedenen Viewport-Breiten angezeigt wird. Dies ist besonders nützlich bei Verwendung des Breitendeskriptors (`w`). Hier ist ein Beispiel:
```html
diff --git a/src/content/docs/de/density-descriptors.md b/src/content/docs/de/density-descriptors.md
index 0ae2d51..1ee480f 100644
--- a/src/content/docs/de/density-descriptors.md
+++ b/src/content/docs/de/density-descriptors.md
@@ -1,35 +1,30 @@
---
-title: Density-Descriptoren und Srcset
-description: Beispiele für die Verwendung von Density-Descriptoren in `srcset`
-taskInputHash: 0a85d4f28fee785a
+title: Density-Descriptors & Srcset
+description: Beispiele für die Verwendung von Density-Descriptors in `Srcset`
+taskInputHash: bb5fed05291ed4a0
lang: de
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Srcset mit Density Descriptors bietet eine einfache und effektive Methode für die Bereitstellung des am besten geeigneten Bildes für jedes Gerät des Benutzers und verbessert die Leistung und die Benutzererfahrung. Diese Anleitung führt Sie durch die Grundlagen der Verwendung von Srcset mit Density Descriptors und bietet Markup-Beispiele für Ihre Bequemlichkeit.
+Srcset mit Density-Descriptors bietet eine einfache und effektive Methode, um für jedes Gerät des Benutzers das am besten geeignete Bild zu liefern, was die Leistung und Benutzererfahrung verbessert. In dieser Anleitung werden die Grundlagen der Verwendung von Srcset mit Density-Descriptors erläutert und Beispiele für die Markierung bereitgestellt.
+## Was ist Srcset mit Density-Descriptors?
-## Was ist Srcset mit Density Descriptors?
+Srcset ist ein HTML-Attribut, das es Ihnen ermöglicht, mehrere Bildquellen für ein einzelnes ` `-Element anzugeben. Density-Descriptors (`x`) werden in Verbindung mit Srcset verwendet, um Bilder mit unterschiedlichen Auflösungen basierend auf der Pixeldichte des Displays des Benutzers bereitzustellen.
+## Wann sollte man Srcset mit Density-Descriptors verwenden?
-Srcset ist ein HTML-Attribut, das es ermöglicht, mehrere Bildquellen für ein einzelnes ` `-Element anzugeben. Density Descriptors (`x`) werden in Verbindung mit srcset verwendet, um Bilder in unterschiedlicher Auflösung basierend auf der Pixeldichte des Displays des Benutzers bereitzustellen.
+Die Verwendung von Srcset mit Density-Descriptors ist besonders nützlich, wenn Sie:
+1. Hochauflösende Bilder auf Geräten mit hoher DPI (z.B. Retina-Displays) bereitstellen möchten, während Sie für Standard-Displays Bilder mit niedrigerer Auflösung bereitstellen möchten.
+2. Die Leistung der Seite verbessern möchten, indem Sie die am besten geeignete Bildgröße für jedes Gerät des Benutzers bereitstellen.
+## Implementierung von Srcset mit Density-Descriptors
-## Wann soll man Srcset mit Density Descriptors verwenden?
-
-Die Verwendung von srcset mit Density Descriptors ist besonders nützlich, wenn Sie:
-1. Hochauflösende Bilder für hohe DPI-Displays (z.B. Retina-Displays) bereitstellen möchten, während Sie für Standard-Displays niedrigere Auflösungen verwenden.
-2. Die Seitenausführung durch die Bereitstellung der am besten geeigneten Bildgröße für jedes Gerät des Benutzers verbessern möchte.
-
-## Implementierung von Srcset mit Density Descriptors
-
-Um srcset mit Density Descriptors zu verwenden, befolgen Sie diese Schritte:
+Um Srcset mit Density-Descriptors zu verwenden, befolgen Sie diese Schritte:
1. Bereiten Sie Ihre Bilder in verschiedenen Auflösungen vor.
-2. Fügen Sie das `srcset`-Attribut zum ` `-Element hinzu, einschließlich der Bildquellen und entsprechenden Density Descriptors.
-3. Fügen Sie das `sizes`-Attribut optional hinzu, um die Größe des Bildes auf dem Bildschirm festzulegen.
-
-### Markup Beispiel
+2. Fügen Sie das `srcset`-Attribut zum ` `-Element hinzu, einschließlich der Bildquellen und entsprechenden Density-Descriptors.
+3. Fügen Sie (optional) das `sizes`-Attribut hinzu, um die Größe des Bildes festzulegen, wie es auf dem Bildschirm angezeigt wird.
+### Beispielmarkierung
-Hier ist ein Beispiel, wie Sie srcset mit Density Descriptors in Ihrem Markup implementieren:
+Hier ist ein Beispiel dafür, wie Sie Srcset mit Density-Descriptors in Ihre Markierung implementieren können:
```html
```
-Dieses Markup-Beispiel enthält:
-- **src**: Die Standardbildquelle, die angezeigt wird, wenn der Browser srcset nicht unterstützt.
-- **srcset**: Die Liste der Bildquellen und ihrer Density Descriptors (1x, 2x, 3x). Der Browser wählt das am besten geeignete Bild basierend auf dem Display des Benutzers aus.
-- **alt**: Eine Beschreibung des Bildes zu Zwecken der Barrierefreiheit.
+Diese Beispielmarkierung enthält:
+- **src**: Die Standard-Bildquelle, die angezeigt wird, wenn der Browser kein Srcset unterstützt.
+- **srcset**: Die Liste der Bildquellen und ihrer Density-Descriptors (1x, 2x, 3x). Der Browser wählt das am besten geeignete Bild basierend auf der Anzeige des Benutzers aus.
+- **alt**: Eine Beschreibung des Bildes für Barrierefreiheit.
-Und das war es schon! Sie haben srcset mit Density Descriptors erfolgreich implementiert und damit die Leistung und Benutzererfahrung Ihrer Website verbessert.
+Und das war's! Sie haben erfolgreich Srcset mit Density-Descriptors implementiert und die Leistung und Benutzererfahrung Ihrer Website verbessert.
diff --git a/src/content/docs/de/introduction.md b/src/content/docs/de/introduction.md
index cbef95e..10fcb5b 100644
--- a/src/content/docs/de/introduction.md
+++ b/src/content/docs/de/introduction.md
@@ -1,21 +1,20 @@
---
-title: srcset und sizes
-description: Ein effizienter und dezidierter Leitfaden für responsive Bilder bis 2023
-taskInputHash: f8e7c31ccf577572
+title: '`srcset` und ` ` Größen'
+description: Ein effizienter und entschiedener Leitfaden für responsive Bilder für 2023
+taskInputHash: dc8c8594bdd45d91
lang: de
-ignore: '/* cSpell:locale de,en*/'
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-**Ein effizienter und dezidierter Leitfaden für Bilder bis 2023**
+**Ein effizienter und entschiedener Leitfaden für Bilder für 2023**
-Sehen Sie sich die Seitenleiste für die detaillierte Analyse an. Dies ist die Kurzreferenz zum Aktualisieren dieser ` `-Tags, um moderne Geräte in allen Größen und Pixeldichten zu unterstützen. Sie sollten [wissen, dass Pixel ≠ Pixel](/de/pixel-nicht-pixel) und `devicePixelRatio` wahrscheinlicher bei 3,875 als bei 1:1 liegt. Moderne Handys geben vor, 320-428px breit zu sein, um die Lesbarkeit zu verbessern (in CSS-Pixeln), haben aber viele Gerätepixel pro CSS-Pixel.
+Überprüfen Sie die Seitenleiste für die Details. Dies ist eine schnelle Referenz für die Aktualisierung von ` `-Tags, um moderne Geräte in all ihren verschiedenen Größen und Pixeldichten zu handhaben. Sie sollten [wissen, dass Pixel ≠ Pixel](/de/pixel-nicht-pixel) und `devicePixelRatio` wahrscheinlicher bei 3,875 als bei 1:1 liegen wird. Moderne Telefone geben vor, für die Lesbarkeit 320-428px breit zu sein (in CSS-Pixel), haben aber viele Gerätepixel pro CSS-Pixel.
-> Wenn Ihr Bildgröße sich niemals ändert, unabhängig davon, wie eng Sie das Browserfenster machen, sollten Sie stattdessen einen [Density Descriptor](/de/density-descriptors) verwenden. Dies ist oft geeignet für Logos, Icons und Schaltflächen.
+> Wenn Ihr Bild unabhängig von der Größe des Browserfensters nie seine Größe ändert, sollten Sie stattdessen einen [Dichte-Deskriptor](/de/density-descriptors) verwenden. Dies eignet sich oft für Logos, Symbole und Schaltflächen.
-Wissen Sie, was Ihre [Breakpoints](/de/breakpoints) sind? Sie benötigen diese Zahlen, um die unten stehende Lösung feinabzustimmen - und mindestens den Viewport-Brechpunkt, bei dem der Hauptinhaltbereich aufhört zu wachsen.
+Wissen Sie, was Ihre [Breakpoints](/de/breakpoints) sind? Sie benötigen diese Zahlen, um die Lösung unten feinzutunen - und mindestens den Ansichtsfensterbreiten-Breakpoint, an dem der Hauptinhalt aufhört zu wachsen.
### Die einfache Methode
@@ -28,12 +27,12 @@ Wissen Sie, was Ihre [Breakpoints](/de/breakpoints) sind? Sie benötigen diese Z
img.jpg?format=webp&w=1600 1600w,
img.jpg?format=webp&w=2000 2000w"
- sizes="(max-width: 700px) 100vw, 800px" alt="Hund auf einem Fahrrad fahrend" />
+ sizes="(max-width: 700px) 100vw, 800px" alt="Hund auf einem Fahrrad fahren" />
-
+
-
+
```
diff --git a/src/content/docs/de/lighthouse-performance-test.md b/src/content/docs/de/lighthouse-performance-test.md
index b794f4e..e501cdc 100644
--- a/src/content/docs/de/lighthouse-performance-test.md
+++ b/src/content/docs/de/lighthouse-performance-test.md
@@ -1,25 +1,24 @@
---
-title: Testen der Leistung mit Lighthouse
-description: Schritte zum Testen der Leistung einer Website mit Lighthouse
-taskInputHash: ec9606eee206cc98
+title: Testen Sie die Leistung mit Lighthouse
+description: Schritte zum Testen der Leistung einer Website mithilfe von Lighthouse
+taskInputHash: 26eb06d37d959148
lang: de
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
Wie testen Sie die Leistung Ihrer Website mit Lighthouse?
-> Lighthouse ist ein Tool, mit dem die Leistung, Zugänglichkeit und andere Aspekte von Websites gemessen werden können. Um die Leistung Ihrer Website mit Lighthouse zu testen, befolgen Sie diese Schritte:
->
-> 1\. Öffnen Sie den Google Chrome Webbrowser und navigieren Sie zur Seite, die Sie testen möchten.
->
-> 2\. Klicken Sie auf die drei Punkte in der oberen rechten Ecke des Browserfensters und wählen Sie dann "Weitere Tools" und dann "Entwicklertools" oder verwenden Sie einfach die Tastenkombination "Strg+Shift+I" (Windows, Linux) oder "Befehl+Option+I" (macOS).
->
-> 3\. Klicken Sie im Entwicklertoolsfenster auf das Lighthouse-Symbol auf der linken Seite des Fensters oder drücken Sie "Strg+Shift+P" (Windows, Linux) oder "Befehl+Shift+P" (macOS), um das Befehlsfenster zu öffnen. Geben Sie "Lighthouse" ein und wählen Sie "Bericht generieren".
->
-> 4\. Wählen Sie im Lighthouse-Dialogfeld die Leistung und andere relevante Optionen aus, die Sie testen möchten, und klicken Sie dann auf "Bericht generieren".
->
-> 5\. Nach Abschluss der Analyse durch Lighthouse sehen Sie einen Bericht mit Scores und Empfehlungen zur Verbesserung der Leistung, Zugänglichkeit und anderer Bereiche Ihrer Website.
->
-> Indem Sie diesen Schritten folgen, können Sie Lighthouse verwenden, um die Leistung Ihrer Website zu testen und zu optimieren, was dazu beitragen kann, die Benutzererfahrung und die Suchmaschinenrankings zu verbessern.
+>Lighthouse ist ein Tool, das zur Messung der Leistung, Zugänglichkeit und anderer Aspekte einer Website verwendet werden kann. Um die Leistung Ihrer Website mit Lighthouse zu testen, folgen Sie diesen Schritten:
+
+>1. Öffnen Sie den Google Chrome Webbrowser und navigieren Sie zur Seite, die Sie testen möchten.
+
+>2. Klicken Sie auf die drei Punkte in der oberen rechten Ecke des Browserfensters und wählen Sie dann "Weitere Tools" und dann "Entwickler Tools" oder verwenden Sie einfach die Tastenkombination "Strg+Shift+I" (Windows, Linux) oder "Befehlstaste + Option + I" (macOS).
+
+>3. Im Entwicklertools-Fenster klicken Sie auf das Lighthouse-Symbol auf der linken Seite des Fensters oder drücken Sie "Strg+Shift+P" (Windows, Linux) oder "Befehlstaste + Shift + P" (macOS), um das Befehlsmenü zu öffnen, geben Sie dann "Lighthouse" ein und wählen Sie "Bericht generieren".
+
+>4. Im Lighthouse-Dialogfeld wählen Sie die Leistung und andere relevante Optionen aus, die Sie testen möchten, und klicken Sie dann auf "Bericht generieren".
+
+>5. Nachdem Lighthouse seine Analyse abgeschlossen hat, sehen Sie einen Bericht mit Bewertungen und Empfehlungen zur Verbesserung der Leistung, Zugänglichkeit und anderer Bereiche Ihrer Website.
+
+>Indem Sie diesen Schritten folgen, können Sie Lighthouse verwenden, um die Leistung Ihrer Website zu testen und zu optimieren, was dazu beitragen kann, die Benutzererfahrung und die Suchmaschinenrankings zu verbessern.
diff --git a/src/content/docs/de/picture-examples.md b/src/content/docs/de/picture-examples.md
index 018820d..886695b 100644
--- a/src/content/docs/de/picture-examples.md
+++ b/src/content/docs/de/picture-examples.md
@@ -1,18 +1,17 @@
---
title: Beispiele zur Verwendung des -Elements
description: >-
- Beispiele zur Verwendung des -Elements für responsive Bilder, Art
- Direction und unterschiedliche Bildformate
-taskInputHash: d2a1e2234ca5c46c
+ Bietet Beispiele unter Verwendung des -Elements für responsive
+ Bilder, Art Direction und unterschiedliche Bildformate.
+taskInputHash: b441f3138e70c382
lang: de
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Hier sind ein paar Beispiele für die Verwendung des `` Elements und deren Erklärungen:
+Hier sind ein paar Beispiele für die Verwendung des ``-Elements und ihre Erklärungen:
-1\. Beispiel für Responsive Bilder:
+1\. Beispiel für responsive Bilder:
```html
@@ -22,7 +21,7 @@ Hier sind ein paar Beispiele für die Verwendung des `` Elements und de
```
-Erklärung: In diesem Beispiel wird das `` Element verwendet, um verschiedene Bildquellen für verschiedene Bildschirmgrößen bereitzustellen. Die `` Elemente geben die verschiedenen Bildquellen mit dem Attribut "srcset" und dem Attribut "media" an, um die Bedingungen festzulegen, unter denen jede Quelle verwendet werden soll. Das ` ` Element wird als Fallback für ältere Browser oder wenn die Bedingungen in den `` Elementen nicht erfüllt sind verwendet.
+Erklärung: In diesem Beispiel wird das ``-Element verwendet, um verschiedene Bildquellen für verschiedene Bildschirmgrößen bereitzustellen. Die ``-Elemente geben die verschiedenen Bildquellen mit dem "srcset"-Attribut und dem "media"-Attribut an, um die Bedingungen festzulegen, unter denen jede Quelle verwendet werden soll. Das ` `-Element wird als Fallback für ältere Browser oder wenn die Bedingungen, die in den ``-Elementen festgelegt sind, nicht erfüllt sind, verwendet.
2\. Beispiel für Art Direction:
@@ -34,9 +33,9 @@ Erklärung: In diesem Beispiel wird das `` Element verwendet, um versch
```
-Erklärung: In diesem Beispiel wird das `` Element verwendet, um verschiedene Bildquellen je nach Ausrichtung des Geräts bereitzustellen. Das `` Element mit dem Attribut "media" auf "(orientation: landscape)" gibt eine Bildquelle für breite Bildschirme an, während das ` ` Element eine Bildquelle für Portraitbildschirme angibt.
+Erklärung: In diesem Beispiel wird das ``-Element verwendet, um je nach Ausrichtung des Geräts verschiedene Bildquellen bereitzustellen. Das ``-Element mit dem "media"-Attribut, das auf "(orientation: landscape)" eingestellt ist, gibt eine Bildquelle für breite Bildschirme an, während das ` `-Element eine Bildquelle für Hochformatbildschirme angibt.
-3\. Beispiel für unterschiedliche Bildformate:
+3\. Beispiel für verschiedene Bildformate:
```html
@@ -48,12 +47,12 @@ Erklärung: In diesem Beispiel wird das `` Element verwendet, um versch
```
-Erklärung: In diesem Beispiel wird das `` Element verwendet, um verschiedene Bildquellen für unterschiedliche Bildformate bereitzustellen. Die `` Elemente geben unterschiedliche Bildquellen mit dem Attribut "srcset" und dem Attribut "type" an, um das Bildformat anzugeben. Das ` ` Element wird als Fallback für ältere Browser verwendet, die das `` Element nicht unterstützen.
+Erklärung: In diesem Beispiel wird das ``-Element verwendet, um verschiedene Bildquellen für verschiedene Bildformate bereitzustellen. Die ``-Elemente geben verschiedene Bildquellen mit dem "srcset"-Attribut und dem "type"-Attribut an, um das Bildformat festzulegen. Das ` `-Element wird als Fallback für ältere Browser verwendet, die das ``-Element nicht unterstützen.
## Breakpoints
-In Responsive Design werden Breakpoints verwendet, um festzulegen, wann das Layout einer Website oder Anwendung basierend auf der Größe des Viewports geändert werden sollte. Breakpoints werden typischerweise mit Medienabfragen in CSS definiert, die je nach Bildschirmbreite unterschiedliche Stile anwenden. Diese Breakpoints können in Verbindung mit dem `` Element verwendet werden, um verschiedene Bildquellen für verschiedene Bildschirmgrößen bereitzustellen.
+Im Responsive Design werden Breakpoints verwendet, um festzulegen, wann sich das Layout einer Website oder Anwendung basierend auf der Größe der Ansicht ändern sollte. Breakpoints werden in der Regel mit Media Queries in CSS definiert, die abhängig von der Bildschirmbreite unterschiedliche Stile anwenden. Diese Breakpoints können in Verbindung mit dem ``-Element verwendet werden, um verschiedene Bildquellen für unterschiedliche Bildschirmgrößen bereitzustellen.
-Zum Beispiel haben wir im obigen ersten Beispiel das Attribut `media` verwendet, um die Bildschirmbreite festzulegen, unter der jede Quelle verwendet werden soll. Wenn die Bildschirmbreite größer oder gleich 768 Pixel ist, wird die Quelle `image-large.jpg` verwendet; wenn die Bildschirmbreite größer oder gleich 480 Pixel, aber weniger als 768 Pixel ist, wird die Quelle `image-medium.jpg` verwendet; und wenn die Bildschirmbreite kleiner als 480 Pixel ist, wird die Quelle `image-small.jpg` verwendet. Dies ermöglicht es uns, für jedes Gerät geeignete Bildgrößen bereitzustellen, um Ladezeiten zu reduzieren und die Benutzererfahrung zu verbessern.
+In dem ersten Beispiel oben haben wir z.B. das `media`-Attribut verwendet, um die Bildschirmbreite festzulegen, unter der jede Quelle verwendet werden soll. Wenn die Bildschirmbreite größer oder gleich 768 Pixel ist, wird die Quelle `image-large.jpg` verwendet. Wenn sie größer oder gleich 480 Pixel, aber kleiner als 768 Pixel ist, wird die Quelle `image-medium.jpg` verwendet. Und wenn die Bildschirmbreite kleiner als 480 Pixel ist, wird die Quelle `image-small.jpg` verwendet. Dadurch können wir für jedes Gerät passend dimensionierte Bilder bereitstellen, was die Ladezeiten der Website verkürzt und die Benutzererfahrung verbessert.
-Breakpoints können für jede Bildschirmgröße definiert werden und mehrere Breakpoints können verwendet werden, um Layouts zu erstellen, die auf eine breite Palette von Geräten reagieren. Durch die Kombination von Breakpoints mit dem `` Element können flexible und reaktionsschnelle Designs erstellt werden, die auf jedem Gerät gut aussehen.
+Breakpoints können bei jeder Bildschirmgröße definiert werden, und mehrere Breakpoints können verwendet werden, um Layouts zu erstellen, die auf eine Vielzahl von Geräten reagieren. Durch die Kombination von Breakpoints mit dem ``-Element können flexible und reaktionsschnelle Designs erstellt werden, die auf jedem Gerät großartig aussehen.
diff --git a/src/content/docs/de/pixels-not-pixels.md b/src/content/docs/de/pixels-not-pixels.md
index 946e5fc..35ef7b6 100644
--- a/src/content/docs/de/pixels-not-pixels.md
+++ b/src/content/docs/de/pixels-not-pixels.md
@@ -1,20 +1,19 @@
---
title: px ≠ Pixel
-description: Geräte-Pixel ≠ Browser-Pixel ≠ Bild-Pixel
-taskInputHash: 6bf2840ae3339b2e
+description: Geräte-Pixel ≠ Browserpixel ≠ Bildpixel
+taskInputHash: b857216a5693bfeb
lang: de
-ignore: '/* cSpell:locale de,en*/'
sidebar_sort_priority: 900
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-### Gerätepixel ≠ Browser px ≠ Bild px
+### Gerätepixel ≠ Browserpx ≠ Bildpx
-Dank Apple entspricht CSS- und HTML-Pixel (`px`) **fast nie genau einem einzigen Geräte-/Druckerpixel**. Der devicePixelRatio auf meinem Handy beträgt 3,875; [wie hoch ist deiner?](https://www.mydevice.io/)
+Dank Apple entspricht 1 CSS/HTML Pixel (`px`) **fast immer mehreren Geräte-/Drucker-Pixeln**. Der devicePixelRatio auf meinem Handy beträgt 3,875; [wie sieht es bei dir aus?](https://www.mydevice.io/)
-Mein Desktop-DevicePixelRatio ändert sich beim Vergrößern des Browsers, ist standardmäßig jedoch 1,5 (mein `System > Anzeige > Skalierung` beträgt schließlich 150%).
+Mein Desktop-DevicePixelRatio ändert sich bei Browserzoom, aber Standard ist 1.5 (meine `System > Display > Scale` ist schließlich 150%).
-Bilddateien (mit Ausnahme von SVG) entschlüsseln zu einem Raster von Pixeln. **Es ist ärgerlicherweise schwer, Bildpixel perfekt mit Gerätepixeln im Verhältnis 1:1 anzuzeigen - aber mit `srcset` kann man *nahe genug* kommen**, und etwas Javascript kann die Größe des HTML-Elements nach dem Laden anpassen, wenn man wirklich triftige Gründe für eine perfekte Zuordnung hat, obwohl solche verbotenen Künste hier nicht enthüllt werden.
+Bilddateien (ausgenommen SVG) werden als Raster von Pixeln dekodiert. **Es ist äußerst schwierig, die Bildpixel perfekt im Verhältnis 1:1 zu den Gerätepixeln darzustellen - aber mit `srcset` kannst du *annähernd* dahin kommen**, und ein bisschen JavaScript kann nach dem Laden die Größe des html-Elements anpassen, wenn du wirklich wichtige Gründe für eine perfekte Abbildung hast, doch solche verbotenen Künste werden hier nicht verraten.
-> Andere absolute [Einheiten (in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/de/docs/Web/CSS/length) werden in Bezug auf die Anzahl von CSS-Pixeln definiert und tun so, als ob alles 96 dpi hat. Entwickler meiden absolute Einheiten, weil es in der Regel besser ist, Einheiten zu verwenden, die sich von der Schriftgröße oder den Abmessungen des Viewports/Containers ableiten. Nicht übereinstimmende Einheiten können ein Layout brechen, wenn der Benutzer den `Barrierefreiheit > Textgröße`-Multiplikator anpasst, den Browser zoomt oder das Gerät dreht. Selbstverständlich solltest du all diese Dinge vor dem Veröffentlichen deiner Website ausprobieren.
+> Andere absolute [Einheiten (in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/de/docs/Web/CSS/L%C3%A4ngenangaben) werden in Bezug auf die Anzahl an CSS-Pixeln definiert und tun so, als ob alles 96 dpi hätte. Entwickler meiden absolute Einheiten, weil es im Allgemeinen besser ist, Einheiten zu verwenden, die von der Schriftgröße oder den Abmessungen des Viewports/Containers abgeleitet sind. Nicht übereinstimmende Einheiten können das Layout zerstören, wenn der Benutzer den Multiplikator für `Barrierefreiheit > Textgröße` anpasst, das Programmfenster zoomt oder das Gerät dreht. Du solltest das alles vor dem Start deiner Webseite einstellen, versteht sich von selbst.
diff --git a/src/content/docs/de/specify-width-height.md b/src/content/docs/de/specify-width-height.md
index 06c16be..fec931d 100644
--- a/src/content/docs/de/specify-width-height.md
+++ b/src/content/docs/de/specify-width-height.md
@@ -1,17 +1,16 @@
---
title: Verwendung von Breite und Höhe
-description: Vorteile der Verwendung von Breite und Höhe Attributen im HTML-Code
-taskInputHash: fd9dcf8cf97a201b
+description: Vorteile der Verwendung von Breiten- und Höhenattributen im HTML-Code
+taskInputHash: 6e6638bf3441e838
lang: de
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Warum sollten Sie Breite und Höhe in HTML einfügen?
+Warum sollte man Breite und Höhe im HTML angeben?
-> Es wird empfohlen, Breite- und Höhenattribute im HTML-Code für Bilder einzufügen, da sie dem Webbrowser helfen, die Größe des Bildes zu kennen, bevor es vollständig geladen wird. Dies ermöglicht es dem Browser, den entsprechenden Platz auf der Webseite für das Bild zu reservieren, was verhindert, dass der Inhalt beim Laden des Bildes springt.
+> Es wird empfohlen, Breiten- und Höhenangaben im HTML-Code für Bilder zu verwenden, da dies dem Webbrowser hilft, die Größe des Bildes zu kennen, bevor es vollständig geladen ist. Dies ermöglicht es dem Browser, den entsprechenden Platz auf der Webseite für das Bild zu reservieren, um zu verhindern, dass sich der Inhalt beim Laden des Bildes verschiebt.
>
-> Darüber hinaus können die Angabe von Breite- und Höhenattributen für Bilder dazu beitragen, die Gesamtleistung der Webseite zu verbessern. Wenn ein Browser die Größe eines Bildes im Voraus kennt, kann er genauer berechnen, wie viel Platz benötigt wird, um das Bild anzuzeigen, und unnötige Reflows oder Repaints des Inhalts beim Laden vermeiden.
+> Darüber hinaus kann durch das Angeben der Breiten- und Höhenattribute für Bilder auch die Gesamtperformance der Webseite verbessert werden. Wenn ein Browser die Größe eines Bildes im Voraus kennt, kann er genauer berechnen, wie viel Platz zur Anzeige des Bildes benötigt wird und unnötige Reflows oder Repaints des Inhalts beim Laden vermeiden.
>
-> Insgesamt kann die Verwendung von Breite- und Höhenattributen im HTML-Code für Bilder das Benutzererlebnis verbessern, indem der Inhalt schneller geladen wird und visuelle Fehler reduziert werden.
+> Insgesamt kann durch die Verwendung von Breiten- und Höhenangaben im HTML-Code für Bilder die Benutzererfahrung verbessert werden, indem der Inhalt schneller geladen wird und visuelle Störungen verringert werden.
diff --git a/src/content/docs/de/when-to-use-picture.md b/src/content/docs/de/when-to-use-picture.md
index b962b90..5ef4ef4 100644
--- a/src/content/docs/de/when-to-use-picture.md
+++ b/src/content/docs/de/when-to-use-picture.md
@@ -1,23 +1,22 @@
---
title: Wann man das -Element verwenden sollte
-description: 'Erklärt, in welchen Situationen das -Element verwendet werden sollte.'
-taskInputHash: 0d098655c456a3e4
+description: 'Erklärt, in welchen Situationen du das -Element verwenden solltest.'
+taskInputHash: 73c0c55c4704b344
lang: de
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-27'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Das `picture`-Element wird verwendet, um mehrere Versionen eines Bildes bereitzustellen und anhand bestimmter Bedingungen zu entscheiden, welche Version des Bildes angezeigt werden soll. Es ist besonders nützlich, um Bilder für verschiedene Bildschirmgrößen und Auflösungen zu optimieren und wird häufig in responsivem Webdesign verwendet.
+Das `picture`-Element wird verwendet, um mehrere Versionen eines Bildes bereitzustellen und basierend auf bestimmten Bedingungen zu bestimmen, welche Version des Bildes angezeigt wird. Es ist besonders nützlich, um Bilder für verschiedene Bildschirmgrößen und Auflösungen zu optimieren und wird häufig in responsivem Webdesign eingesetzt.
-Hier sind einige konkrete Szenarien, in denen Sie das `picture`-Element verwenden möchten:
+Hier sind einige spezifische Szenarien, in denen du das `picture`-Element verwenden möchtest:
-* **Retina-Displays:** Hochauflösende Bildschirme wie Apples Retina-Displays haben eine höhere Pixeldichte, was bedeutet, dass Bilder unscharf oder pixelig aussehen können, wenn sie nicht für hohe Auflösungen optimiert sind. Mit dem `picture`-Element können Sie eine Version des Bildes zur Verfügung stellen, die doppelt so viele Pixel wie die normale Version hat, sodass es auf Retina-Displays scharf und klar aussieht.
+* **Retina-Displays:** Hochauflösende Bildschirme wie Apples Retina-Displays haben eine höhere Pixeldichte, was bedeutet, dass Bilder unscharf oder pixelig aussehen können, wenn sie nicht für hohe Auflösung optimiert sind. Mit dem `picture`-Element kannst du eine Version des Bildes bereitstellen, die doppelt so viele Pixel wie die normale Version hat, sodass sie auf Retina-Displays scharf und klar aussieht.
-* **Unterschiedliche Bildverhältnisse:** Wenn Sie eine Website gestalten, die Bilder mit unterschiedlichen Seitenverhältnissen anzeigen muss (z.B. Quer- vs. Hochformat), können Sie das `picture`-Element verwenden, um verschiedene Versionen des Bildes bereitzustellen, die für jedes Seitenverhältnis optimiert sind.
+* **Unterschiedliche Seitenverhältnisse:** Wenn du eine Seite gestaltest, die Bilder mit unterschiedlichen Seitenverhältnissen anzeigen muss (wie Querformat gegenüber Portrait), kannst du das `picture`-Element verwenden, um verschiedene Versionen des Bildes bereitzustellen, die für jedes Seitenverhältnis optimiert sind.
-* **Bandbreitenbeschränkungen:** Bilder können große Dateien sein, die viel Bandbreite benötigen, insbesondere auf mobilen Geräten. Mit dem `picture`-Element können Sie kleinere Versionen des Bildes für Geräte mit kleineren Bildschirmen oder langsameren Internetverbindungen bereitstellen, um die Ladezeiten der Website zu reduzieren.
+* **Bandbreitenbeschränkungen:** Bilder können große Dateien sein, die viel Bandbreite benötigen, insbesondere auf mobilen Geräten. Mit dem `picture`-Element kannst du kleinere Versionen des Bildes für Geräte mit kleineren Bildschirmen oder langsameren Internetverbindungen bereitstellen, was dazu beitragen kann, die Ladezeiten der Seite zu reduzieren.
-* **Art-directed Layouts:** Manchmal möchten Sie ein Bild auf bestimmte Weise präsentieren, abhängig vom Layout des Rests der Seite. Beispielsweise möchten Sie auf mobilen Geräten eine Nahaufnahme des Gesichts einer Person zeigen, auf Desktop-Geräten jedoch eine breitere Ansicht. Das `picture`-Element ermöglicht es Ihnen, verschiedene Versionen des Bildes bereitzustellen, die für unterschiedliche Layouts optimiert sind.
+* **Kunstregie-Layouts:** Manchmal möchtest du ein Bild auf bestimmte Weise präsentieren, abhängig vom Layout des restlichen Teils der Seite. Zum Beispiel möchtest du auf mobilen Geräten eine Nahaufnahme des Gesichts einer Person zeigen, auf Desktop-Geräten jedoch eine breitere Aufnahme. Das `picture`-Element ermöglicht es dir, unterschiedliche Versionen des Bildes bereitzustellen, die für verschiedene Layouts optimiert sind.
-Insgesamt ist das `picture`-Element ein leistungsstarkes Werkzeug, mit dem Sie Ihre Bilder für eine Vielzahl von Anwendungsfällen optimieren und sicherstellen können, dass sie unabhängig vom Gerät oder der Bildschirmgröße großartig aussehen.
+Insgesamt ist das `picture`-Element ein leistungsstarkes Tool, mit dem du deine Bilder für eine Vielzahl von Anwendungsfällen optimieren und sicherstellen kannst, dass sie unabhängig vom Gerät oder der Bildschirmgröße großartig aussehen.
diff --git a/src/content/docs/de/width-density.md b/src/content/docs/de/width-density.md
index 8c73476..70b6f75 100644
--- a/src/content/docs/de/width-density.md
+++ b/src/content/docs/de/width-density.md
@@ -1,22 +1,21 @@
---
-title: Breiten- und Dichteadapter
-description: Beispiele für die Verwendung von Breiten- und Dichteadaptern in `srcset`
-taskInputHash: 2171ff4767b5d45d
+title: Breiten- und Dichtedeskriptoren
+description: Beispiele für die Verwendung von Breiten- und Dichtedeskriptoren in `srcset`
+taskInputHash: ecf3cb15eb544dea
lang: de
-ignore: '/* cSpell:locale de,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Verständnis für Breiten- (w) und Dichteadapter (x) in `srcset`. Verwenden Sie Beispiele und Markdown.
+Verständnis von Breiten- (w) und Dichtedeskriptoren (x) in `srcset` verwenden. Verwenden Sie Beispiele und Markdown.
-> `srcset` ist ein HTML-Attribut, das Entwicklern ermöglicht, mehrere Bildquellen mit unterschiedlichen Auflösungen oder Pixeldichten bereitzustellen, und den Browser das geeignete Bild basierend auf den Anzeigeeigenschaften des Geräts auswählen zu lassen. Das `srcset`-Attribut verwendet eine Kombination aus `URL`- und `w-` oder `x-`Adaptern, um die Bilder zu spezifizieren.
+> `srcset` ist ein HTML-Attribut, das Entwicklern ermöglicht, mehrere Bildquellen mit verschiedenen Auflösungen oder Pixel-Dichten bereitzustellen und den Browser das geeignete Bild basierend auf den Anzeigeeigenschaften des Geräts auswählen zu lassen. Das `srcset`-Attribut verwendet eine Kombination aus der `URL` und den `w` oder `x` Deskriptoren, um die Bilder zu spezifizieren.
-## Breiten- (`w`) Adapter
+## Breiten- (w) Deskriptor
-> Der `w-`Adapter wird verwendet, um die Breite eines Bildes in Pixeln anzugeben. Er wird verwendet, wenn wir dem Browser die Abmessungen eines Bildes zur Verfügung stellen wollen, damit er das geeignete Bild für den verfügbaren Bildschirmplatz wählen kann.
+> Der `w` Deskriptor wird verwendet, um die Breite eines Bildes in Pixeln anzugeben. Es wird verwendet, wenn wir dem Browser die Abmessungen eines Bildes bereitstellen möchten, damit er das geeignete Bild für den verfügbaren Bildschirmplatz auswählen kann.
-> Die Syntax für die Verwendung des `w-`Adapters in `srcset` sieht wie folgt aus:
+> Die Syntax für die Verwendung des `w` Deskriptors in `srcset` ist wie folgt:
```html
```
-> Im obigen Beispiel haben wir dem Browser drei Bilder und ihre entsprechenden Breiten in Pixeln zur Verfügung gestellt. Der Browser wählt das Bild mit der nächstliegenden Breite zum verfügbaren Bildschirmplatz.
-## Dichteadapter (`x`)
-> Der `x-`Adapter wird verwendet, um die Pixel-Dichte eines Bildes anzugeben, was das Verhältnis von physischen Pixeln zu CSS-Pixeln ist. Er wird verwendet, wenn wir dem Browser verschiedene Versionen desselben Bildes mit unterschiedlichen Pixeldichten zur Verfügung stellen wollen.
+> In dem oben genannten Beispiel haben wir dem Browser drei Bilder und ihre entsprechenden Breiten in Pixeln zur Verfügung gestellt. Der Browser wird das Bild mit der nächstgelegenen Breite zum verfügbaren Bildschirmplatz auswählen.
-> Die Syntax für die Verwendung des `x-`Adapters in `srcset` sieht wie folgt aus:
+## Dichtedeskriptor (`x`)
+
+> Der `x` Deskriptor wird verwendet, um die Pixeldichte eines Bildes anzugeben, was dem Verhältnis von physischen Pixeln zu CSS-Pixeln entspricht. Er wird verwendet, wenn wir dem Browser verschiedene Versionen desselben Bildes mit verschiedenen Pixeldichten zur Verfügung stellen möchten.
+
+> Die Syntax für die Verwendung des `x` Deskriptors in `srcset` ist wie folgt:
```html
```
-> Im obigen Beispiel haben wir dem Browser drei Bilder und ihre entsprechenden Pixeldichten zur Verfügung gestellt. Der Browser wählt das Bild mit der nächstgelegenen Pixeldichte für den Gerätebildschirm aus.
+> In dem oben genannten Beispiel haben wir dem Browser drei Bilder und ihre entsprechenden Pixeldichten zur Verfügung gestellt. Der Browser wird das Bild mit der nächstgelegenen Pixeldichte zum Bildschirm des Geräts auswählen.
-> Beachten Sie, dass die `w-` und `x-`Adapter in derselben `srcset`-Attribut verwendet werden können, um dem Browser mehr Optionen zur Auswahl zu geben.
+> Beachten Sie, dass die `w`- und `x`-Deskriptoren in demselben `srcset` Attribut zusammen verwendet werden können, um dem Browser mehr Optionen zur Auswahl zu bieten.
diff --git a/src/content/docs/en/breakpoints.md b/src/content/docs/en/breakpoints.md
index ad658c5..e503687 100644
--- a/src/content/docs/en/breakpoints.md
+++ b/src/content/docs/en/breakpoints.md
@@ -1,8 +1,8 @@
---
title: Breakpoints & images
description: Why some (but not all) breakpoints matter for your images
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
### Background
diff --git a/src/content/docs/en/browser-picks-srcset.md b/src/content/docs/en/browser-picks-srcset.md
index 43ecbc0..d9d53aa 100644
--- a/src/content/docs/en/browser-picks-srcset.md
+++ b/src/content/docs/en/browser-picks-srcset.md
@@ -1,8 +1,8 @@
---
title: How the browser chooses
description: How the browser chooses between images listed in the srcset attribute
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
How does the browser choose between images listed in the srcset attribute? Here's a step-by-step, with examples for both width and density specifications and how the browser decides based on device and viewport.
diff --git a/src/content/docs/en/density-descriptors.md b/src/content/docs/en/density-descriptors.md
index e72dabd..58e809d 100644
--- a/src/content/docs/en/density-descriptors.md
+++ b/src/content/docs/en/density-descriptors.md
@@ -1,8 +1,8 @@
---
title: Density descriptors & srcset
description: Examples of using density descriptors in `srcset`
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
Srcset with density descriptors provides a simple and effective method for delivering the most suitable image to each user's device, improving performance and user experience. This guide will walk you through the essentials of using srcset with density descriptors and provide markup examples for your convenience.
diff --git a/src/content/docs/en/introduction.md b/src/content/docs/en/introduction.md
index c529f64..0a24255 100644
--- a/src/content/docs/en/introduction.md
+++ b/src/content/docs/en/introduction.md
@@ -2,8 +2,8 @@
title: 'srcset & sizes '
description: An Efficient and Opinionated Guide to Responsive Images for 2023
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
**An Efficient and Opinionated Guide to Images for 2023**
diff --git a/src/content/docs/en/lighthouse-performance-test.md b/src/content/docs/en/lighthouse-performance-test.md
index 04fb5b5..323dc99 100644
--- a/src/content/docs/en/lighthouse-performance-test.md
+++ b/src/content/docs/en/lighthouse-performance-test.md
@@ -1,8 +1,8 @@
---
title: Test performance with Lighthouse
description: Steps on how to test a website's performance using Lighthouse
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
How do you test your site’s performance with Lighthouse?
diff --git a/src/content/docs/en/picture-examples.md b/src/content/docs/en/picture-examples.md
index 3d3b6d8..2adae70 100644
--- a/src/content/docs/en/picture-examples.md
+++ b/src/content/docs/en/picture-examples.md
@@ -3,8 +3,8 @@ title: Examples using element
description: >-
Provides examples using the element, for responsive images, art
direction and different image formats
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
Here are a few examples of using the `` element and their explanations:
diff --git a/src/content/docs/en/pixels-not-pixels.md b/src/content/docs/en/pixels-not-pixels.md
index e4c638f..f36c9d5 100644
--- a/src/content/docs/en/pixels-not-pixels.md
+++ b/src/content/docs/en/pixels-not-pixels.md
@@ -2,8 +2,8 @@
title: px ≠ pixels
description: Device px ≠ browser px ≠ image px
sidebar_sort_priority: 900
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
### Device pixels ≠ browser px ≠ image px
diff --git a/src/content/docs/en/specify-width-height.md b/src/content/docs/en/specify-width-height.md
index 1eb09b0..2cc2947 100644
--- a/src/content/docs/en/specify-width-height.md
+++ b/src/content/docs/en/specify-width-height.md
@@ -1,8 +1,8 @@
---
title: Use width and height
description: Benefits of using width and height attributes in HTML code
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
Why should you put width and height in the HTML?
diff --git a/src/content/docs/en/when-to-use-picture.md b/src/content/docs/en/when-to-use-picture.md
index 66e7244..6fc6f0b 100644
--- a/src/content/docs/en/when-to-use-picture.md
+++ b/src/content/docs/en/when-to-use-picture.md
@@ -1,8 +1,8 @@
---
title: When to use element
description: Explains in which situations you should use the element
-date_published: '2023-03-27'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
The `picture` element is used to provide multiple versions of an image and determines which version of the image to display based on certain conditions. It is particularly useful for optimizing images for different screen sizes and resolutions, and is commonly used in responsive web design.
Here are some specific scenarios where you might want to use the `picture` element:
diff --git a/src/content/docs/en/width-density.md b/src/content/docs/en/width-density.md
index 1e00293..02739c5 100644
--- a/src/content/docs/en/width-density.md
+++ b/src/content/docs/en/width-density.md
@@ -1,8 +1,8 @@
---
title: Width and density descriptors
description: Examples of using width and density descriptors in `srcset`
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
---
Understanding width (w) and density (x) descriptors in `srcset`. Use examples and use Markdown.
diff --git a/src/content/docs/es/_roundtrip_breakpoints.txt b/src/content/docs/es/_roundtrip_breakpoints.txt
index 186ad39..c6af468 100644
--- a/src/content/docs/es/_roundtrip_breakpoints.txt
+++ b/src/content/docs/es/_roundtrip_breakpoints.txt
@@ -1,44 +1,44 @@
---
title: Breakpoints and Images
description: >-
- Why some (but not all) breakpoints matter for your images
-taskInputHash: cc4be952df3fef63
+ Why some breakpoints (but not all) are important for your images?
+taskInputHash: d63995938314e702
lang: en
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Background
-Small screens and large monitors need different designs. For the purpose of `srcset` and `sizes`, we need to know at what point the design changes.
+Small and large screens require different designs. In order to use `srcset` and `sizes`, we need to know when the layout changes.
-Web developers must decide what shrinks, hides, or relocates on smaller screens - or more commonly, what expands, reveals, or adds on larger screens. They also have very little information to work with. Is the user on a tablet or on a horizontally oriented phone - or in a small browser window?
+Web developers must decide what to shrink, hide, or relocate on smaller screens, or more commonly, what to expand, reveal or add on larger screens. Moreover, they have very little information. Is the user on a tablet or a phone in landscape mode, or a small browser window?
-We have to choose an arbitrary viewport width where the design changes. This is called a **breakpoint**. It is an arbitrary number of CSS pixels ([not device pixels](/en/pixels-not-pixels)). Polypane has a [great article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) on commonly used breakpoints.
+We have to choose an arbitrary viewport width where the layout changes. This is called a **breakpoint**. It is an arbitrary number of CSS pixels ([not device pixels](/en/pixels-not-pixels)). Polypane has a [great article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) about commonly used breakpoints.
-Some images (like logos, icons, or buttons) might be immune to design changes caused by these breakpoints (and be fine with [srcset density descriptors](/en/density-descriptors)).
+Some images (like logos, icons, or buttons) might be immune to layout changes caused by these breakpoints (and be fine with [srcset density descriptors](/en/density-descriptors)).
-Main content images will be limited by their container's size. Typically, a page's main content area will be limited to a certain width on larger screens, a `max-width`, but on smaller screens, the main content area will fill the entire viewport.
+Main content images will be limited by the size of their container. Usually, the main content area of a page will be limited to a certain width on larger screens, a `max-width`, but on smaller screens the main content area will take up the entire viewport.
-If you have multiple columns at some breakpoints, it will be harder to calculate effective size rules, as the percentage of the viewport width the image takes up will change.
+If you have more than one column at some breakpoints, it will be more difficult to calculate effective sizing rules, as the percentage of the viewport width the image occupies will change.
-### The Easy Method
+### The simple method
-That being said, don't overcomplicate things. You'll probably be just fine with the following approach:
+That being said, don’t obsess over this. You’re most likely fine with the following approach:
-1. At what size does the main column (or the image container) stop growing? Up to that viewport width, we can use `100vw` for the image `sizes` attribute to indicate the image takes up the full width of the viewport.
-2. What is the maximum width the container ever reaches? We can set that as a fixed `width` for everything else.
+1. What width does the main column (or image container) stop growing at? Up to that viewport width, we can use `100vw` for the image’s `sizes` attribute to indicate the image takes up 100% of the viewport width.
+2. What is the maximum width the container will reach? We can set that as a fixed `width` value for everything else.
-If your answer to 1 was 700px and your answer to 2 was 800px, you can use the following `sizes` attribute:
+If your answer to question 1 was 700px and your answer to question 2 was 800px, you can use the following `sizes` attribute:
```html
```
-> You'd think the browser could handle all these calculations for us based on CSS. Unfortunately, browsers are eager to choose an image URL *before* stylesheets are downloaded. So we have to do the calculations ourselves, and they serve us well if we don't get them perfectly right.
+
+> We might think the browser could easily handle all these calculations based on the CSS. Unfortunately, browsers are eager to choose an image URL *before* style sheets are downloaded. So we have to do the calculations ourselves, and they deserve it if we don’t get it perfect.
=====================
Content prompt used:
@@ -51,8 +51,8 @@ Also carefully translate the title and description for the article; do not use &
1. Breakpoints & images
2. Why some (but not all) breakpoints matter for your images
-Metadata returned1. Breakpoints e imágenes
-2. Por qué algunos (pero no todos) los puntos de interrupción son importantes para tus imágenes
+Metadata returned1. Puntos de quiebre e imágenes
+2. ¿Por qué algunos puntos de quiebre (pero no todos) son importantes para tus imágenes?
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/es/_roundtrip_browser-picks-srcset.txt b/src/content/docs/es/_roundtrip_browser-picks-srcset.txt
index 4443f64..934d0cf 100644
--- a/src/content/docs/es/_roundtrip_browser-picks-srcset.txt
+++ b/src/content/docs/es/_roundtrip_browser-picks-srcset.txt
@@ -1,44 +1,48 @@
---
-title: How browsers choose
-description: How browsers choose between images listed in the srcset attribute
-taskInputHash: 5d7773a8c6385fd7
+title: How the browser chooses
+description: How the browser chooses between the images listed in the srcset attribute
+taskInputHash: 78ffb2179558549b
lang: en
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-How do browsers choose between images listed in the `srcset` attribute? Here we explain the steps, with examples for both width and density specifications, and how the browser decides according to the device and screen size.
+How does the browser choose between the images listed in the `srcset` attribute? Here's a step-by-step guide, with examples for both width and density specifications and how the browser decides based on the device and viewport.
-- When using the `srcset` attribute in HTML, the browser follows a set of rules to choose the most appropriate image from a list of provided sources. These rules depend on both the display characteristics of the device (resolution, pixel density) and the size of the display window. The `srcset` attribute allows specifying different images based on width (using the `w` descriptor) or pixel density (using the `x` descriptor). Let's look at each case with examples.
+- When using the `srcset` attribute in HTML, the browser uses a set of rules to choose the most appropriate image from a list of provided sources. These rules depend on both the display characteristics of the device (resolution, pixel density) and the size of the viewport. The `srcset` attribute allows you to specify different images based on the width (using the `w` descriptor) or pixel density (using the `x` descriptor). We'll explain each case with examples.
-1\. Width descriptor (`w`):
+1. Width descriptor (`w`):
-Suppose we have the following `srcset` attribute:
+Assuming we have the following `srcset` attribute:
```html
-
+
```
The browser will follow these steps:
-a. Determine the DPR (Device Pixel Ratio) of the device. For example, a standard screen has a DPR of 1, while a high-resolution (Retina) screen has a DPR of 2 or higher.
+a. Determine the DPR (Device Pixel Ratio). For example, a standard screen has a DPR of 1, while a high-resolution (Retina) screen has a DPR of 2 or higher.
b. Calculate the effective width for each image in the `srcset`. Multiply the width descriptor by the DPR. For a device with a DPR of 1:
-- small-example.jpg: 400 * 1 = 400 pixels
+- example-small.jpg: 400 * 1 = 400px
+
+- example-medium.jpg: 800 * 1 = 800px
-- medium-example.jpg: 800 * 1 = 800 pixels
+- example-large.jpg: 1600 * 1 = 1600px
-- large-example.jpg: 1600 * 1 = 1600 pixels
+c. Compare the effective widths with the width of the viewport. Let's assume the viewport width is 420px. The browser will choose the smallest image with an effective width greater than or equal to the viewport width. In this case, it will select `example-medium.jpg`.
-c. Compare the effective widths to the width of the display window. Suppose the width of the display window is 420 pixels. The browser will choose the smallest image with an effective width greater than or equal to the width of the display window. In this case, it will select `medium-example.jpg`.
-2\. Pixel density descriptor (`x`):
+2. Pixel density descriptor (`x`):
-Suppose we have the following `srcset` attribute:
+Assuming we have the following `srcset` attribute:
```html
-
+
```
@@ -48,21 +52,22 @@ a. Determine the DPR (Device Pixel Ratio). For example, a standard screen has a
b. Compare the device DPR with the `x` descriptors in the `srcset`. In this case, we have three images with the following descriptors:
-- 1x-example.jpg: 1x
+- example-1x.jpg: 1x
-- 2x-example.jpg: 2x
+- example-2x.jpg: 2x
-- 3x-example.jpg: 3x
+- example-3x.jpg: 3x
-c. Choose the image with the `x` descriptor closest to the device DPR. For a device with a DPR of 1, the browser will select `1x-example.jpg`. For a device with a DPR of 2, it will choose `2x-example.jpg`, and so on.
+c. Choose the image with the `x` descriptor that is closest to the device DPR. For a device with a DPR of 1, the browser will choose `example-1x.jpg`. For a device with a DPR of 2, it will choose `example-2x.jpg`, and so on.
-It is important to note that the `sizes` attribute can also be used in combination with the `srcset` attribute to provide more information about how the image will be displayed at different window widths. This is especially useful when using the width descriptor (`w`). Here's an example:
+It's important to note that the `sizes` attribute can also be used in combination with the `srcset` attribute to provide more information on how the image will be displayed at different viewport widths. This is particularly useful when using the width descriptor (`w`). Here's an example:
```html
-
```
-This sample markup includes:
+This markup example includes:
- **src**: The default image source, displayed if the browser doesn't support srcset.
-- **srcset**: The list of image sources and their density descriptors (1x, 2x, 3x). The browser chooses the most suitable image based on the user's screen.
+- **srcset**: The list of image sources and their density descriptors (1x, 2x, 3x). The browser will choose the most suitable image based on the user's screen.
- **alt**: A description of the image for accessibility purposes.
-And that's it! You have successfully implemented srcset with density descriptors, improving the performance and user experience of your website.
+That's it! You have successfully implemented srcset with density descriptors, improving performance and user experience on your website.
=====================
Content prompt used:
@@ -55,7 +55,7 @@ Also carefully translate the title and description for the article; do not use &
1. Density descriptors & srcset
2. Examples of using density descriptors in `srcset`
-Metadata returned1. Descriptores de densidad y Srcset
+Metadata returned1. Descriptores de densidad & srcset
2. Ejemplos de uso de descriptores de densidad en `srcset`
diff --git a/src/content/docs/es/_roundtrip_introduction.txt b/src/content/docs/es/_roundtrip_introduction.txt
index 7d7d4de..2660650 100644
--- a/src/content/docs/es/_roundtrip_introduction.txt
+++ b/src/content/docs/es/_roundtrip_introduction.txt
@@ -1,41 +1,38 @@
---
-title: srcset and sizes attributes for
-description: An efficient and opinionated guide to responsive images for 2023
-taskInputHash: c0bfd3a988eb464d
+title: srcset and sizes attributes of the tag
+description: A concise, opinionated guide to responsive images for 2023
+taskInputHash: a764c357741581bc
lang: en
-ignore: '/* cSpell:locale es,en*/'
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-**An efficient and opinionated guide to images for 2023**
+**A concise, opinionated guide to responsive images for 2023**
-See the sidebar for detailed information. This is the quick reference for updating your ` ` tags and handling modern devices in all their different sizes and pixel densities. You should [know that pixels aren't equal](/en/pixels-not-pixels) and `devicePixelRatio` is more likely to be around 3.875 than 1:1. Modern phones pretend to be 320-428 pixels wide for legibility (in CSS pixels), but have many device pixels per CSS pixel.
+Check the sidebar for a more detailed explanation. This is a quick reference to update ` ` tags to be responsive to modern devices with their various resolutions and screen sizes. You should [know that pixels aren't equal](/en/pixels-not-pixels) and that `devicePixelRatio` is likely to be 3.875 rather than 1:1. Modern phones simulate having between 320 and 428 pixels wide for easier reading (in CSS pixels), but have several device pixels per CSS pixel.
-> If your image never changes size no matter how narrow the browser window, you should use a [density descriptor](/en/density-descriptors). This is often suitable for logos, icons, and buttons.
+> If your image never changes size regardless of how narrow the browser window gets, you should use [density descriptors](/en/density-descriptors) instead of what's shown below. This is often appropriate for logos, icons, and buttons.
-Do you know your [breakpoints](/en/breakpoints)? You'll need those numbers to adjust the solution below — at minimum, the viewport width breakpoint where the main content area stops growing.
+Do you know your [breakpoints](/en/breakpoints)? You'll need those numbers to adjust the solution shown below – at least the breakpoint for the viewport width where the main content area stops growing.
-### The easy method
-```html
+### The Easy Way
+```html
-
-
-
-
+ srcset="img.jpg?format=webp&w=480 480w,
+ img.jpg?format=webp&w=800 800w,
+ img.jpg?format=webp&w=1200 1200w,
+ img.jpg?format=webp&w=1600 1600w,
+ img.jpg?format=webp&w=2000 2000w"
+ sizes="(max-width: 700px) 100vw, 800px" alt="Dog riding bike" />
+
+
+
+
```
=====================
@@ -49,8 +46,8 @@ Also carefully translate the title and description for the article; do not use &
1. srcset & sizes
2. An Efficient and Opinionated Guide to Responsive Images for 2023
-Metadata returned1. srcset y tamaños de
-2. Una guía eficiente y con opiniones sobre imágenes responsivas para 2023
+Metadata returned1. srcset y tamaños de la etiqueta
+2. Una guía eficiente y con opinión sobre imágenes responsivas para 2023
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/es/_roundtrip_lighthouse-performance-test.txt b/src/content/docs/es/_roundtrip_lighthouse-performance-test.txt
index 51c9125..25fbf48 100644
--- a/src/content/docs/es/_roundtrip_lighthouse-performance-test.txt
+++ b/src/content/docs/es/_roundtrip_lighthouse-performance-test.txt
@@ -1,28 +1,27 @@
---
-title: Performance testing with Lighthouse
-description: Steps on how to test the performance of a website using Lighthouse
-taskInputHash: d6d69f5336f685c3
+title: Testing Performance with Lighthouse
+description: Steps on how to test a website's performance using Lighthouse
+taskInputHash: f77d81584d57a9a3
lang: en
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-How to test the performance of your site with Lighthouse?
+How do you test your site's performance with Lighthouse?
-> Lighthouse is a tool that can be used to measure the performance, accessibility, and other aspects of a website. To test the performance of your website with Lighthouse, follow these steps:
+> Lighthouse is a tool that can be used to measure the performance, accessibility, and other aspects of a website. To test a website's performance with Lighthouse, follow these steps:
>
> 1\. Open the Google Chrome web browser and navigate to the page you want to test.
>
-> 2\. Click on the three dots in the upper right corner of the browser window, then select "More Tools" and then "Developer Tools" or simply use the keyboard shortcut "Ctrl + Shift + I" (Windows, Linux) or "Command + Option + I" (macOS).
+> 2\. Click on the three dots in the upper right corner of the browser window, then select "More tools" and then "Developer tools" or simply use the keyboard shortcut "Ctrl+Shift+I" (Windows, Linux) or "Command+Option+I" (macOS).
>
-> 3\. In the Developer Tools panel, click on the Lighthouse icon located on the left side of the panel or press "Ctrl + Shift + P" (Windows, Linux) or "Command + Shift + P" (macOS) to open the command menu, type "Lighthouse", and select "Generate report".
+> 3\. In the Developer tools panel, click on the Lighthouse icon located on the left side of the panel or press "Ctrl+Shift+P" (Windows, Linux) or "Command+Shift+P" (macOS) to open the Command menu, then type "Lighthouse" and select "Generate report".
>
> 4\. In the Lighthouse dialog box, select the performance and other relevant options you want to test, then click "Generate report".
>
> 5\. After Lighthouse completes its analysis, you will see a report with scores and recommendations for improving the performance, accessibility, and other areas of your website.
>
-> By following these steps, you can use Lighthouse to test and optimize the performance of your website, which can help improve the user experience and search engine rankings.
+> By following these steps, you can use Lighthouse to test and optimize your website's performance, which can help improve the user experience and search engine rankings.
=====================
Content prompt used:
@@ -35,7 +34,7 @@ Also carefully translate the title and description for the article; do not use &
1. Test performance with Lighthouse
2. Steps on how to test a website's performance using Lighthouse
-Metadata returned1. Prueba de rendimiento con Lighthouse
+Metadata returned1. Probar el rendimiento con Lighthouse
2. Pasos sobre cómo probar el rendimiento de un sitio web utilizando Lighthouse
diff --git a/src/content/docs/es/_roundtrip_picture-examples.txt b/src/content/docs/es/_roundtrip_picture-examples.txt
index 9103a02..edf9e19 100644
--- a/src/content/docs/es/_roundtrip_picture-examples.txt
+++ b/src/content/docs/es/_roundtrip_picture-examples.txt
@@ -1,13 +1,17 @@
---
title: Examples using the element
description: >-
- Provides examples using the element for responsive images, art direction, and different image formats.
-taskInputHash: aa9de5a15f947b5e
+ Provides examples using the element for responsive images, art
+ direction, and different image formats.
+taskInputHash: b566d36d33874c9e
lang: en
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Here are some examples of using the `` element and their explanations:
+Here are some examples of how to use the `` element and their explanations:
-1. Example for responsive images:
+1\. Example for responsive images:
```html
@@ -17,9 +21,9 @@ Here are some examples of using the `` element and their explanations:
```
-Explanation: In this example, the `` element is used to provide different image sources for different screen sizes. The `` elements specify the different image sources using the "srcset" attribute and the "media" attribute to specify the conditions under which each source should be used. The ` ` element is used as a fallback for older browsers or when the conditions specified in the `` elements are not met.
+Explanation: In this example, the `` element is used to provide different image sources for different screen sizes. The `` elements specify the different image sources using the "srcset" attribute and the "media" attribute to specify the conditions under which each source should be used. The ` ` element is used as an fallback option for older browsers or when the conditions specified in the `` elements are not met.
-2. Example for art direction:
+2\. Example for art direction:
```html
@@ -29,9 +33,9 @@ Explanation: In this example, the `` element is used to provide differe
```
-Explanation: In this example, the `` element is used to provide different image sources depending on the orientation of the device. The `` element with the "media" attribute set to "(orientation: landscape)" specifies an image source for wide screens, while the ` ` element specifies an image source for vertical screens.
+Explanation: In this example, the `` element is used to provide different image sources depending on the orientation of the device. The `` element with the "media" attribute set to "(orientation: landscape)" specifies an image source for wide screens, while the ` ` element specifies an image source for portrait screens.
-3. Example for different image formats:
+3\. Example for different image formats:
```html
@@ -43,15 +47,15 @@ Explanation: In this example, the `` element is used to provide differe
```
-Explanation: In this example, the `` element is used to provide different image sources in different formats. The `` elements specify different image sources using the "srcset" attribute and the "type" attribute to specify the image format. The ` ` element is used as a fallback for older browsers that do not support the `` element.
+Explanation: In this example, the `` element is used to provide different image sources for different image formats. The `` elements specify different image sources using the "srcset" attribute and the "type" attribute to specify the image format. The ` ` element is used as fallback option for older browsers that do not support the `` element.
## Breakpoints
-In responsive design, breakpoints are used to define when the layout of a website or application should change based on the size of the viewport. Breakpoints are typically defined using media queries in CSS, which apply different styles based on the screen width. These breakpoints can be used in conjunction with the `` element to provide different image sources for different screen sizes.
+In responsive design, breakpoints are used to define when a website or application's layout should change based on the viewport size. Breakpoints are typically defined using media queries in CSS, which apply different styles based on the screen width. These breakpoints can be used in conjunction with the `` element to provide different image sources for different screen sizes.
-For example, in the first example above, we used the `media` attribute to specify the screen width under which each source should be used. When the screen width is greater than or equal to 768 pixels, the `image-large.jpg` source will be used; when the screen width is greater than or equal to 480 pixels but less than 768 pixels, the `image-medium.jpg` source will be used; and when the screen width is less than 480 pixels, the `image-small.jpg` source will be used. This allows us to serve appropriately sized images for each device, reducing page load times and improving the user experience.
+For example, in the first example above, we use the "media" attribute to specify the screen width at which each source should be used. When the screen width is greater than or equal to 768 pixels, the `image-large.jpg` source will be used; when the screen width is greater than or equal to 480 pixels but less than 768 pixels, the `image-medium.jpg` source will be used; and when the screen width is less than 480 pixels, the `image-small.jpg` source will be used. This allows us to provide appropriately-sized images for each device, reducing page load time and improving the user experience.
-Breakpoints can be defined at any screen size, and multiple breakpoints can be used to create layouts that respond to a wide range of devices. By combining breakpoints with the `` element, flexible and responsive layouts can be created that look good on any device.
+Breakpoints can be defined at any screen size and multiple breakpoints can be used to create layouts that respond to a wide range of devices. By combining breakpoints with the `` element, flexible, responsive designs can be created that look great on any device.
=====================
Content prompt used:
@@ -64,8 +68,8 @@ Also carefully translate the title and description for the article; do not use &
1. Examples using element
2. Provides examples using the element, for responsive images, art direction and different image formats
-Metadata returned1. Ejemplos utilizando el elemento
-2. Proporciona ejemplos utilizando el elemento para imágenes responsivas, dirección de arte y diferentes formatos de imagen.
+Metadata returned1. Ejemplos usando el elemento
+2. Proporciona ejemplos usando el elemento para imágenes responsivas, dirección de arte y diferentes formatos de imagen.
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/es/_roundtrip_pixels-not-pixels.txt b/src/content/docs/es/_roundtrip_pixels-not-pixels.txt
index 80ec2d2..b6fb9be 100644
--- a/src/content/docs/es/_roundtrip_pixels-not-pixels.txt
+++ b/src/content/docs/es/_roundtrip_pixels-not-pixels.txt
@@ -1,23 +1,22 @@
---
title: px ≠ pixels
description: Device pixels ≠ browser pixels ≠ image pixels
-taskInputHash: a6f6575dc9ddbf59
+taskInputHash: f879e185cc72444b
lang: en
-ignore: '/* cSpell:locale es,en*/'
sidebar_sort_priority: 900
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-### Device Pixels ≠ Browser Pixels ≠ Image Pixels
+### Device pixels ≠ browser pixels ≠ image pixels
-Thanks to Apple, CSS and HTML pixels (`px`) **almost always map to multiple device/printer pixels**. My phone's devicePixelRatio is 3.875; [what's yours?](https://www.mydevice.io/)
+Thanks to Apple, CSS and HTML pixels (`px`) **almost always correspond to multiple device/printer pixels**. The devicePixelRatio of my phone is 3.875; [what's yours?](https://www.mydevice.io/)
-My desktop devicePixelRatio changes with the browser zoom, but is set to 1.5 by default (after all, my `System > Display > Scale` is set to 150%).
+The devicePixelRatio of my desktop changes with the browser zoom, but by default it's at 1.5 (since my `System > Display > Scale` is set to 150%).
-Image files (excluding SVG) decode to a grid of pixels. **It's annoyingly difficult to get the image pixels to display perfectly at a 1:1 ratio with device pixels—but with `srcset` you can get close enough**, and a bit of Javascript can adjust the size of the HTML element after loading if you really have a justified reason for needing that perfect mapping, though such forbidden arts won't be revealed here.
+Image files (excluding SVG) are decoded into a grid of pixels. **It's annoyingly hard to get the image pixels to map perfectly 1:1 with device pixels, but with `srcset`, you can get close enough**, and with a little bit of Javascript, you can adjust the size of your HTML element after load if you really have a justified need for that perfect mapping, though such dark arts won't be revealed here.
-> Other absolute units [units (in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/en/docs/Web/CSS/length) are defined in terms of the CSS pixel count and presume 96ppi. Developers avoid absolute units because it's generally better to use units derived from font size or viewport/container dimensions. Incompatible units can break layout if the user adjusts the `Accessibility > Text size multiplier`, zooms the browser, or rotates their device. It should be noted that you should do all these things before launching your site.
+> Other absolute units [in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/en-US/docs/Web/CSS/length) are defined in terms of the number of CSS pixels and assume everything is at 96 dpi. Developers avoid absolute units because it's generally better to use units that derive from the font-size or from viewport/container dimensions. Absolute units can break a layout if the user adjusts their `Accessibility > Text size` multiplier, zooms their browser, or rotates their device. Needless to say, you should do all these things before launching your site.
=====================
Content prompt used:
@@ -31,7 +30,7 @@ Also carefully translate the title and description for the article; do not use &
2. Device px ≠ browser px ≠ image px
Metadata returned1. px ≠ píxeles
-2. Píxeles de dispositivo ≠ píxeles del navegador ≠ píxeles de imagen
+2. Píxeles de dispositivo ≠ px de navegador ≠ px de imagen
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/es/_roundtrip_specify-width-height.txt b/src/content/docs/es/_roundtrip_specify-width-height.txt
index bd3e7c3..5bd59c5 100644
--- a/src/content/docs/es/_roundtrip_specify-width-height.txt
+++ b/src/content/docs/es/_roundtrip_specify-width-height.txt
@@ -1,21 +1,21 @@
---
-title: Use Width and Height Attributes
+title: Using Width and Height Attributes
description: Benefits of using width and height attributes in HTML code
-taskInputHash: c1840d188c21b829
+taskInputHash: 3a697d0f6acf5385
lang: en
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
+Why should you use width and height in HTML?
-Why should you use width and height in HTML?
+> It is recommended to use width and height attributes in HTML code for images because it helps the web browser know the size of the image before it fully loads. This allows the browser to reserve the appropriate amount of space on the webpage for the image, preventing content from shifting around while the image loads.
+>
+> Additionally, specifying width and height attributes for images can also improve the overall performance of the webpage. When a browser knows the size of an image ahead of time, it can more accurately calculate the amount of space needed to display the image and avoid unnecessary reflow or repaint of the content as it loads.
+>
+> Overall, using width and height attributes in HTML code for images can improve the user experience by making content load faster and reducing visual glitches.
-> It's recommended to use width and height attributes in HTML code for images because it helps the web browser know the size of the image before it fully loads. This allows the browser to reserve the appropriate amount of space on the webpage for the image, which prevents content from jumping around while the image loads.
->
-> Additionally, specifying the width and height attributes for images can also help improve overall webpage performance. When a browser knows the size of an image in advance, it can more accurately calculate the amount of space needed to display the image and prevent unnecessary reflows or repaints of content as it loads.
->
-> Overall, using width and height attributes in HTML code for images can improve the user experience by making content load faster and reducing visual glitches.
+{{No issues found.}}
=====================
Content prompt used:
@@ -28,8 +28,8 @@ Also carefully translate the title and description for the article; do not use &
1. Use width and height
2. Benefits of using width and height attributes in HTML code
-Metadata returned1. Usa ancho y altura
-2. Beneficios de usar los atributos de ancho y altura en el código HTML
+Metadata returned1. Usar el ancho y el alto
+2. Beneficios de utilizar los atributos de ancho y alto en el código HTML
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/es/_roundtrip_when-to-use-picture.txt b/src/content/docs/es/_roundtrip_when-to-use-picture.txt
index 088b3f2..a59d8b3 100644
--- a/src/content/docs/es/_roundtrip_when-to-use-picture.txt
+++ b/src/content/docs/es/_roundtrip_when-to-use-picture.txt
@@ -1,26 +1,25 @@
---
-title: When to Use the Element
-description: Explains in which situations you should use the element
-taskInputHash: 97265d75f3229eaa
+title: When to use the element
+description: Explains in what situations the element should be used
+taskInputHash: 51d7f5ab633e52ac
lang: en
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-27'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-The `picture` element is used to provide multiple versions of an image and determine which version of the image to display based on certain conditions. It is particularly useful for optimizing images for different screen sizes and resolutions, and is commonly used in responsive web design.
+The `picture` element is used to provide multiple versions of an image and determine which version of the image to display based on certain conditions. It is particularly useful for optimizing images for different screen sizes and resolutions, and is commonly used in responsive web design.
-Here are some specific scenarios where you might want to use the `picture` element:
+Here are some specific scenarios in which you may want to use the `picture` element:
-* **Retina displays:** High-density displays such as Apple's Retina displays have a higher pixel density, which means images can appear blurry or pixelated if they are not optimized for high resolution. With the `picture` element, you can provide a version of the image that has twice the pixels of the normal version, so it appears sharp and clear on Retina displays.
+* **Retina displays:** High-density displays such as Apple's retina displays have a higher pixel density, meaning images can appear blurry or pixelated if not optimized for high resolution. With the `picture` element, you can provide a version of the image that has twice as many pixels as the normal version, so it appears clear and sharp on retina displays.
* **Different aspect ratios:** If you're designing a site that needs to display images with different aspect ratios (such as landscape vs. portrait), you can use the `picture` element to provide different versions of the image that are optimized for each aspect ratio.
* **Bandwidth limitations:** Images can be large files that take up a lot of bandwidth, especially on mobile devices. With the `picture` element, you can provide smaller versions of the image for devices with smaller screens or slower internet connections, which can help reduce page load times.
-* **Art-directed layouts:** Sometimes you may want to present an image in a certain way based on the design of the rest of the page. For example, you may want to show a close-up of a person's face on mobile devices, but a wider shot on desktop devices. The `picture` element allows you to provide different versions of the image that are optimized for different layouts.
+* **Art-directed layouts:** Sometimes, you may want to present an image in a certain way depending on the layout of the rest of the page. For example, you may want to show a close-up of a person's face on mobile devices, but a wider shot on desktop devices. The `picture` element allows you to provide different versions of the image that are optimized for different layouts.
-Overall, the `picture` element is a powerful tool that can help you optimize your images for a variety of use cases and ensure that they look great no matter what device or screen size they are being viewed on.
+Overall, the `picture` element is a powerful tool that can help you optimize your images for a variety of use cases and ensure they look great no matter what device or screen size they're being viewed on.
=====================
Content prompt used:
@@ -33,8 +32,8 @@ Also carefully translate the title and description for the article; do not use &
1. When to use element
2. Explains in which situations you should use the element
-Metadata returned1. Cuándo usar el elemento
-2. Explica en qué situaciones se debe usar el elemento
+Metadata returned1. Cuándo utilizar el elemento
+2. Explica en qué situaciones se debe utilizar el elemento
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/es/_roundtrip_width-density.txt b/src/content/docs/es/_roundtrip_width-density.txt
index e37b05a..0da088a 100644
--- a/src/content/docs/es/_roundtrip_width-density.txt
+++ b/src/content/docs/es/_roundtrip_width-density.txt
@@ -1,20 +1,19 @@
---
title: Width and Density Descriptors
description: Examples of using width and density descriptors in `srcset`
-taskInputHash: 74b8eb2869d948a0
+taskInputHash: 57ff1c28d63c24f5
lang: en
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
Understanding Width (`w`) and Density (`x`) Descriptors in `srcset`. Use examples and Markdown.
-> `srcset` is an HTML attribute that allows developers to provide multiple sources of images with different resolutions or pixel densities, and allow the browser to select the appropriate image based on the display characteristics of the device. The `srcset` attribute uses a combination of the `URL` and `w` or `x` descriptors to specify the images.
+> `Srcset` is an HTML attribute that allows developers to provide multiple image sources with varying resolutions or pixel densities, and allows the browser to select the appropriate image based on the display characteristics of the device. The `srcset` attribute uses a combination of URLs and either `w` or `x` descriptors to specify the images.
-## Width Descriptors (`w`)
+## Width Descriptor (`w`)
-> The `w` descriptor is used to specify the width of an image in pixels. It is used when you want to provide the browser with the dimensions of an image so it can choose the appropriate image for the available space on the screen.
+> The `w` descriptor is used to specify the width of an image in pixels. It's used when we want to provide the browser with the dimensions of an image so it can choose the appropriate image for the available screen space.
> The syntax for using the `w` descriptor in `srcset` is as follows:
@@ -23,14 +22,14 @@ Understanding Width (`w`) and Density (`x`) Descriptors in `srcset`. Use example
srcset="small.jpg 500w,
medium.jpg 1000w,
large.jpg 2000w"
- alt="Example Image">
+ alt="Example image">
```
-> In the above example, we have provided the browser with three images and their corresponding widths in pixels. The browser will select the image with the width closest to the available space on the screen.
+> In the above example, we've provided the browser with three images and their corresponding widths in pixels. The browser will select the image with the width that's closest to the available screen space.
-## Density Descriptors (`x`)
+## Density Descriptor (`x`)
-> The `x` descriptor is used to specify the pixel density of an image, which is the ratio of physical pixels to CSS pixels. It is used when you want to provide the browser with different versions of the same image with different pixel densities.
+> The `x` descriptor is used to specify the pixel density of an image, which is the ratio of physical pixels to CSS pixels. It's used when we want to provide the browser with different versions of the same image with varying pixel densities.
> The syntax for using the `x` descriptor in `srcset` is as follows:
@@ -39,12 +38,12 @@ Understanding Width (`w`) and Density (`x`) Descriptors in `srcset`. Use example
srcset="small.jpg 1x,
medium.jpg 2x,
large.jpg 3x"
- alt="Example Image">
+ alt="Example image">
```
-> In the above example, we have provided the browser with three images and their different corresponding pixel densities. The browser will select the image with the pixel density closest to the device's display.
+> In the above example, we've provided the browser with three images and their corresponding pixel densities. The browser will select the image with the pixel density that's closest to the device's display.
-> It is important to note that `w` and `x` descriptors can be used together in the same `srcset` attribute to provide the browser with more options to choose from.
+> Note that the `w` and `x` descriptors can be used together in the same `srcset` attribute to provide the browser with even more options to choose from.
=====================
Content prompt used:
diff --git a/src/content/docs/es/breakpoints.md b/src/content/docs/es/breakpoints.md
index fe98f82..5290a94 100644
--- a/src/content/docs/es/breakpoints.md
+++ b/src/content/docs/es/breakpoints.md
@@ -1,43 +1,42 @@
---
-title: Breakpoints e imágenes
+title: Puntos de quiebre e imágenes
description: >-
- Por qué algunos (pero no todos) los puntos de interrupción son importantes
- para tus imágenes
-taskInputHash: cc4be952df3fef63
+ ¿Por qué algunos puntos de quiebre (pero no todos) son importantes para tus
+ imágenes?
+taskInputHash: d63995938314e702
lang: es
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Antecedentes
-Las pantallas pequeñas y los monitores grandes necesitan diseños diferentes. Para el propósito de `srcset` y `sizes`, necesitamos saber en qué punto cambia el diseño.
+Pantallas pequeñas y grandes requieren diseños diferentes. Con el fin de utilizar `srcset` y `sizes`, necesitamos saber en qué punto cambia el diseño.
-Los desarrolladores web deben decidir qué se encoje, se oculta o se reubica en pantallas más pequeñas - o más comúnmente, qué se expande, se revela o se agrega en pantallas más grandes. También tienen muy poca información para trabajar. ¿Está el usuario en una tableta o en un teléfono en modo horizontal - o en una ventana de pequeño navegador?
+Los desarrolladores web deben decidir qué encoger, ocultar o reubicar en pantallas más pequeñas, o más comúnmente, qué expandir, revelar o agregar en pantallas más grandes. Además, tienen muy poca información. ¿El usuario está en un tablet o un teléfono en modo horizontal, o en una ventana de navegador pequeña?
-Tenemos que elegir un ancho de viewport arbitrario donde cambie el diseño. Esto se llama un **punto de interrupción**. Es un número arbitrario de píxeles CSS ([no píxeles de dispositivo](/es/pixeles-no-pixeles)). Polypane tiene un [gran artículo](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) sobre los puntos de interrupción utilizados comúnmente.
+Tenemos que elegir un ancho de viewport arbitrario donde se produce el cambio de diseño. Esto se llama **punto de quiebre**. Es un número arbitrario de píxeles CSS ([no píxeles de dispositivo](/es/pixels-not-pixels)). Polypane tiene un [gran artículo](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) sobre los puntos de quiebre comúnmente utilizados.
-Algunas imágenes (como logotipos, iconos o botones) podrían ser inmunes a los cambios de diseño causados por estos puntos de interrupción (y estar bien con [descriptores de densidad de srcset](/es/descriptores-de-densidad)).
+Algunas imágenes (como logotipos, iconos o botones) podrían ser inmunes a los cambios de diseño provocados por estos puntos de quiebre (y estar bien con los [descriptores de densidad srcset](/es/density-descriptors)).
-Las imágenes del contenido principal estarán limitadas por el tamaño de su contenedor. Por lo general, el área de contenido principal de una página se limitará a un ancho determinado en las pantallas más grandes, un `max-width`, pero en las pantallas pequeñas, el área de contenido principal llenará todo el viewport.
+Las imágenes de contenido principal estarán limitadas por el tamaño de su contenedor. Por lo general, la zona de contenido principal de una página se limitará a un ancho determinado en las pantallas más grandes, un `max-width`, pero en pantallas pequeñas la zona de contenido principal ocupará todo el viewport.
-Si tiene más de una columna en algunos puntos de interrupción, será más difícil calcular las reglas de tamaño efectivas, ya que el porcentaje del ancho de viewport que ocupa la imagen cambiará.
+Si tienes más de una columna en algunos puntos de quiebre, será más difícil calcular las reglas de dimensionamiento efectivas, ya que el porcentaje del ancho del viewport que ocupa la imagen cambiará.
-### El método fácil
+### El método sencillo
-Dicho esto, no te compliques demasiado. Probablemente estarás muy bien con la siguiente aproximación:
+Dicho esto, no te obsesiones con esto. Es muy probable que estés bien con la siguiente aproximación:
-1. ¿A qué tamaño el columna principal (o el contenedor de la imagen) deja de crecer? Hasta ese ancho de viewport, podemos usar `100vw` para el atributo `sizes` de la imagen para indicar que la imagen ocupa el 100% del ancho del viewport.
-2. ¿Cuál es el ancho máximo que el contenedor jamás alcanza? Podemos fijar eso como una `width` fija para todo lo demás.
+1. ¿A qué tamaño deja de crecer la columna principal (o el contenedor de la imagen)? Hasta ese ancho de viewport, podemos usar `100vw` para el atributo `sizes` de la imagen para indicar que la imagen ocupa el 100% del ancho del viewport.
+2. ¿Cuál es el ancho máximo que alcanzará el contenedor? Podemos establecer eso como un valor fijo de `width` para todo lo demás.
-Si tu respuesta a 1 fue 700px y tu respuesta a 2 fue 800px, puedes usar el siguiente atributo `sizes`:
+Si tu respuesta a la pregunta 1 fue 700px y tu respuesta a la pregunta 2 fue 800px, puedes utilizar el siguiente atributo `sizes`:
```html
-
+
```
-> Pensarías que el navegador podría manejar todos estos cálculos por nosotros en función de CSS. Desafortunadamente, los navegadores están ávidos de elegir una URL de imagen *antes* de que se descarguen las hojas de estilo. Así que tenemos que hacer los cálculos nosotros mismos, y les sirve bien si no lo hacemos perfecto.
+> Podríamos pensar que el navegador podría manejar fácilmente todos estos cálculos en función del CSS. Desafortunadamente, los navegadores están ávidos de elegir una URL de imagen *antes* de que se descarguen las hojas de estilo. Así que tenemos que hacer los cálculos nosotros mismos, y se lo merecen si no lo hacemos perfecto.
diff --git a/src/content/docs/es/browser-picks-srcset.md b/src/content/docs/es/browser-picks-srcset.md
index 5236618..99d38c7 100644
--- a/src/content/docs/es/browser-picks-srcset.md
+++ b/src/content/docs/es/browser-picks-srcset.md
@@ -1,16 +1,15 @@
---
title: Cómo el navegador elige
-description: Cómo el navegador elige entre imágenes listadas en el atributo srcset
-taskInputHash: 49304fce4ac555da
+description: Cómo el navegador elige entre las imágenes listadas en el atributo srcset
+taskInputHash: 78ffb2179558549b
lang: es
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-¿Cómo el navegador elige entre las imágenes listadas en el atributo `srcset`? Aquí hay un paso a paso, con ejemplos para especificaciones tanto de ancho como de densidad y cómo decide el navegador en función del dispositivo y el tamaño de la ventana gráfica.
+¿Cómo elige el navegador entre las imágenes listadas en el atributo srcset? Aquí hay un paso a paso, con ejemplos para especificaciones tanto de ancho como de densidad y cómo el navegador decide según el dispositivo y el viewport.
-- Al usar el atributo `srcset` en HTML, el navegador utiliza un conjunto de reglas para elegir la imagen más apropiada de una lista de fuentes proporcionadas. Estas reglas dependen tanto de las características de la pantalla del dispositivo (resolución, densidad de píxeles), como del tamaño de la ventana gráfica. El atributo `srcset` te permite especificar diferentes imágenes según el ancho (usando el descriptor `w`) o la densidad de píxeles (usando el descriptor `x`). Repasemos cada caso con ejemplos.
+- Al usar el atributo `srcset` en HTML, el navegador utiliza un conjunto de reglas para elegir la imagen más apropiada de una lista de fuentes proporcionadas. Estas reglas dependen tanto de las características de visualización del dispositivo (resolución, densidad de píxeles) como del tamaño del viewport. El atributo `srcset` le permite especificar diferentes imágenes según el ancho (usando el descriptor `w`) o la densidad de píxeles (usando el descriptor `x`). Vamos a explicar cada caso con ejemplos.
1\. Descriptor de ancho (`w`):
@@ -18,23 +17,23 @@ Supongamos que tenemos el siguiente atributo `srcset`:
```html
-
+
```
-El navegador seguirá los siguientes pasos:
+El navegador seguirá estos pasos:
-a. Determina la DPR (Relación de píxeles del dispositivo) del dispositivo. Por ejemplo, una pantalla estándar tiene una DPR de 1, mientras que una pantalla de alta resolución (Retina) tiene una DPR de 2 o más.
+a. Determine el DPR (Relación de píxeles del dispositivo). Por ejemplo, una pantalla estándar tiene un DPR de 1, mientras que una pantalla de alta resolución (Retina) tiene un DPR de 2 o superior.
-b. Calcula el ancho efectivo para cada imagen en `srcset`. Multiplica el descriptor de ancho por la DPR. Para un dispositivo con una DPR de 1:
+b. Calcule el ancho efectivo para cada imagen en el `srcset`. Multiplique el descriptor de ancho por el DPR. Para un dispositivo con un DPR de 1:
-- example-small.jpg: 400 \* 1 = 400px
+- ejemplo-pequeño.jpg: 400 \* 1 = 400px
-- example-medium.jpg: 800 \* 1 = 800px
+- ejemplo-mediano.jpg: 800 \* 1 = 800px
-- example-large.jpg: 1600 \* 1 = 1600px
+- ejemplo-grande.jpg: 1600 \* 1 = 1600px
-c. Compara los anchos efectivos con el ancho de la ventana gráfica (viewport). Supongamos que el ancho de la ventana gráfica es de 420px. El navegador elegirá la imagen más pequeña con un ancho efectivo mayor o igual al ancho de la ventana gráfica. En este caso, seleccionará `example-medium.jpg`.
+c. Compare los anchos efectivos con el ancho del viewport. Supongamos que el ancho del viewport es de 420px. El navegador elegirá la imagen más pequeña con un ancho efectivo mayor o igual al ancho del viewport. En este caso, seleccionará `ejemplo-mediano.jpg`.
2\. Descriptor de densidad de píxeles (`x`):
@@ -42,28 +41,28 @@ Supongamos que tenemos el siguiente atributo `srcset`:
```html
-
+
```
-El navegador seguirá los siguientes pasos:
+El navegador seguirá estos pasos:
-a. Determina la DPR (Relación de píxeles de dispositivo) del dispositivo. Por ejemplo, una pantalla estándar tiene una DPR de 1, mientras que una pantalla de alta resolución (Retina) tiene una DPR de 2 o más.
+a. Determine el DPR (Relación de píxeles del dispositivo). Por ejemplo, una pantalla estándar tiene un DPR de 1, mientras que una pantalla de alta resolución (Retina) tiene un DPR de 2 o superior.
-b. Compara la DPR del dispositivo con los descriptores `x` en `srcset`. En este caso, tenemos tres imágenes con los siguientes descriptores:
+b. Compare el DPR del dispositivo con los descriptores `x` en el `srcset`. En este caso, tenemos tres imágenes con los siguientes descriptores:
-- example-1x.jpg: 1x
+- ejemplo-1x.jpg: 1x
-- example-2x.jpg: 2x
+- ejemplo-2x.jpg: 2x
-- example-3x.jpg: 3x
+- ejemplo-3x.jpg: 3x
-c. Elige la imagen con el descriptor `x` que se acerque más a la DPR del dispositivo. Para un dispositivo con una DPR de 1, el navegador seleccionará `example-1x.jpg`. Para un dispositivo con una DPR de 2, elegirá `example-2x.jpg`, y así sucesivamente.
+c. Elija la imagen con el descriptor `x` que esté más cerca del DPR del dispositivo. Para un dispositivo con un DPR de 1, el navegador elegirá `ejemplo-1x.jpg`. Para un dispositivo con un DPR de 2, elegirá `ejemplo-2x.jpg`, y así sucesivamente.
-Es importante tener en cuenta que también se puede utilizar el atributo `sizes` en combinación con el atributo `srcset` para proporcionar más información sobre cómo se mostrará la imagen en diferentes anchos de ventana gráfica. Esto es particularmente útil cuando se utiliza el descriptor de anchura (`w`). Aquí hay un ejemplo:
+Es importante tener en cuenta que también se puede usar el atributo `sizes` en combinación con el atributo `srcset` para proporcionar más información sobre cómo se mostrará la imagen en diferentes anchos de viewport. Esto es particularmente útil cuando se usa el descriptor de ancho (`w`). Aquí hay un ejemplo:
```html
-
```
+
+
Este ejemplo de marcado incluye:
-- **src**: La fuente de imagen predeterminada, se muestra si el navegador no admite srcset.
-- **srcset**: La lista de fuentes de imagen y sus descriptores de densidad (1x, 2x, 3x). El navegador elegirá la imagen más adecuada según la pantalla del usuario.
+- **src**: La fuente de imagen predeterminada, que se muestra si el navegador no admite srcset.
+- **srcset**: La lista de fuentes de imágenes y sus descriptores de densidad (1x, 2x, 3x). El navegador elegirá la imagen más adecuada en función de la pantalla del usuario.
- **alt**: Una descripción de la imagen con fines de accesibilidad.
-¡Y eso es todo! Ha implementado con éxito srcset con descriptores de densidad, mejorando el rendimiento y la experiencia del usuario de su sitio web.
+¡Eso es todo! Has implementado correctamente srcset con descriptores de densidad, mejorando el rendimiento y la experiencia del usuario en tu sitio web.
diff --git a/src/content/docs/es/introduction.md b/src/content/docs/es/introduction.md
index a374792..df7c015 100644
--- a/src/content/docs/es/introduction.md
+++ b/src/content/docs/es/introduction.md
@@ -1,22 +1,22 @@
---
-title: srcset y tamaños de
-description: Una guía eficiente y con opiniones sobre imágenes responsivas para 2023
-taskInputHash: c0bfd3a988eb464d
+title: srcset y tamaños de la etiqueta
+description: Una guía eficiente y con opinión sobre imágenes responsivas para 2023
+taskInputHash: a764c357741581bc
lang: es
-ignore: '/* cSpell:locale es,en*/'
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-**Una guía eficiente y con opiniones sobre imágenes para 2023**
+**Una guía eficiente y con opinión sobre imágenes para 2023**
-Consulte la barra lateral para obtener información detallada. Esta es la referencia rápida para actualizar las etiquetas ` ` y manejar los dispositivos modernos en todas sus diferentes tamaños y densidades de píxeles. Debe [saber que los píxeles no son iguales](/es/pixels-not-pixels) y que `devicePixelRatio` es más probable que esté alrededor de 3,875 en lugar de 1:1. Los teléfonos modernos fingen tener 320-428 píxeles de ancho para la legibilidad (en píxeles CSS), pero tienen muchos píxeles de dispositivo por píxel CSS.
+Revisa la barra lateral para obtener una explicación más detallada. Esta es una referencia rápida para actualizar las etiquetas ` ` y hacer que se adapten a los dispositivos modernos con sus diversas resoluciones y tamaños de pantalla. Deberías [saber que los píxeles no son iguales](/es/pixels-not-pixels) y que `devicePixelRatio` es probable que sea 3,875 en lugar de 1:1. Los teléfonos modernos simulan tener entre 320 y 428 píxeles de ancho para que la lectura sea más sencilla (en píxeles CSS), pero tienen varios píxeles de dispositivo por píxel CSS.
+
+> Si tu imagen nunca cambia de tamaño, sin importar lo estrecha que sea la ventana del navegador, deberías usar [descriptores de densidad](/es/density-descriptors) en lugar de lo que aparece a continuación. Esto a menudo es adecuado para logos, iconos y botones.
+
+¿Sabes cuáles son tus [puntos de quiebre](/es/breakpoints)? Necesitarás esos números para ajustar la solución que aparece a continuación, al menos el punto de quiebre del ancho del viewport donde el área de contenido principal deja de crecer.
-> Si su imagen nunca cambia de tamaño, no importa cuán estrecha haga la ventana del navegador, debe utilizar un [descriptor de densidad](/es/density-descriptors). Esto a menudo es adecuado para logotipos, iconos y botones.
-¿Sabe cuáles son sus [puntos de interrupción](/es/breakpoints)? Necesitará esos números para ajustar la solución a continuación, como mínimo, el punto de interrupción del ancho del viewport donde el área de contenido principal deja de crecer.
-
### El método fácil
```html
@@ -28,12 +28,11 @@ Consulte la barra lateral para obtener información detallada. Esta es la refere
img.jpg?format=webp&w=1600 1600w,
img.jpg?format=webp&w=2000 2000w"
- sizes="(max-width: 700px) 100vw, 800px" alt="Perro montando en bicicleta" />
+ sizes="(max-width: 700px) 100vw, 800px" alt="Perro montando bicicleta" />
-
-
+
```
diff --git a/src/content/docs/es/lighthouse-performance-test.md b/src/content/docs/es/lighthouse-performance-test.md
index 823fd93..44f251e 100644
--- a/src/content/docs/es/lighthouse-performance-test.md
+++ b/src/content/docs/es/lighthouse-performance-test.md
@@ -1,25 +1,24 @@
---
-title: Prueba de rendimiento con Lighthouse
+title: Probar el rendimiento con Lighthouse
description: Pasos sobre cómo probar el rendimiento de un sitio web utilizando Lighthouse
-taskInputHash: d6d69f5336f685c3
+taskInputHash: f77d81584d57a9a3
lang: es
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-¿Cómo se prueba el rendimiento del sitio con Lighthouse?
+¿Cómo se prueba el rendimiento de tu sitio con Lighthouse?
> Lighthouse es una herramienta que se puede utilizar para medir el rendimiento, accesibilidad y otros aspectos de un sitio web. Para probar el rendimiento de tu sitio web con Lighthouse, sigue estos pasos:
>
-> 1\. Abre el navegador web Google Chrome y navega hasta la página que deseas probar.
+> 1\. Abre el navegador web Google Chrome y dirígete a la página que deseas probar.
>
-> 2\. Haz clic en los tres puntos en la esquina superior derecha de la ventana del navegador, luego selecciona "Más herramientas" y luego "Herramientas de desarrollador" o usa simplemente el atajo del teclado "Ctrl + Shift + I" (Windows, Linux) o "Command + Option + I" (macOS).
+> 2\. Haz clic en los tres puntos de la esquina superior derecha de la ventana del navegador, luego selecciona "Más herramientas" y luego "Herramientas de desarrollo" o simplemente usa el atajo de teclado "Ctrl+Shift+I" (Windows, Linux) o "Command+Option+I" (macOS).
>
-> 3\. En el panel Herramientas de desarrollador, haz clic en el icono de Lighthouse ubicado en el lado izquierdo del panel o presiona "Ctrl + Shift + P" (Windows, Linux) o "Command + Shift + P" (macOS) para abrir el menú de comandos, escribe "Lighthouse" y selecciona "Generar reporte".
+> 3\. En el panel de Herramientas de desarrollo, haz clic en el icono de Lighthouse ubicado en el lado izquierdo del panel o presiona "Ctrl+Shift+P" (Windows, Linux) o "Command+Shift+P" (macOS) para abrir el menú de Comando, luego escribe "Lighthouse" y selecciona "Generar informe".
>
-> 4\. En el cuadro de diálogo Lighthouse, selecciona el rendimiento y otras opciones relevantes que deseas probar, luego haz clic en "Generar reporte".
+> 4\. En el cuadro de diálogo de Lighthouse, selecciona el rendimiento y otras opciones relevantes que deseas probar, luego haz clic en "Generar informe".
>
-> 5\. Después de que Lighthouse complete su análisis, verás un informe con puntuaciones y recomendaciones para mejorar el rendimiento, accesibilidad y otras áreas de tu sitio web.
+> 5\. Después de que Lighthouse complete su análisis, verás un informe con puntuaciones y recomendaciones para mejorar el rendimiento, la accesibilidad y otras áreas de tu sitio web.
>
-> Siguiendo estos pasos, puedes utilizar Lighthouse para probar y optimizar el rendimiento de tu sitio web, lo que puede ayudar a mejorar la experiencia de usuario y los rankings de los motores de búsqueda.
+> Siguiendo estos pasos, puedes utilizar Lighthouse para probar y optimizar el rendimiento de tu sitio web, lo que puede ayudar a mejorar la experiencia del usuario y el posicionamiento en los motores de búsqueda.
diff --git a/src/content/docs/es/picture-examples.md b/src/content/docs/es/picture-examples.md
index 2d49689..af8253a 100644
--- a/src/content/docs/es/picture-examples.md
+++ b/src/content/docs/es/picture-examples.md
@@ -1,18 +1,17 @@
---
title: Ejemplos usando el elemento
description: >-
- Proporciona ejemplos utilizando el elemento , para imágenes
- responsivas, dirección de arte y diferentes formatos de imagen.
-taskInputHash: 6db4516ee45090eb
+ Proporciona ejemplos usando el elemento para imágenes responsivas,
+ dirección de arte y diferentes formatos de imagen.
+taskInputHash: b566d36d33874c9e
lang: es
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
Aquí hay algunos ejemplos de cómo usar el elemento `` y sus explicaciones:
-1\. Ejemplo para imágenes responsivas:
+1\. Ejemplo de imágenes responsivas:
```html
@@ -22,9 +21,9 @@ Aquí hay algunos ejemplos de cómo usar el elemento `` y sus explicaci
```
-Explicación: En este ejemplo, el elemento `` se utiliza para proporcionar diferentes fuentes de imágenes para diferentes tamaños de pantalla. Los elementos `` especifican las diferentes fuentes de imagen utilizando el atributo "srcset" y el atributo "media" para especificar las condiciones en las que se debe utilizar cada fuente. El elemento ` ` se utiliza como alternativa para navegadores antiguos o cuando no se cumplen las condiciones especificadas en los elementos ``.
+Explicación: En este ejemplo, se utiliza el elemento `` para proporcionar diferentes fuentes de imágenes para diferentes tamaños de pantalla. Los elementos `` especifican las diferentes fuentes de imagen usando el atributo "scrset" y el atributo "media" para especificar las condiciones bajo las cuales se debe utilizar cada fuente. El elemento ` ` se utiliza como una opción alternativa para navegadores antiguos o cuando no se cumplen las condiciones especificadas en los elementos ``.
-2\. Ejemplo para dirección de arte:
+2\. Ejemplo para la dirección de arte:
```html
@@ -34,7 +33,7 @@ Explicación: En este ejemplo, el elemento `` se utiliza para proporcio
```
-Explicación: En este ejemplo, el elemento `` se utiliza para proporcionar diferentes fuentes de imágenes según la orientación del dispositivo. El elemento `` con el atributo "media" establecido en "(orientation: landscape)" especifica una fuente de imagen para pantallas anchas, mientras que el elemento ` ` especifica una fuente de imagen para pantallas verticales.
+Explicación: En este ejemplo, el elemento `` se utiliza para proporcionar diferentes fuentes de imagen dependiendo de la orientación del dispositivo. El elemento`` con el atributo "media" establecido en "(orientation: landscape)" especifica una fuente de imagen para pantallas anchas, mientras que el elemento ` ` especifica una fuente de imagen para pantallas de retrato.
3\. Ejemplo para diferentes formatos de imagen:
@@ -48,12 +47,12 @@ Explicación: En este ejemplo, el elemento `` se utiliza para proporcio
```
-Explicación: En este ejemplo, el elemento `` se utiliza para proporcionar diferentes fuentes de imágenes para diferentes formatos de imagen. Los elementos `` especifican diferentes fuentes de imagen utilizando el atributo "srcset" y el atributo "type" para especificar el formato de imagen. El elemento ` ` se utiliza como alternativa para navegadores antiguos que no admiten el elemento ``.
+Explicación: En este ejemplo, se utiliza el elemento `` para proporcionar diferentes fuentes de imágenes para diferentes formatos de imagen. Los elementos `` especifican diferentes fuentes de imagen usando el atributo "srcset" y el atributo "type" para especificar el formato de imagen. El elemento ` ` se utiliza como opción alternativa para navegadores antiguos que no admiten el elemento ``.
-## Puntos de quiebre
+## Breakpoints
-En el diseño responsivo, los puntos de quiebre se utilizan para definir cuándo debe cambiar el diseño de un sitio web o aplicación en función del tamaño del viewport. Los puntos de quiebre se definen típicamente utilizando consultas de medios en CSS, que aplican diferentes estilos dependiendo del ancho de la pantalla. Estos puntos de quiebre se pueden utilizar en conjunto con el elemento `` para proporcionar diferentes fuentes de imágenes para diferentes tamaños de pantalla.
+En el diseño responsivo, los breakpoints se utilizan para definir cuándo el diseño de un sitio web o aplicación debe cambiar según el tamaño del viewport. Los breakpoints se definen típicamente mediante consultas de medios en CSS, que aplican diferentes estilos según el ancho de la pantalla. Estos breakpoints se pueden usar en conjunción con el elemento `` para proporcionar diferentes fuentes de imagen para diferentes tamaños de pantalla.
-Por ejemplo, en el primer ejemplo anterior, usamos el atributo `media` para especificar el ancho de pantalla bajo el cual se debe utilizar cada fuente. Cuando el ancho de pantalla es mayor o igual a 768 píxeles, se utilizará la fuente `image-large.jpg`; cuando el ancho de pantalla es mayor o igual a 480 píxeles pero menor a 768 píxeles, se utilizará la fuente `image-medium.jpg`; y cuando el ancho de pantalla es inferior a 480 píxeles, se utilizará la fuente `image-small.jpg`. Esto nos permite servir imágenes con el tamaño adecuado para cada dispositivo, reduciendo los tiempos de carga de página y mejorando la experiencia del usuario.
+Por ejemplo, en el primer ejemplo anterior, utilizamos el atributo `media` para especificar el ancho de la pantalla en el que se debe usar cada fuente. Cuando el ancho de la pantalla es mayor o igual a 768 píxeles, se utilizará la fuente `image-large.jpg`; cuando el ancho de la pantalla es mayor o igual a 480 píxeles pero menor que 768 píxeles, se utilizará la fuente `image-medium.jpg`; y cuando el ancho de la pantalla es menor que 480 píxeles, se utilizará la fuente `image-small.jpg`. Esto nos permite ofrecer imágenes de tamaño adecuado para cada dispositivo, reduciendo el tiempo de carga de la página y mejorando la experiencia del usuario.
-Los puntos de quiebre se pueden definir en cualquier tamaño de pantalla, y se pueden utilizar múltiples puntos de quiebre para crear diseños que respondan a una amplia gama de dispositivos. Al combinar puntos de quiebre con el elemento ``, se pueden crear diseños flexibles y responsivos que se ven geniales en cualquier dispositivo.
+Los breakpoints se pueden definir en cualquier tamaño de pantalla y se pueden usar múltiples breakpoints para crear diseños que respondan a una amplia gama de dispositivos. Al combinar breakpoints con el elemento ``, se pueden crear diseños flexibles y responsivos que luzcan geniales en cualquier dispositivo.
diff --git a/src/content/docs/es/pixels-not-pixels.md b/src/content/docs/es/pixels-not-pixels.md
index 00b7cef..6b5f6f8 100644
--- a/src/content/docs/es/pixels-not-pixels.md
+++ b/src/content/docs/es/pixels-not-pixels.md
@@ -1,20 +1,19 @@
---
title: px ≠ píxeles
-description: Píxeles de dispositivo ≠ píxeles del navegador ≠ píxeles de imagen
-taskInputHash: a6f6575dc9ddbf59
+description: Píxeles de dispositivo ≠ px de navegador ≠ px de imagen
+taskInputHash: f879e185cc72444b
lang: es
-ignore: '/* cSpell:locale es,en*/'
sidebar_sort_priority: 900
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-### Píxeles de dispositivo ≠ píxeles del navegador ≠ píxeles de imagen
+### Píxeles del dispositivo ≠ px del navegador ≠ px de la imagen
-Gracias a Apple, los píxeles de CSS y HTML (`px`) **casi siempre se asignan a múltiples píxeles de dispositivo/impresora**. El devicePixelRatio de mi teléfono es 3,875; [¿cuál es el tuyo?](https://www.mydevice.io/)
+Gracias a Apple, los píxeles CSS y HTML (`px`) **casi siempre se corresponden con múltiples píxeles de dispositivo/impresora**. El devicePixelRatio de mi teléfono es 3,875; [¿cuál es el tuyo?](https://www.mydevice.io/)
-Mi dispositivo de escritorio devicePixelRatio cambia con el zoom del navegador, pero es predeterminadamente 1,5 (después de todo, mi `Sistema > Pantalla > Escala` es 150%).
+El devicePixelRatio de mi escritorio cambia con el zoom del navegador, pero por defecto está en 1,5 (ya que mi `Sistema > Pantalla > Escala` es del 150 %).
-Los archivos de imagen (excluyendo SVG) se decodifican a una cuadrícula de píxeles. **Es molestoamente difícil obtener que los píxeles de la imagen se muestren perfectamente a una relación 1:1 con los píxeles de dispositivo -pero con `srcset` puedes llegar lo *suficientemente* cerca**, y un poco de Javascript puede ajustar el tamaño del elemento html después de la carga si realmente tienes razones justificadas para necesitar ese mapeo perfecto, aunque dichas artes prohibidas no serán reveladas aquí.
+Los archivos de imagen (excluyendo SVG) se decodifican en una cuadrícula de píxeles. **Es molestomente difícil hacer que los píxeles de la imagen se muestren perfectamente en una relación de 1:1 con los píxeles del dispositivo - pero con `srcset` puedes llegar a *lo suficientemente cerca***, y con un poco de Javascript puedes ajustar el tamaño del elemento HTML después de la carga si realmente tienes razones justificadas para necesitar ese mapeo perfecto, aunque tales artes prohibidos no serán revelados aquí.
-> Otras unidades absolutas [unidades (in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/es/docs/Web/CSS/length) se definen en términos del número de píxeles CSS y pretenden que todo sea de 96 ppp. Los desarrolladores evitan las unidades absolutas porque generalmente es mejor utilizar unidades derivadas del tamaño de fuente o de las dimensiones del viewport/contenedor. Las unidades incompatibles pueden romper una disposición si el usuario ajusta el multiplicador de `Accesibilidad > Tamaño de texto`, acerca el navegador, o rota su dispositivo. Cabe decir que debes hacer todas estas cosas antes de lanzar tu sitio.
+> Otras unidades absolutas [in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/es/docs/Web/CSS/length) se definen en términos del número de píxeles CSS y pretenden que todo es de 96 ppp. Los desarrolladores evitan las unidades absolutas porque generalmente es mejor utilizar unidades que se derivan del tamaño de fuente o de las dimensiones del viewport o contenedor. Las unidades desajustadas pueden romper un diseño si el usuario ajusta su multiplicador de `Accesibilidad > Tamaño del texto`, acerca o aleja el navegador o rota su dispositivo. Innecesario decir que deberías hacer todas estas cosas antes de lanzar tu sitio.
diff --git a/src/content/docs/es/specify-width-height.md b/src/content/docs/es/specify-width-height.md
index 74d5c12..553cbce 100644
--- a/src/content/docs/es/specify-width-height.md
+++ b/src/content/docs/es/specify-width-height.md
@@ -1,17 +1,16 @@
---
-title: Usa ancho y altura
-description: Beneficios de usar los atributos de ancho y altura en el código HTML
-taskInputHash: c1840d188c21b829
+title: Usar el ancho y el alto
+description: Beneficios de utilizar los atributos de ancho y alto en el código HTML
+taskInputHash: 3a697d0f6acf5385
lang: es
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-¿Por qué deberías poner ancho y altura en el HTML?
+¿Por qué deberías poner el ancho y alto en el HTML?
-> Se recomienda poner los atributos de ancho y altura en el código HTML de las imágenes porque ayuda al navegador web a conocer el tamaño de la imagen antes de que se cargue por completo. Esto permite al navegador reservar la cantidad apropiada de espacio en la página web para la imagen, lo que evita que el contenido salte mientras se carga la imagen.
+> Se recomienda poner los atributos de ancho y alto en el código HTML para imágenes porque ayuda al navegador web a conocer el tamaño de la imagen antes de que se cargue por completo. Esto permite que el navegador reserve la cantidad adecuada de espacio en la página web para la imagen, lo que evita que el contenido se desplace mientras se carga la imagen.
>
-> Además, especificar los atributos de ancho y altura para las imágenes también puede ayudar a mejorar el rendimiento general de la página web. Cuando un navegador conoce el tamaño de una imagen de antemano, puede calcular con mayor precisión la cantidad de espacio necesario para mostrar la imagen y evitar reflujo innecesarios o repintados del contenido a medida que se carga.
+> Además, especificar los atributos de ancho y alto para las imágenes también puede ayudar a mejorar el rendimiento general de la página web. Cuando un navegador conoce el tamaño de una imagen de antemano, puede calcular con mayor precisión la cantidad de espacio necesaria para mostrar la imagen y evitar reflujo o repintado innecesario del contenido a medida que se carga.
>
-> En general, el uso de los atributos de ancho y altura en el código HTML de las imágenes puede mejorar la experiencia del usuario al hacer que el contenido se cargue más rápido y reducir las fallas visuales.
+> En general, el uso de los atributos de ancho y alto en el código HTML para imágenes puede mejorar la experiencia del usuario al hacer que el contenido se cargue más rápido y reducir las fallas visuales.
diff --git a/src/content/docs/es/when-to-use-picture.md b/src/content/docs/es/when-to-use-picture.md
index 2c26e07..8f89eb6 100644
--- a/src/content/docs/es/when-to-use-picture.md
+++ b/src/content/docs/es/when-to-use-picture.md
@@ -1,23 +1,21 @@
---
-title: Cuándo usar el elemento
-description: Explica en qué situaciones se debe usar el elemento
-taskInputHash: 97265d75f3229eaa
+title: Cuándo utilizar el elemento
+description: Explica en qué situaciones se debe utilizar el elemento
+taskInputHash: 51d7f5ab633e52ac
lang: es
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-27'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-El elemento `picture` se utiliza para proporcionar múltiples versiones de una imagen y determina cuál versión de la imagen mostrar en función de ciertas condiciones. Es particularmente útil para optimizar imágenes para diferentes tamaños de pantalla y resoluciones, y se utiliza comúnmente en diseño web adaptable.
+El elemento `picture` se utiliza para proporcionar múltiples versiones de una imagen y determinar qué versión de la imagen mostrar según ciertas condiciones. Es particularmente útil para optimizar las imágenes para diferentes tamaños y resoluciones de pantalla, y es comúnmente utilizado en diseño web receptivo.
+Aquí hay algunos escenarios específicos en los que es posible que desee utilizar el elemento `picture`:
-Aquí hay algunos escenarios específicos donde podría querer utilizar el elemento `picture`:
+* **Pantallas retina:** Las pantallas de alta densidad como las pantallas retina de Apple tienen una mayor densidad de píxeles, lo que significa que las imágenes pueden verse borrosas o pixeladas si no están optimizadas para una alta resolución. Con el elemento `picture`, puede proporcionar una versión de la imagen que tenga el doble de píxeles que la versión normal, para que se vea clara y nítida en las pantallas retina.
-* **Pantallas Retina:** Las pantallas de alta densidad como las pantallas Retina de Apple tienen una mayor densidad de píxeles, lo que significa que las imágenes pueden verse borrosas o pixeladas si no se optimizan para una resolución alta. Con el elemento `picture`, puede proporcionar una versión de la imagen que tiene el doble de píxeles que la versión normal, para que se vea nítida y clara en las pantallas Retina.
+* **Diferentes relaciones de aspecto:** Si está diseñando un sitio que necesita mostrar imágenes con diferentes relaciones de aspecto (como paisaje vs. retrato), puede utilizar el elemento `picture` para proporcionar diferentes versiones de la imagen que estén optimizadas para cada relación de aspecto.
-* **Diferentes relaciones de aspecto:** Si está diseñando un sitio que debe mostrar imágenes con diferentes relaciones de aspecto (como paisaje vs. retrato), puede utilizar el elemento `picture` para proporcionar diferentes versiones de la imagen que estén optimizadas para cada relación de aspecto.
+* **Limitaciones de ancho de banda:** Las imágenes pueden ser archivos grandes que ocupan mucho ancho de banda, especialmente en dispositivos móviles. Con el elemento `picture`, puede proporcionar versiones más pequeñas de la imagen para dispositivos con pantallas más pequeñas o conexiones a Internet más lentas, lo que puede ayudar a reducir los tiempos de carga de la página.
-* **Limitaciones de ancho de banda:** Las imágenes pueden ser archivos grandes que ocupan mucho ancho de banda, especialmente en dispositivos móviles. Con el elemento `picture`, puede proporcionar versiones más pequeñas de la imagen para dispositivos con pantallas más pequeñas o conexiones de Internet más lentas, lo que puede ayudar a reducir los tiempos de carga de la página.
+* **Diseños dirigidos por arte:** A veces, es posible que desee presentar una imagen de una cierta manera dependiendo del diseño del resto de la página. Por ejemplo, es posible que desee mostrar un primer plano de la cara de una persona en dispositivos móviles, pero una toma más amplia en dispositivos de escritorio. El elemento `picture` le permite proporcionar diferentes versiones de la imagen que estén optimizadas para diseños diferentes.
-* **Diseños dirigidos por arte:** A veces puede desear presentar una imagen de cierta manera según el diseño del resto de la página. Por ejemplo, puede querer mostrar un primer plano del rostro de una persona en dispositivos móviles, pero una toma más amplia en dispositivos de escritorio. El elemento `picture` le permite proporcionar diferentes versiones de la imagen que estén optimizadas para diferentes diseños.
-
-En general, el elemento `picture` es una herramienta poderosa que puede ayudarlo a optimizar sus imágenes para una variedad de casos de uso y asegurarse de que se vean geniales sin importar en qué dispositivo o tamaño de pantalla se estén viendo.
+En general, el elemento `picture` es una herramienta poderosa que puede ayudarlo a optimizar sus imágenes para una variedad de casos de uso y garantizar que se vean geniales sin importar en qué dispositivo o tamaño de pantalla se estén viendo.
diff --git a/src/content/docs/es/width-density.md b/src/content/docs/es/width-density.md
index 123cd3f..e5c483c 100644
--- a/src/content/docs/es/width-density.md
+++ b/src/content/docs/es/width-density.md
@@ -1,47 +1,46 @@
---
title: Descriptores de ancho y densidad
description: Ejemplos de uso de descriptores de ancho y densidad en `srcset`
-taskInputHash: 74b8eb2869d948a0
+taskInputHash: 57ff1c28d63c24f5
lang: es
-ignore: '/* cSpell:locale es,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Entendiendo los descriptores de ancho (w) y densidad (x) en `srcset`. Usa ejemplos y Markdown.
+Entendiendo los descriptores de ancho (`w`) y densidad (`x`) en `srcset`. Usa ejemplos y usa Markdown.
-> `srcset` es un atributo HTML que permite a los desarrolladores proporcionar múltiples fuentes de imágenes con diferentes resoluciones o densidades de píxeles, y permitir que el navegador seleccione la imagen adecuada en función de las características de visualización del dispositivo. El atributo `srcset` utiliza una combinación de la `URL` y los descriptores `w` o `x` para especificar las imágenes.
-## Descriptores de Ancho (`w`)
+> `Srcset` es un atributo HTML que permite a los desarrolladores proporcionar múltiples fuentes de imagen con diferentes resoluciones o densidades de píxeles, y permitir que el navegador seleccione la imagen adecuada según las características de visualización del dispositivo. El atributo `srcset` utiliza una combinación de la URL y los descriptores `w` o `x` para especificar las imágenes.
-> El descriptor `w` se utiliza para especificar el ancho de una imagen en píxeles. Se utiliza cuando se desea proporcionar al navegador las dimensiones de una imagen para que pueda elegir la imagen adecuada para el espacio disponible en la pantalla.
+## Descriptor de ancho (`w`)
-> La sintaxis para utilizar el descriptor `w` en `srcset` es la siguiente:
+> El descriptor `w` se utiliza para especificar el ancho de una imagen en píxeles. Se utiliza cuando queremos proporcionar al navegador las dimensiones de una imagen para que pueda elegir la imagen adecuada para el espacio de pantalla disponible.
+
+> La sintaxis para usar el descriptor `w` en `srcset` es la siguiente:
```html
+ alt="Ejemplo de imagen">
```
+> En el ejemplo anterior, hemos proporcionado al navegador tres imágenes y sus correspondientes anchuras en píxeles. El navegador seleccionará la imagen con el ancho más cercano al espacio de pantalla disponible.
-> En el ejemplo anterior, hemos proporcionado al navegador tres imágenes y sus anchos correspondientes en píxeles. El navegador seleccionará la imagen con el ancho más cercano al espacio disponible en la pantalla.
-## Descriptores de Densidad (`x`)
+## Descriptor de densidad (`x`)
-> El descriptor `x` se utiliza para especificar la densidad de píxeles de una imagen, que es la relación de píxeles físicos a píxeles CSS. Se utiliza cuando se desea proporcionar al navegador diferentes versiones de la misma imagen con diferentes densidades de píxeles.
+> El descriptor `x` se utiliza para especificar la densidad de píxeles de una imagen, que es la relación entre píxeles físicos y píxeles CSS. Se utiliza cuando queremos proporcionar al navegador diferentes versiones de la misma imagen con diferentes densidades de píxeles.
-> La sintaxis para utilizar el descriptor `x` en `srcset` es la siguiente:
+> La sintaxis para usar el descriptor `x` en `srcset` es la siguiente:
```html
+ alt="Ejemplo de imagen">
```
+> En el ejemplo anterior, hemos proporcionado al navegador tres imágenes y sus correspondientes densidades de píxeles. El navegador seleccionará la imagen con la densidad de píxeles más cercana a la pantalla del dispositivo.
-> En el ejemplo anterior, hemos proporcionado al navegador tres imágenes y sus diferentes densidades de píxeles correspondientes. El navegador seleccionará la imagen con la densidad de píxeles más cercana a la pantalla del dispositivo.
-
-> Es importante notar que los descriptores `w` y `x` se pueden usar juntos en el mismo atributo `srcset` para proporcionar al navegador más opciones para elegir.
+> Ten en cuenta que los descriptores `w` y `x` se pueden usar juntos en el mismo atributo `srcset` para proporcionar al navegador más opciones para elegir.
diff --git a/src/content/docs/fr/_roundtrip_breakpoints.txt b/src/content/docs/fr/_roundtrip_breakpoints.txt
index ff1e785..47adae1 100644
--- a/src/content/docs/fr/_roundtrip_breakpoints.txt
+++ b/src/content/docs/fr/_roundtrip_breakpoints.txt
@@ -1,43 +1,44 @@
---
title: Breakpoints and Images
description: >-
- Why some breakpoints (but not all) matter for your images
-taskInputHash: b9dc6c0d27d7c8b7
+ Why some (but not all) breakpoints are important for your images
+taskInputHash: 3a845882fe3c1d34
lang: en
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Context
-Small screens and large monitors require different layouts. For the needs of `srcset` and `sizes`, we need to know when the layout changes.
+Small and large screens require different layouts. For the use of `srcset` and `sizes`, we need to know when the layout changes.
-Web developers need to decide what to reduce, hide or move on small screens - or more commonly, what to stretch, reveal or add on large screens. They also have very little information. Is the user on a tablet or a phone in landscape mode - or a small browser window?
+Web developers need to decide what to reduce, hide, or move on small screens - or more commonly, what to enlarge, reveal, or add on large screens. They also have very little information. Is the user on a tablet or a phone in landscape mode - or in a small browser window?
-We need to choose an arbitrary viewport width where the layout changes. This is called a **breakpoint**. It's an arbitrary number of CSS pixels ([not device pixels](/en/pixels-not-pixels)). Polypane has an [excellent article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) on commonly used breakpoints.
+We need to choose an arbitrary display port width at which the layout changes. This is called a **breakpoint**. It is an arbitrary number of CSS pixels ([not device pixels](/en/css-and-dppx/)). Polypane has an [excellent article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) on commonly used breakpoints.
-Some images (like logos or icons or buttons) may be immune to layout changes caused by these breakpoints (and be fine with [srcset density descriptors](/en/density-descriptors)).
+Some images (such as logos, icons, or buttons) may be immune to layout changes caused by these breakpoints (and be fine with [density descriptors in srcset](/en/density-descriptors)).
-Images in the main content will be constrained by the size of their container. Typically, the main content area of a page will be limited to some width on larger screens, a `max-width`, but on smaller screens, the main content area will fill the entire viewport.
+Main content images will be limited by their container size. Typically, the main content area of a page will be limited to a certain width on larger screens, with a `max-width`, but on smaller screens, the main content area will fill the entire display port.
-If you have more than one column at certain breakpoints, it will be harder to calculate effective sizing rules, because the percentage of the viewport width the image occupies will change.
+If you have more than one column at certain breakpoints, it will be harder to calculate effective sizing rules, because the percentage of the display port width that the image occupies will change.
-### The easy way
+### The easy method
-That being said, don't think too much about this. You'll probably be just fine with the following approximation method:
+That being said, don't worry too much. You'll probably be fine with the following approximation:
-1. At what size does the main column (or image container) stop growing? Up to this viewport width, we can use `100vw` for the `sizes` attribute of the image to say that the image takes up 100% of the viewport width.
-2. What is the maximum width the container ever reaches? We can set that as a fixed width for everything else.
+1. At what size does the main column (or image container) stop growing? Up to this display port width, we can use `100vw` as the `sizes` attribute of the image to say that the image occupies 100% of the display port width.
+2. What is the maximum width that the container reaches? We can set that as a fixed width for everything else.
-If your answer to 1 was 700px and your answer to 2 was 800px, you can use the following `sizes` attribute:
+If your answer to the first question is 700px and your answer to the second is 800px, you can use the following `sizes` attribute:
```html
-
+
```
-> You thought the browser might handle all these calculations for us based on CSS. Unfortunately, browsers are aggressively keen to choose an image URL *before* downloading style sheets. We have to do the calculations ourselves, and they're well worth it if we don't get them perfectly.
+
+
+> You might think that the browser could handle all these calculations for us based on CSS. Unfortunately, browsers are aggressively eager to pick an image URL *before* style sheets are downloaded. So we have to do the calculations ourselves, and they're perfectly happy with that if we don't do it perfectly.
=====================
Content prompt used:
@@ -51,7 +52,7 @@ Also carefully translate the title and description for the article; do not use &
2. Why some (but not all) breakpoints matter for your images
Metadata returned1. Points de rupture et images
-2. Pourquoi certains points de rupture (mais pas tous) sont importants pour vos images
+2. Pourquoi certains (mais pas tous) des points de rupture sont importants pour vos images
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/fr/_roundtrip_browser-picks-srcset.txt b/src/content/docs/fr/_roundtrip_browser-picks-srcset.txt
index e7bf5a7..3a24418 100644
--- a/src/content/docs/fr/_roundtrip_browser-picks-srcset.txt
+++ b/src/content/docs/fr/_roundtrip_browser-picks-srcset.txt
@@ -1,60 +1,63 @@
---
-title: How does the browser choose between images listed in the srcset attribute
-description: How the browser chooses between images listed in the srcset attribute
-taskInputHash: df517c34368094dc
+title: How the browser chooses
+description: >-
+ How the browser chooses between images listed in the srcset attribute
+taskInputHash: 526ee912d47a6d62
lang: en
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-How does the browser choose between images listed in the `srcset` attribute? Here is a step-by-step guide with examples for width and density specifications for how the browser decides based on support and viewport.
+How does the browser choose between images listed in the srcset attribute? Here is a step-by-step guide, with examples for width and density specifications, and how the browser decides based on the device and display.
-- When you use the `srcset` attribute in HTML, the browser uses a set of rules to choose the most appropriate image from a provided list of sources. These rules depend on both the display characteristics of the device (resolution, pixel density) and the viewport size. The `srcset` attribute allows you to specify different images based on width (using the `w` descriptor) or pixel density (using the `x` descriptor). Let's review each case with examples.
+- When using the `srcset` attribute in HTML, the browser follows a set of rules to choose the most appropriate image from a list of provided sources. These rules depend on both the display characteristics of the device (resolution, pixel density) and the size of the display window. The `srcset` attribute allows you to specify different images based on width (using the `w` descriptor) or pixel density (using the `x` descriptor). Let's look at each case with examples.
-1. Width Descriptor (`w`):
+1. Width descriptor (`w`):
-Assuming we have the following `srcset` attribute:
+Suppose we have the following `srcset` attribute:
-```html
+```html
```
-The browser follows these steps:
+The browser will follow these steps:
-a. Determine the DPR (Device Pixel Ratio) of the device. For example, a regular screen has a DPR of 1, while a high-resolution (Retina) screen has a DPR of 2 or more.
+a. Determine the device's DPR (Device Pixel Ratio). For example, a standard screen has a DPR of 1, while a high-resolution screen (Retina) has a DPR of 2 or more.
-b. Calculate the effective width for each image in `srcset`. Multiply the width descriptor by DPR. For a device with a DPR of 1:
+b. Calculate the effective width of each image in the `srcset`. Multiply the width descriptor by the DPR. For a device with a DPR of 1:
-- example-small.jpg: 400 * 1 = 400 px
-- example-medium.jpg: 800 * 1 = 800 px
-- example-large.jpg: 1600 * 1 = 1600 px
+- example-small.jpg: 400 * 1 = 400px
+- example-medium.jpg : 800 * 1 = 800px
+- example-large.jpg : 1600 * 1 = 1600px
-c. Compare the effective widths with the viewport width. Suppose the viewport width is 420 px. The browser selects the smallest image with an effective width greater than or equal to the viewport width. In this case, it selects `example-medium.jpg`.
+c. Compare the effective widths with the width of the display window. Suppose the display window width is 420px. The browser will choose the smallest image with an effective width greater than or equal to the display window width. In this case, it will select `example-medium.jpg`.
-2. Pixel Density Descriptor (`x`):
+2. Pixel density descriptor (`x`):
-Assuming we have the following `srcset` attribute:
+Suppose we have the following `srcset` attribute:
-```html
+```html
-
```
-The browser follows these steps:
+The browser will follow these steps:
-a. Determine the DPR (Device Pixel Ratio) of the device. For example, a regular screen has a DPR of 1, while a high-resolution (Retina) screen has a DPR of 2 or more.
+a. Determine the device's DPR (Device Pixel Ratio). For example, a standard screen has a DPR of 1, while a high-resolution screen (Retina) has a DPR of 2 or more.
-b. Compare the device DPR with the `x` descriptors in `srcset`. In this case, we have three images with the following descriptors:
+b. Compare the device's DPR with the `x` descriptors in the `srcset`. In this case, we have three images with the following descriptors:
- example-1x.jpg: 1x
- example-2x.jpg: 2x
- example-3x.jpg: 3x
-c. Choose the image with the `x` descriptor that is closest to the device DPR. For a device with a DPR of 1, the browser selects `example-1x.jpg`. For a device with a DPR of 2, it selects `example-2x.jpg`, and so on.
+c. Choose the image with the `x` descriptor that is closest to the device's DPR. For a device with a DPR of 1, the browser will select `example-1x.jpg`. For a device with a DPR of 2, it will choose `example-2x.jpg`, and so on.
-It is important to note that you can also use the `sizes` attribute in combination with the `srcset` attribute to provide more information about how the image will be displayed at different viewport widths. This is especially useful when using the width descriptor (`w`). Here is an example:
+It is important to note that you can also use the `sizes` attribute in combination with the `srcset` attribute to provide more information on how the image will be displayed at different display window sizes. This is particularly useful when using the width descriptor (`w`). Here's an example:
-```html
+```html
sizes
-description: An efficient and subjective guide for responsive images in 2023
-taskInputHash: 2f3bd9fa4d308fbc
-lang: en
-ignore: '/* cSpell:locale fr,en*/'
+title: srcset and sizes attributes
+description: An efficient and partial guide to responsive images for 2023
+taskInputHash: ddea94bb07b6ac00
+lang: fr
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-**An efficient and subjective guide for images in 2023**
+**An Efficient and Partial Guide to Images for 2023**
+
+Check the sidebar for an in-depth dive. This is the fast reference to upgrading those ` ` tags to handle modern devices in all their various sizes and pixel densities. You should [know that pixels != pixels](/fr/pixels-pas-pixels) and that `devicePixelRatio` is more likely to be around 3.875 than 1:1. Modern phones pretend to be a width of 320 to 428 pixels for legibility (in CSS pixels), but have many device pixels per CSS pixel.
-Check the sidebar for a deeper dive. This is a quick reference for updating those ` ` tags to support modern devices in all their varied sizes and pixel densities. You need to [know that pixels != pixels](/en/pixels-not-pixels) and `devicePixelRatio` is more likely to be around 3.875 than 1:1. Modern phones claim a width of 320 to 428 pixels for legibility (in CSS pixels), but have many pixels per CSS pixel.
+>If your image never changes size, regardless of the size of the browser window, you should use a [density descriptor instead](/fr/descripteurs-de-densité). This often suits logos, icons, and buttons.
-> If your image never changes size, no matter how small the browser window gets, you should use a [density descriptor instead](/en/density-descriptors). This often suits logos, icons, and buttons.
+Do you know what your [breakpoints](/fr/points-de-rupture) are? You'll need those numbers to refine the solution below - at a minimum the breakpoint width of the viewport where the main content area ceases to grow.
-Do you know what your [breakpoints](/en/breakpoints) are? You'll need those numbers to refine the solution below, at minimum the display width breakpoint where the main content area stops growing.
-### The easy way
+### The Easy Method
```html
-
-
-
-
-
-```
+
+
+
+
+
+
+```
+
+{{The original text uses "tailles" (sizes) in the title, which in this context would have a better translation to "attributes". Also, "points de rupture" (literally "breaking points") should be translated as "breakpoints".}}
=====================
Content prompt used:
@@ -48,8 +51,8 @@ Also carefully translate the title and description for the article; do not use &
1. srcset & sizes
2. An Efficient and Opinionated Guide to Responsive Images for 2023
-Metadata returned1. srcset et tailles d'
-2. Un guide efficace et subjectif pour les images réactives en 2023
+Metadata returned1. srcset et les tailles des balises
+2. Un guide efficace et partial sur les images réactives pour 2023
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/fr/_roundtrip_lighthouse-performance-test.txt b/src/content/docs/fr/_roundtrip_lighthouse-performance-test.txt
index fa42679..7a79e38 100644
--- a/src/content/docs/fr/_roundtrip_lighthouse-performance-test.txt
+++ b/src/content/docs/fr/_roundtrip_lighthouse-performance-test.txt
@@ -1,28 +1,27 @@
---
title: Testing Performance with Lighthouse
description: Steps for testing a website's performance using Lighthouse
-taskInputHash: 8e6d39610c052ea3
+taskInputHash: 41b20c3fed2f0d3d
lang: en
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
How to test your site's performance with Lighthouse?
-> Lighthouse is a tool that can be used to measure performance, accessibility, and other aspects of a website. To test your website's performance with Lighthouse, follow these steps:
+> Lighthouse is a tool that can be used to measure the performance, accessibility, and other aspects of a website. To test your website's performance with Lighthouse, follow these steps:
>
> 1\. Open the Google Chrome web browser and go to the page you want to test.
>
-> 2\. Click on the three dots in the upper right corner of the browser window, then select "More tools" and then "Developer tools" or simply use the keyboard shortcut "Ctrl+Shift+I" (Windows, Linux) or "Command+Option+I" (macOS).
+> 2\. Click on the three dots in the top right corner of the browser window and select "More tools" and then "Developer tools," or simply use the keyboard shortcut "Ctrl+Shift+I" (Windows, Linux) or "Command+Option+I" (macOS).
>
-> 3\. In the Developer Tools panel, click on the Lighthouse icon located on the left side of the panel or press "Ctrl+Shift+P" (Windows, Linux) or "Command+Shift+P" (macOS) to open the Command Menu, then type "Lighthouse" and select "Generate report".
+> 3\. In the developer tools panel, click on the Lighthouse icon on the left side of the panel or press "Ctrl+Shift+P" (Windows, Linux) or "Command+Shift+P" (macOS) to open the command menu, then type "Lighthouse" and select "Generate report."
>
-> 4\. In the Lighthouse dialog box, select the relevant performance and other options you want to test, then click "Generate report".
+> 4\. In the Lighthouse dialog box, select the performance and other relevant options you want to test, then click "Generate report."
>
-> 5\. After Lighthouse finishes its analysis, you will see a report with scores and recommendations for improving the performance, accessibility, and other areas of your website.
+> 5\. After Lighthouse has finished its analysis, you will see a report with scores and recommendations for improving the performance, accessibility, and other areas of your website.
>
-> By following these steps, you can use Lighthouse to test and optimize your website's performance, which can help improve its user experience and ranking in search engines.
+> By following these steps, you can use Lighthouse to test and optimize your site's performance, which can help improve the user experience and rankings in search engines.
=====================
Content prompt used:
@@ -35,8 +34,8 @@ Also carefully translate the title and description for the article; do not use &
1. Test performance with Lighthouse
2. Steps on how to test a website's performance using Lighthouse
-Metadata returned1. Tester les performances avec Lighthouse
-2. Étapes pour tester les performances d'un site web en utilisant Lighthouse
+Metadata returned1. Tester la performance avec Lighthouse
+2. Étapes pour tester la performance d'un site Web en utilisant Lighthouse
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/fr/_roundtrip_picture-examples.txt b/src/content/docs/fr/_roundtrip_picture-examples.txt
index 10f80e1..d04f926 100644
--- a/src/content/docs/fr/_roundtrip_picture-examples.txt
+++ b/src/content/docs/fr/_roundtrip_picture-examples.txt
@@ -1,16 +1,16 @@
---
-title: Examples using the element
+title: Examples of using the element
description: >-
- Provides examples using the element, for responsive images, art direction, and different image formats.
-taskInputHash: 9b88532218099931
+ Provides examples of using the element for adaptive images, art direction, and different image formats.
+taskInputHash: 612a054526e2fcb5
lang: en
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Here are some examples of using the `` element with explanations:
+Here are some examples of using the `` element and their explanations:
-1. Example for responsive images:
+1. Example for adaptive images:
```html
@@ -20,7 +20,7 @@ Here are some examples of using the `` element with explanations:
```
-Explanation: In this example, the `` element is used to provide different image sources for different screen sizes. The `` elements specify different image sources using the "srcset" attribute and the "media" attribute to specify the conditions under which each source should be used. The ` ` element is used as a fallback for older browsers or when the conditions specified in the `` elements are not met.
+Explanation: In this example, the `` element is used to provide different image sources for different screen sizes. The `` elements specify different image sources using the "srcset" attribute and the "media" attribute to specify the conditions under which each source should be used. The ` ` element is used as a fallback solution for older browsers or when the conditions specified in the `` elements are not met.
2. Example for art direction:
@@ -46,15 +46,15 @@ Explanation: In this example, the `` element is used to provide differe
```
-Explanation: In this example, the `` element is used to provide different image sources for different image formats. The `` elements specify different image sources using the "srcset" attribute and the "type" attribute to specify the image format. The ` ` element is used as a fallback for older browsers that do not support the `` element.
+Explanation: In this example, the `` element is used to provide different image sources for different image formats. The `` elements specify different image sources using the "srcset" attribute and the "type" attribute to specify the image format. The ` ` element is used as a fallback solution for older browsers that do not support the `` element.
## Breakpoints
-In responsive design, breakpoints are used to define when the layout of a website or application should change based on the size of the display window. Breakpoints are usually defined using media queries in CSS, which apply different styles based on the screen width. These breakpoints can be used in conjunction with the `` element to provide different image sources for different screen sizes.
+In adaptive design, breakpoints are used to define when the layout of a website or application should change based on the size of the display window. Breakpoints are typically defined using media queries in CSS, which apply different styles based on screen width. These breakpoints can be used in conjunction with the `` element to provide different image sources for different screen sizes.
-For example, in the first example above, we used the `media` attribute to specify the screen width under which each source should be used. When the screen width is greater than or equal to 768 pixels, the `image-large.jpg` source will be used; when the screen width is greater than or equal to 480 pixels but less than 768 pixels, the `image-medium.jpg` source will be used; and when the screen width is less than 480 pixels, the `image-small.jpg` source will be used. This allows us to provide appropriately sized images for each device, thus reducing page loading times and improving the user experience.
+For example, in the first example above, we used the `media` attribute to specify the screen width under which each source should be used. When the screen width is greater than or equal to 768 pixels, the `image-large.jpg` source will be used; when the screen width is greater than or equal to 480 pixels but less than 768 pixels, the `image-medium.jpg` source will be used; and when the screen width is less than 480 pixels, the `image-small.jpg` source will be used. This allows us to provide appropriately sized images for each device, reducing page load times and improving the user experience.
-Breakpoints can be defined at any screen size, and multiple breakpoints can be used to create layouts that respond to a wide range of devices. By combining breakpoints with the `` element, you can create flexible and responsive designs that look great on any device.
+Breakpoints can be set at any screen size, and multiple breakpoints can be used to create layouts that adapt to a wide range of devices. By combining breakpoints with the `` element, it is possible to create flexible and adaptive designs that look great on any device.
=====================
Content prompt used:
@@ -67,8 +67,8 @@ Also carefully translate the title and description for the article; do not use &
1. Examples using element
2. Provides examples using the element, for responsive images, art direction and different image formats
-Metadata returned1. Exemples utilisant l'élément
-2. Fournit des exemples utilisant l'élément , pour des images réactives, la direction artistique et différents formats d'image.
+Metadata returned1. Exemples d'utilisation de l'élément
+2. Fournit des exemples d'utilisation de l'élément pour les images adaptatives, la direction artistique et les différents formats d'image.
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/fr/_roundtrip_pixels-not-pixels.txt b/src/content/docs/fr/_roundtrip_pixels-not-pixels.txt
index 991ed47..6c02998 100644
--- a/src/content/docs/fr/_roundtrip_pixels-not-pixels.txt
+++ b/src/content/docs/fr/_roundtrip_pixels-not-pixels.txt
@@ -1,23 +1,22 @@
---
title: px ≠ pixels
-description: Screen pixels ≠ browser pixels ≠ image pixels
-taskInputHash: 7dfd1c9b5c352f62
+description: Device pixels ≠ browser pixels ≠ image pixels
+taskInputHash: b505a8e4cccad4f3
lang: en
-ignore: '/* cSpell:locale fr,en*/'
sidebar_sort_priority: 900
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-### Screen pixels ≠ browser pixels ≠ image pixels
+### Device pixels ≠ browser pixels ≠ image pixels
-Thanks to Apple, CSS and HTML pixels (`px`) **almost always correspond to multiple screen/printer pixels**. The devicePixelRatio of my phone is 3.875; [what about yours?](https://www.mydevice.io/)
+Thanks to Apple, CSS and HTML pixels (`px`) **almost always correspond to more than one device/printer pixel**. My phone's devicePixelRatio is 3.875; [what's yours?](https://www.mydevice.io/)
-The devicePixelRatio of my desktop computer changes based on the zoom level of the browser, but is by default 1.5 (my display scaling is 150% in `System > Display`).
+My desktop computer's devicePixelRatio varies with each zoom level of the browser but is by default 1.5 (my display scaling factor `System > Display > Scale` being at 150%).
-Image files (with the exception of SVGs) decode into a grid of pixels. **Getting a perfect one-to-one match between image pixels and screen pixels is surprisingly difficult, but with `srcset`, you can get pretty close, and a little bit of JavaScript can adjust the size of the HTML element after loading if you have a valid reason to require a perfect match, although these dark arts will not be revealed here.**
+Image files (except for SVG) are broken down into a grid of pixels. **It's surprisingly difficult to display image pixels perfectly matched at a 1:1 ratio with device pixels, but with `srcset`, you can get *close enough***, and a bit of JavaScript can adjust the size of the HTML element after loading if you have very good reasons for needing that perfect mapping, although such prohibited practices won't be revealed here.
-> Other absolute units ([in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/en-US/docs/Web/CSS/Length_and_Distance) are defined based on the number of CSS pixels and assume everything is at 96dpi. Developers tend to avoid absolute units since it's generally better to use units derived from font size or viewport/container dimensions. Incompatible units can break layout if the user increases text size, zooms the browser, or rotates their device. Needless to say, you should do all these things before publishing your site.
+> Other absolute units [units (in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/en-US/docs/Web/CSS/length) are defined in relation to the number of CSS pixels and pretend that everything is 96dpi. Developers avoid absolute units because it's generally better to use units derived from font size or view/container dimensions. Incompatible units can break a layout if the user adjusts the `Accessibility > Text size` multiplier, zooms the browser, or rotates their device. Needless to say, you should do all these things before delivering your site.
=====================
Content prompt used:
@@ -30,8 +29,8 @@ Also carefully translate the title and description for the article; do not use &
1. px ≠ pixels
2. Device px ≠ browser px ≠ image px
-Metadata returned1. px ≠ pixels
-2. Pixels d'écran ≠ pixels de navigateur ≠ pixels d'image
+Metadata returned1. px ≠ pixels
+2. Pixels d'appareil ≠ pixels de navigateur ≠ pixels d'image
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/fr/_roundtrip_specify-width-height.txt b/src/content/docs/fr/_roundtrip_specify-width-height.txt
index 64e5c23..4a1e304 100644
--- a/src/content/docs/fr/_roundtrip_specify-width-height.txt
+++ b/src/content/docs/fr/_roundtrip_specify-width-height.txt
@@ -1,21 +1,20 @@
---
title: Using Width and Height
description: >-
- Benefits of using width and height attributes in HTML code
-taskInputHash: b09c49dc5d3a4a2d
+ Advantages of using the width and height attributes in HTML code
+taskInputHash: 710d960e0aef9b37
lang: en
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Why should you include width and height in HTML?
+Why should you put width and height in HTML?
-> It is recommended to include width and height attributes in the HTML code of images because it helps the web browser to know the size of the image before it is fully loaded. This allows the browser to reserve the appropriate space on the web page for the image, which prevents content from jumping around while the image is loading.
+> It is recommended to include the width and height attributes in the HTML code of images because it helps the web browser to know the size of the image before it is fully loaded. This allows the browser to reserve the appropriate space on the web page for the image, preventing content from jumping around while the image loads.
>
-> Additionally, specifying width and height attributes for images can also contribute to overall web page performance. When a browser knows the size of an image in advance, it can accurately calculate the amount of space needed to display the image and avoid unnecessary reloads or redraws of content during loading.
+> Additionally, specifying the width and height attributes for images can also help improve the overall performance of the web page. When a browser knows the size of an image in advance, it can accurately calculate the amount of space needed to display the image and avoid unnecessary reflows or repaints of content during its loading.
>
-> In summary, the use of width and height attributes in HTML code for images can improve the user experience by speeding up content loading and reducing visual issues.
+> Overall, using the width and height attributes in HTML code for images can improve the user experience by speeding up content loading and reducing visual defects.
=====================
Content prompt used:
diff --git a/src/content/docs/fr/_roundtrip_when-to-use-picture.txt b/src/content/docs/fr/_roundtrip_when-to-use-picture.txt
index 1e5b634..6a1bba3 100644
--- a/src/content/docs/fr/_roundtrip_when-to-use-picture.txt
+++ b/src/content/docs/fr/_roundtrip_when-to-use-picture.txt
@@ -1,25 +1,24 @@
---
title: When to use the element
-description: Explains in which situations you should use the element
-taskInputHash: 745796c8db3f3527
+description: Explains in what situations you should use the element
+taskInputHash: f314b7d0da04a16a
lang: en
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-27'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-The `picture` element is used to provide multiple versions of an image and determine which version of the image to display based on certain conditions. It is particularly useful for optimizing images for different screen sizes and resolutions, and is commonly used in responsive web design.
-Here are some specific scenarios where you would want to use the `picture` element:
+The `picture` element is used to provide multiple versions of an image and determine which version of the image to display based on certain conditions. It's especially useful for optimizing images for different sizes and screen resolutions, and is commonly used in responsive web design.
+Here are some specific scenarios where you might want to use the `picture` element:
-* **Retina Displays:** High-density displays such as Apple's Retina displays have a higher pixel density, which means that images may look blurry or pixelated if they are not optimized for high resolution. With the `picture` element, you can provide a version of the image that has twice as many pixels as the normal version, making it sharp and clear on Retina displays.
+* **Retina displays:** High-density displays such as Apple's Retina displays have a higher pixel density, which means that images may appear blurry or pixelated if they are not optimized for high resolution. With the `picture` element, you can provide a version of the image that has twice as many pixels as the normal version, so that it appears sharp and clear on Retina displays.
-* **Different Aspect Ratios:** If you are designing a site that needs to display images with different aspect ratios (such as landscape vs. portrait), you can use the `picture` element to provide different versions of the image optimized for each aspect ratio.
+* **Different aspect ratios:** If you are designing a website that needs to display images with different aspect ratios (such as landscape versus portrait), you can use the `picture` element to provide different versions of the image that are optimized for each aspect ratio.
-* **Bandwidth Limitations:** Images can be large files that consume a lot of bandwidth, especially on mobile devices. With the `picture` element, you can provide smaller versions of the image for devices with smaller screens or slower internet connections, which can help reduce page load times.
+* **Bandwidth limitations:** Images can be large files that take up a lot of bandwidth, especially on mobile devices. With the `picture` element, you can provide smaller versions of the image for devices with smaller screens or slower internet connections, which can help reduce page loading times.
-* **Art Direction Layout:** Sometimes, you may want to present an image in a certain way based on the layout of the rest of the page. For example, you may want to display a close-up of a person's face on mobile devices, but a wider shot on desktop computers. The `picture` element allows you to provide different versions of the image optimized for different layouts.
+* **Art-directed layouts:** Sometimes you may want to present an image in a certain way based on the layout of the rest of the page. For example, you may want to show a close-up of a person's face on mobile devices, but a wider shot on desktop devices. The `picture` element allows you to provide different versions of the image that are optimized for different layouts.
-Overall, the `picture` element is a powerful tool that can help you optimize your images for a variety of use cases and ensure that they look great no matter which device or screen size they are displayed on.
+Overall, the `picture` element is a powerful tool that can help you optimize your images for a variety of use cases and ensure that they look great, no matter what device or screen size they are viewed on.
=====================
Content prompt used:
diff --git a/src/content/docs/fr/_roundtrip_width-density.txt b/src/content/docs/fr/_roundtrip_width-density.txt
index 23025c9..73123ac 100644
--- a/src/content/docs/fr/_roundtrip_width-density.txt
+++ b/src/content/docs/fr/_roundtrip_width-density.txt
@@ -1,16 +1,15 @@
---
title: Width and Density Descriptors
description: Examples of using width and density descriptors in `srcset`
-taskInputHash: 569fd1065931e1e0
+taskInputHash: d4db50f5267305d1
lang: en
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Understanding the width (`w`) and density (`x`) descriptors in `srcset`. Use examples and Markdown.
+Understand the width (`w`) and density (`x`) descriptors in `srcset`. Use examples and Markdown.
->`srcset` is an HTML attribute that allows developers to provide multiple image sources with different resolutions or pixel densities, and let the browser select the appropriate image based on the display characteristics of the device. The `srcset` attribute uses a combination of the `URL` and `w` or `x` descriptors to specify the images.
+> `srcset` is an HTML attribute that allows developers to provide multiple image sources with different resolutions or pixel densities and let the browser select the appropriate image based on the display characteristics of the device. The `srcset` attribute uses a combination of the URL and the `w` or `x` descriptors to specify images.
## Width Descriptor (`w`)
@@ -26,7 +25,7 @@ Understanding the width (`w`) and density (`x`) descriptors in `srcset`. Use exa
alt="Example Image">
```
-> In the example above, we have provided the browser with three images and their corresponding widths in pixels. The browser will select the image with the closest width to the available screen space.
+> In the above example, we have provided the browser with three images and their corresponding widths in pixels. The browser will select the image with the closest width to the available screen space.
## Density Descriptor (`x`)
@@ -42,9 +41,9 @@ Understanding the width (`w`) and density (`x`) descriptors in `srcset`. Use exa
alt="Example Image">
```
-> In the example above, we have provided the browser with three images and their corresponding pixel densities. The browser will select the image with the closest pixel density to the device's screen.
+> In the above example, we have provided the browser with three images with their corresponding pixel densities. The browser will select the image with the closest pixel density to the device screen.
-> Note that the `w` and `x` descriptors can be used together in the same `srcset` attribute to provide the browser with more options for selection.
+> Note that the `w` and `x` descriptors can be used together in the same `srcset` attribute to provide the browser with more options.
=====================
Content prompt used:
@@ -58,7 +57,7 @@ Also carefully translate the title and description for the article; do not use &
2. Examples of using width and density descriptors in `srcset`
Metadata returned1. Descripteurs de largeur et de densité
-2. Exemples d'utilisation des descripteurs de largeur et de densité dans `srcset`
+2. Exemples d'utilisation de descripteurs de largeur et de densité dans `srcset`
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/fr/breakpoints.md b/src/content/docs/fr/breakpoints.md
index eb1cb9e..aada03a 100644
--- a/src/content/docs/fr/breakpoints.md
+++ b/src/content/docs/fr/breakpoints.md
@@ -1,43 +1,42 @@
---
title: Points de rupture et images
description: >-
- Pourquoi certains points de rupture (mais pas tous) sont importants pour vos
- images
-taskInputHash: b9dc6c0d27d7c8b7
+ Pourquoi certains (mais pas tous) des points de rupture sont importants pour
+ vos images
+taskInputHash: 3a845882fe3c1d34
lang: fr
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Contexte
-Les petits écrans et les grands moniteurs nécessitent des mises en page différentes. Pour les besoins de `srcset` et de `sizes`, nous devons savoir à quel moment la mise en page change.
+Les petits et grands écrans nécessitent des mises en page différentes. Pour l'utilisation de `srcset` et de `sizes`, nous devons savoir à quel moment la mise en page change.
-Les développeurs Web doivent décider ce qu'il faut réduire, masquer ou déplacer sur les petits écrans - ou plus couramment, ce qu'il faut étendre, révéler ou ajouter sur les grands écrans. Ils disposent également de très peu d'informations. L'utilisateur est-il sur une tablette ou un téléphone en mode paysage - ou une petite fenêtre de navigateur ?
+Les développeurs web doivent décider quoi réduire, cacher ou déplacer sur les petits écrans - ou plus couramment, quoi agrandir, révéler ou ajouter sur les grands écrans. Ils ont également très peu d'informations. L'utilisateur est-il sur une tablette ou un téléphone en mode paysage - ou dans une petite fenêtre de navigateur ?
-Nous devons choisir une largeur de viewport arbitraire où la mise en page change. Cela s'appelle un **point de rupture**. C'est un nombre arbitraire de pixels CSS ([pas de pixels d'appareil](/fr/pixels-not-pixels)). Polypane a un [excellent article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) sur les points de rupture couramment utilisés.
+Nous devons choisir une largeur de port d'affichage arbitraire où la mise en page change. Cela s'appelle un **point de rupture**. C'est un nombre arbitraire de pixels CSS ([pas de pixels de l'appareil](/fr/pixels-pas-pixels)). Polypane a un [excellent article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) sur les points de rupture couramment utilisés.
-Certaines images (comme les logos ou les icônes ou les boutons) pourraient être immunisées contre les changements de mise en page causés par ces points de rupture (et être fines avec les [descripteurs de densité srcset](/fr/density-descriptors)).
+Certaines images (comme les logos, les icônes ou les boutons) pourraient être immunisées contre les changements de mise en page causés par ces points de rupture (et être fines avec [des descripteurs de densité srcset](/fr/descripteurs-de-densite)).
-Les images du contenu principal seront limitées par la taille de leur conteneur. En règle générale, la zone de contenu principal d'une page sera limitée à une certaine largeur sur les plus grands écrans, une `max-width`, mais sur les petits écrans, la zone de contenu principal remplira l'ensemble du viewport.
+Les images principales de contenu seront limitées par la taille de leur conteneur. Typiquement, la zone de contenu principal d'une page sera limitée à une certaine largeur sur les plus grands écrans, à une `max-width`, mais sur les petits écrans, la zone de contenu principal remplira l'ensemble du port d'affichage.
-Si vous avez plus d'une colonne à certains points de rupture, il sera plus difficile de calculer les règles de dimensionnement effectives, car le pourcentage de la largeur du viewport que l'image occupe changera.
+Si vous avez plus d'une colonne à certains points de rupture, il sera plus difficile de calculer les règles de dimensionnement effectives, car le pourcentage de la largeur du port d'affichage que l'image occupe changera.
### La méthode facile
-Cela étant dit, ne pensez pas trop à cela. Vous serez probablement très bien avec la méthode d'approximation suivante :
+Cela dit, ne vous posez pas trop de questions. Vous serez probablement très bien avec l'approximation suivante :
-1. À quelle taille la colonne principale (ou le conteneur de l'image) cesse-t-elle de croître ? Jusqu'à cette largeur de viewport, nous pouvons utiliser `100vw` pour l'attribut `sizes` de l'image pour dire que l'image occupe 100 % de la largeur du viewport.
-2. Quelle est la largeur maximale que le conteneur atteint jamais ? Nous pouvons fixer cela comme une largeur fixe pour tout le reste.
+1. À quelle taille la colonne principale (ou le conteneur d'image) cesse-t-elle de grandir ? Jusqu'à cette largeur de port d'affichage, nous pouvons utiliser `100vw` pour l'attribut `sizes` de l'image pour dire que l'image occupe 100% de la largeur du port d'affichage.
+2. Quelle est la largeur maximale que le conteneur atteint ? Nous pouvons définir cela comme une largeur fixe pour tout le reste.
-Si votre réponse à 1 était 700px et votre réponse à 2 était 800px, vous pouvez utiliser l'attribut `sizes` suivant :
+Si votre réponse à la première question est 700px et votre réponse à la deuxième est 800px, vous pouvez utiliser l'attribut `sizes` suivant :
```html
-
+
```
-> Vous pensiez que le navigateur pourrait gérer toutes ces calculs pour nous en fonction des CSS. Malheureusement, les navigateurs sont agressivement désireux de choisir une URL d'image *avant* le téléchargement des feuilles de style. Nous devons donc effectuer les calculs nous-mêmes, et ils méritent bien si nous ne les obtenons pas parfaitement.
+> Vous penseriez que le navigateur pourrait gérer toutes ces calculs pour nous en fonction du CSS. Malheureusement, les navigateurs sont agressivement désireux de choisir une URL d'image *avant* que les feuilles de style soient téléchargées. Nous devons donc faire les calculs nous-mêmes, et ça leur va très bien si nous ne le faisons pas parfaitement.
diff --git a/src/content/docs/fr/browser-picks-srcset.md b/src/content/docs/fr/browser-picks-srcset.md
index 42e2dfc..e7048b0 100644
--- a/src/content/docs/fr/browser-picks-srcset.md
+++ b/src/content/docs/fr/browser-picks-srcset.md
@@ -3,69 +3,68 @@ title: Comment le navigateur choisit
description: >-
Comment le navigateur choisit entre les images répertoriées dans l'attribut
srcset
-taskInputHash: 1ad7279bfa827840
+taskInputHash: 526ee912d47a6d62
lang: fr
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Comment le navigateur choisit-il entre les images répertoriées dans l'attribut srcset ? Voici les étapes détaillées, avec des exemples pour les spécifications de largeur et de densité et comment le navigateur décide en fonction de l'appareil et du viewport.
-
-- Lorsque l'on utilise l'attribut `srcset` en HTML, le navigateur utilise un ensemble de règles pour choisir l'image la plus appropriée à partir d'une liste de sources fournies. Ces règles dépendent à la fois des caractéristiques d'affichage de l'appareil (résolution, densité de pixels) et de la taille du viewport. L'attribut `srcset` vous permet de spécifier des images différentes en fonction de la largeur (en utilisant le descripteur `w`) ou de la densité de pixels (en utilisant le descripteur `x`). Examinons chaque cas avec des exemples.
-
-1. Descripteur de largeur (`w`):
-
-Supposons que nous avons l'attribut `srcset` suivant :
-
-```html
-
-
-
-```
-
-Le navigateur suivra ces étapes:
-
-a. Déterminer le DPR (Device Pixel Ratio) de l'appareil. Par exemple, un écran standard a un DPR de 1, tandis qu'un écran haute résolution (Retina) a un DPR de 2 ou plus.
-
-b. Calculer la largeur effective pour chaque image dans le `srcset`. Multipliez le descripteur de largeur par le DPR. Pour un appareil avec un DPR de 1:
-
-- example-small.jpg: 400 \* 1 = 400px
-
-- example-medium.jpg: 800 \* 1 = 800px
-
-- example-large.jpg: 1600 \* 1 = 1600px
-
-c. Comparer les largeurs effectives avec la largeur du viewport. Supposons que la largeur du viewport est de 420px. Le navigateur choisira l'image la plus petite avec une largeur effective supérieure ou égale à la largeur de viewport. Dans ce cas, il sélectionnera `example-medium.jpg`.
-
-2. Descripteur de densité de pixels (`x`):
-
-Supposons que nous avons l'attribut `srcset` suivant :
-
-```html
-
-
-
-```
-
-Le navigateur suivra ces étapes:
-
-a. Déterminer le DPR (Device Pixel Ratio) de l'appareil. Par exemple, un écran standard a un DPR de 1, tandis qu'un écran haute résolution (Retina) a un DPR de 2 ou plus.
-
-b. Comparer le DPR de l'appareil avec le descripteur `x` dans le `srcset`. Dans ce cas, nous avons trois images avec les descripteurs suivants :
-
-- example-1x.jpg: 1x
-
-- example-2x.jpg: 2x
-
-- example-3x.jpg: 3x
-
-c. Choisir l'image avec le descripteur `x` le plus proche du DPR de l'appareil. Pour un appareil avec un DPR de 1, le navigateur sélectionnera `example-1x.jpg`. Pour un appareil avec un DPR de 2, il choisira `example-2x.jpg`, et ainsi de suite.
-
-Il est important de noter que l'on peut également utiliser l'attribut `sizes` en combinaison avec l'attribut `srcset` pour fournir plus d'informations sur la façon dont l'image sera affichée à différentes largeurs de viewport. Ceci est particulièrement utile lors de l'utilisation du descripteur de largeur (`w`). Voici un exemple :
-
-```html
-
-
+
+```
+
+Le navigateur suivra ces étapes :
+
+a. Déterminer le DPR (Ratio de pixels du dispositif) de l'appareil. Par exemple, un écran standard a un DPR de 1, tandis qu'un écran haute résolution (Retina) a un DPR de 2 ou plus.
+
+b. Calculer la largeur effective de chaque image dans le `srcset`. Multipliez le descripteur de largeur par le DPR. Pour un appareil avec un DPR de 1 :
+
+- example-small.jpg : 400 * 1 = 400px
+
+- example-medium.jpg : 800 * 1 = 800px
+
+- example-large.jpg : 1600 * 1 = 1600px
+
+c. Comparez les largeurs effectives avec la largeur de la fenêtre d'affichage. Supposons que la largeur de la fenêtre d'affichage soit de 420px. Le navigateur choisira la plus petite image ayant une largeur effective supérieure ou égale à la largeur de la fenêtre d'affichage. Dans ce cas, il sélectionnera `example-medium.jpg`.
+
+1\. Descripteur de densité de pixels (`x`):
+
+Supposons que nous avons l'attribut `srcset` suivant :
+
+```html
+
+
+
+```
+
+Le navigateur suivra ces étapes :
+
+a. Déterminer le DPR (Ratio de pixels du dispositif) de l'appareil. Par exemple, un écran standard a un DPR de 1, tandis qu'un écran haute résolution (Retina) a un DPR de 2 ou plus.
+
+b. Comparez le DPR du dispositif avec les descripteurs `x` dans le `srcset`. Dans ce cas, nous avons trois images avec les descripteurs suivants :
+
+- example-1x.jpg : 1x
+
+- example-2x.jpg : 2x
+
+- example-3x.jpg : 3x
+
+c. Choisissez l'image avec le descripteur `x` qui est le plus proche du DPR du dispositif. Pour un dispositif avec un DPR de 1, le navigateur sélectionnera `example-1x.jpg`. Pour un dispositif avec un DPR de 2, il choisira `example-2x.jpg`, et ainsi de suite.
+
+Il est important de noter que vous pouvez également utiliser l'attribut `sizes` en combinaison avec l'attribut `srcset` pour fournir plus d'informations sur la façon dont l'image sera affichée à différentes tailles de fenêtre d'affichage. Ceci est particulièrement utile lorsque vous utilisez le descripteur de largeur (`w`). Voici un exemple :
+
+```html
+
+
```
-
-
-Cet exemple de balisage comprend :
+Cet exemple de balisage comprend :
- **src** : La source d'image par défaut, affichée si le navigateur ne prend pas en charge srcset.
- **srcset** : La liste des sources d'image et leurs descripteurs de densité (1x, 2x, 3x). Le navigateur choisira l'image la plus appropriée en fonction de l'affichage de l'utilisateur.
- **alt** : Une description de l'image à des fins d'accessibilité.
-
-Et voilà ! Vous avez implémenté avec succès srcset avec descripteurs de densité, améliorant les performances et l'expérience utilisateur de votre site Web.
+Et c'est tout ! Vous avez mis en œuvre srcset avec descripteurs de densité avec succès, améliorant ainsi les performances et l'expérience utilisateur de votre site Web.
diff --git a/src/content/docs/fr/introduction.md b/src/content/docs/fr/introduction.md
index c65a76f..a51267b 100644
--- a/src/content/docs/fr/introduction.md
+++ b/src/content/docs/fr/introduction.md
@@ -1,21 +1,20 @@
---
-title: srcset et tailles d'
-description: Un guide efficace et subjectif pour les images réactives en 2023
-taskInputHash: 2f3bd9fa4d308fbc
+title: srcset et les tailles des balises
+description: Un guide efficace et partial sur les images réactives pour 2023
+taskInputHash: ddea94bb07b6ac00
lang: fr
-ignore: '/* cSpell:locale fr,en*/'
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-**Un guide efficace et subjectif pour les images en 2023**
+**Un guide efficace et partial sur les images pour 2023**
-Consultez la barre latérale pour une plongée plus profonde. Ceci est une référence rapide pour mettre à jour ces balises ` ` pour prendre en charge les appareils modernes dans toutes leurs tailles et densités de pixels variées. Vous devez [savoir que les pixels != pixels](/en/pixels-not-pixels) et `devicePixelRatio` est plus susceptible d'être autour de 3,875 que de 1:1. Les téléphones modernes prétendent avoir une largeur de 320 à 428 pixels pour la lisibilité (en pixels CSS), mais ont de nombreux pixels par pixel CSS.
+Consultez la barre latérale pour une plongée en profondeur. Ceci est la référence rapide pour mettre à niveau ces balises ` ` pour gérer les appareils modernes dans toutes leurs tailles et densités de pixels différentes. Vous devriez [savoir que des pixels != pixels](/fr/pixels-pas-pixels) et que `devicePixelRatio` est plus susceptible d'être d'environ 3,875 que de 1:1. Les téléphones modernes se font passer pour une largeur de 320 à 428 pixels pour la lisibilité (en pixels CSS), mais ont de nombreux pixels de périphérique par pixel CSS.
-> Si votre image ne change jamais de taille, peu importe la taille réduite de la fenêtre du navigateur, vous devriez utiliser un [descripteur de densité à la place](/en/density-descriptors). Ceci convient souvent aux logos, aux icônes et aux boutons.
+> Si votre image ne change jamais de taille, quelle que soit la taille de la fenêtre du navigateur, vous devriez utiliser un [descripteur de densité à la place](/fr/descripteurs-de-densité). Cela convient souvent pour les logos, les icônes et les boutons.
-Savez-vous ce que sont vos [points de rupture](/en/breakpoints)? Vous aurez besoin de ces numéros pour affiner la solution ci-dessous, et au minimum le point de rupture de la largeur d'affichage où la zone de contenu principal cesse de s'agrandir.
+Savez-vous ce que sont vos [points de rupture](/fr/points-de-rupture) ? Vous aurez besoin de ces nombres pour affiner la solution ci-dessous - et au minimum le point de rupture de largeur de la fenêtre d'affichage où la zone de contenu principal cesse de croître.
### La méthode facile
@@ -29,12 +28,11 @@ Savez-vous ce que sont vos [points de rupture](/en/breakpoints)? Vous aurez beso
img.jpg?format=webp&w=1600 1600w,
img.jpg?format=webp&w=2000 2000w"
- sizes="(max-width: 700px) 100vw, 800px" alt="Chien faisant de la bicyclette" />
+ sizes="(max-width: 700px) 100vw, 800px" alt="Chien faisant du vélo" />
+ Et que sous cette largeur de fenêtre d'affichage, cette image prend 100% de la largeur, mais
+ lorsque la fenêtre d'affichage est plus grande, l'image est limitée à 800 pixels CSS -->
-
+
```
diff --git a/src/content/docs/fr/lighthouse-performance-test.md b/src/content/docs/fr/lighthouse-performance-test.md
index 9a772bf..dcaf6ea 100644
--- a/src/content/docs/fr/lighthouse-performance-test.md
+++ b/src/content/docs/fr/lighthouse-performance-test.md
@@ -1,25 +1,24 @@
---
-title: Tester les performances avec Lighthouse
-description: Étapes pour tester les performances d'un site web en utilisant Lighthouse
-taskInputHash: 8e6d39610c052ea3
+title: Tester la performance avec Lighthouse
+description: Étapes pour tester la performance d'un site Web en utilisant Lighthouse
+taskInputHash: 41b20c3fed2f0d3d
lang: fr
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Comment tester les performances de votre site avec Lighthouse?
+Comment tester la performance de votre site avec Lighthouse?
-> Lighthouse est un outil qui peut être utilisé pour mesurer les performances, l'accessibilité et d'autres aspects d'un site web. Pour tester les performances de votre site web avec Lighthouse, suivez ces étapes:
+> Lighthouse est un outil qui peut être utilisé pour mesurer la performance, l'accessibilité et d'autres aspects d'un site Web. Pour tester la performance de votre site Web avec Lighthouse, suivez ces étapes:
>
-> 1\. Ouvrez le navigateur Web Google Chrome et accédez à la page que vous souhaitez tester.
+> 1\. Ouvrez le navigateur web Google Chrome et accédez à la page que vous souhaitez tester.
>
> 2\. Cliquez sur les trois points en haut à droite de la fenêtre du navigateur, puis sélectionnez "Autres outils" et ensuite "Outils de développement" ou utilisez simplement le raccourci clavier "Ctrl+Shift+I" (Windows, Linux) ou "Command+Option+I" (macOS).
>
-> 3\. Dans le panneau Outils de développement, cliquez sur l'icône Lighthouse située sur le côté gauche du panneau ou appuyez sur "Ctrl+Shift+P" (Windows, Linux) ou "Command+Shift+P" (macOS) pour ouvrir le menu Commandes, puis tapez "Lighthouse" et sélectionnez "Générer un rapport".
+> 3\. Dans le panneau des outils de développement, cliquez sur l'icône Lighthouse située à gauche du panneau ou appuyez sur "Ctrl+Shift+P" (Windows, Linux) ou "Command+Shift+P" (macOS) pour ouvrir le menu des commandes, puis tapez "Lighthouse" et sélectionnez "Générer un rapport".
>
-> 4\. Dans la boîte de dialogue Lighthouse, sélectionnez les options de performances et autres pertinentes que vous souhaitez tester, puis cliquez sur "Générer un rapport".
+> 4\. Dans la boîte de dialogue Lighthouse, sélectionnez les options de performance et d'autres options pertinentes que vous souhaitez tester, puis cliquez sur "Générer un rapport".
>
-> 5\. Après que Lighthouse a terminé son analyse, vous verrez un rapport avec des scores et des recommandations pour améliorer les performances, l'accessibilité et d'autres domaines de votre site web.
+> 5\. Après que Lighthouse ait terminé son analyse, vous verrez un rapport avec les scores et les recommandations pour améliorer la performance, l'accessibilité et d'autres domaines de votre site Web.
>
-> En suivant ces étapes, vous pouvez utiliser Lighthouse pour tester et optimiser les performances de votre site web, ce qui peut aider à améliorer son expérience utilisateur et son classement dans les moteurs de recherche.
+> En suivant ces étapes, vous pouvez utiliser Lighthouse pour tester et optimiser la performance de votre site, ce qui peut aider à améliorer l'expérience utilisateur et les classements dans les moteurs de recherche.
diff --git a/src/content/docs/fr/picture-examples.md b/src/content/docs/fr/picture-examples.md
index 5fe61a0..1d7cd65 100644
--- a/src/content/docs/fr/picture-examples.md
+++ b/src/content/docs/fr/picture-examples.md
@@ -1,17 +1,17 @@
---
-title: Exemples utilisant l'élément
+title: Exemples d'utilisation de l'élément
description: >-
- Fournit des exemples utilisant l'élément , pour des images réactives,
- la direction artistique et différents formats d'image.
-taskInputHash: 9b88532218099931
+ Fournit des exemples d'utilisation de l'élément pour les images
+ adaptatives, la direction artistique et les différents formats d'image.
+taskInputHash: 612a054526e2fcb5
lang: fr
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Voici quelques exemples d'utilisation de l'élément `` avec leurs explications :
+Voici quelques exemples d'utilisation de l'élément `` et leurs explications :
-1\. Exemple pour les images réactives :
+1. Exemple pour les images adaptatives :
```html
@@ -21,9 +21,9 @@ Voici quelques exemples d'utilisation de l'élément `` avec leurs expl
```
-Explication : Dans cet exemple, l'élément `` est utilisé pour fournir différentes sources d'image pour différentes tailles d'écran. Les éléments `` spécifient les différentes sources d'image en utilisant l'attribut "srcset" et l'attribut "media" pour spécifier les conditions dans lesquelles chaque source doit être utilisée. L'élément ` ` est utilisé comme substitution pour les anciens navigateurs ou lorsque les conditions spécifiées dans les éléments `` ne sont pas remplies.
+Explication : Dans cet exemple, l'élément `` est utilisé pour fournir différentes sources d'image pour différentes tailles d'écran. Les éléments `` spécifient les différentes sources d'image en utilisant l'attribut "srcset" et l'attribut "media" pour spécifier les conditions dans lesquelles chaque source doit être utilisée. L'élément ` ` est utilisé comme solution de repli pour les navigateurs plus anciens ou lorsque les conditions spécifiées dans les éléments `` ne sont pas remplies.
-2\. Exemple pour la direction artistique :
+2. Exemple pour la direction artistique :
```html
@@ -35,7 +35,7 @@ Explication : Dans cet exemple, l'élément `` est utilisé pour fourni
Explication : Dans cet exemple, l'élément `` est utilisé pour fournir différentes sources d'image en fonction de l'orientation de l'appareil. L'élément `` avec l'attribut "media" défini sur "(orientation: landscape)" spécifie une source d'image pour les écrans larges, tandis que l'élément ` ` spécifie une source d'image pour les écrans en portrait.
-3\. Exemple pour différents formats d'image :
+3. Exemple pour différents formats d'image :
```html
@@ -47,12 +47,12 @@ Explication : Dans cet exemple, l'élément `` est utilisé pour fourni
```
-Explication : Dans cet exemple, l'élément `` est utilisé pour fournir différentes sources d'image pour différents formats d'image. Les éléments `` spécifient différentes sources d'image en utilisant l'attribut "srcset" et l'attribut "type" pour spécifier le format d'image. L'élément ` ` est utilisé comme substitution pour les anciens navigateurs qui ne supportent pas l'élément ``.
+Explication : Dans cet exemple, l'élément `` est utilisé pour fournir différentes sources d'image pour différents formats d'image. Les éléments `` spécifient différentes sources d'image en utilisant l'attribut "srcset" et l'attribut "type" pour spécifier le format d'image. L'élément ` ` est utilisé comme solution de repli pour les navigateurs plus anciens qui ne prennent pas en charge l'élément ``.
## Points de rupture
-En design réactif, les points de rupture sont utilisés pour définir quand la mise en page d'un site web ou d'une application doit changer en fonction de la taille de la fenêtre d'affichage. Les points de rupture sont généralement définis à l'aide de requêtes média en CSS, qui appliquent différents styles en fonction de la largeur de l'écran. Ces points de rupture peuvent être utilisés en conjonction avec l'élément `` pour fournir différentes sources d'image pour différentes tailles d'écran.
+En matière de conception adaptative, des points de rupture sont utilisés pour définir quand la mise en page d'un site Web ou d'une application doit changer en fonction de la taille de la fenêtre d'affichage. Les points de rupture sont généralement définis à l'aide de requêtes multimédias en CSS, qui appliquent différents styles en fonction de la largeur de l'écran. Ces points de rupture peuvent être utilisés en conjonction avec l'élément `` pour fournir différentes sources d'image pour différentes tailles d'écran.
-Par exemple, dans le premier exemple ci-dessus, nous avons utilisé l'attribut `media` pour spécifier la largeur d'écran sous laquelle chaque source doit être utilisée. Lorsque la largeur d'écran est supérieure ou égale à 768 pixels, la source `image-large.jpg` sera utilisée ; lorsque la largeur d'écran est supérieure ou égale à 480 pixels mais inférieure à 768 pixels, la source `image-medium.jpg` sera utilisée ; et lorsque la largeur d'écran est inférieure à 480 pixels, la source `image-small.jpg` sera utilisée. Cela nous permet de fournir des images aux tailles appropriées pour chaque appareil, réduisant ainsi les temps de chargement des pages et améliorant l'expérience utilisateur.
+Par exemple, dans le premier exemple ci-dessus, nous avons utilisé l'attribut `media` pour spécifier la largeur de l'écran sous laquelle chaque source doit être utilisée. Lorsque la largeur de l'écran est supérieure ou égale à 768 pixels, la source `image-large.jpg` sera utilisée ; lorsque la largeur de l'écran est supérieure ou égale à 480 pixels mais inférieure à 768 pixels, la source `image-medium.jpg` sera utilisée ; et lorsque la largeur de l'écran est inférieure à 480 pixels, la source `image-small.jpg` sera utilisée. Cela nous permet de fournir des images de taille appropriée pour chaque appareil, réduisant les temps de chargement des pages et améliorant l'expérience de l'utilisateur.
-Les points de rupture peuvent être définis à n'importe quelle taille d'écran, et plusieurs points de rupture peuvent être utilisés pour créer des mises en page qui répondent à un large éventail d'appareils. En combinant les points de rupture avec l'élément ``, vous pouvez créer des designs flexibles et réactifs qui sont superbes sur n'importe quel appareil.
+Les points de rupture peuvent être définis à n'importe quelle taille d'écran, et plusieurs points de rupture peuvent être utilisés pour créer des mises en page qui s'adaptent à une large gamme de dispositifs. En combinant les points de rupture avec l'élément ``, il est possible de créer des designs flexibles et adaptatifs qui ont fière allure sur n'importe quel appareil.
diff --git a/src/content/docs/fr/pixels-not-pixels.md b/src/content/docs/fr/pixels-not-pixels.md
index f6eef92..0460375 100644
--- a/src/content/docs/fr/pixels-not-pixels.md
+++ b/src/content/docs/fr/pixels-not-pixels.md
@@ -1,20 +1,19 @@
---
title: px ≠ pixels
-description: Pixels d'écran ≠ pixels de navigateur ≠ pixels d'image
-taskInputHash: 7dfd1c9b5c352f62
+description: Pixels d'appareil ≠ pixels de navigateur ≠ pixels d'image
+taskInputHash: b505a8e4cccad4f3
lang: fr
-ignore: '/* cSpell:locale fr,en*/'
sidebar_sort_priority: 900
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-### Pixels d'écran ≠ pixels de navigateur ≠ pixels d'image
+### Pixels d'appareil ≠ pixels de navigateur ≠ pixels d'image
-Grâce à Apple, les pixels CSS et HTML (`px`) **correspondent presque toujours à plusieurs pixels d'écran/imprimante**. Le devicePixelRatio de mon téléphone est de 3,875 ; [et le vôtre ?](https://www.mydevice.io/)
+Grâce à Apple, les pixels CSS et HTML (`px`) **correspondent presque toujours à plusieurs pixels d'appareil/imprimante**. Le devicePixelRatio de mon téléphone est de 3,875 ; [et le vôtre ?](https://www.mydevice.io/)
-Le devicePixelRatio de mon ordinateur de bureau change en fonction du zoom du navigateur, mais est par défaut de 1,5 (ma sacle d'affichage est de 150 % dans `Système > Affichage`).
+Le devicePixelRatio de mon ordinateur de bureau varie à chaque zoom du navigateur, mais est par défaut à 1,5 (mon taux d'affichage `Système > Affichage > Échelle` étant de 150 %).
-Les fichiers image (à l'exception des SVG) se décodent en une grille de pixels. **Il est étonnamment difficile d'obtenir une correspondance parfaite entre les pixels d'image et les pixels d'écran avec un rapport 1 : 1 - mais avec `srcset`, on peut s'en approcher**, et un peu de Javascript peut ajuster la taille de l'élément HTML après le chargement si vous avez une raison valable de nécessiter une correspondance parfaite, bien que ces arts interdites ne seront pas révélées ici.
+Les fichiers image (à l'exception de SVG) se découpent en une grille de pixels. **Il est étonnamment difficile d'afficher les pixels d'image parfaitement ajustés à un rapport 1:1 avec les pixels de l'appareil - mais avec `srcset`, vous pouvez vous en *approcher suffisamment***, et un peu de Javascript peut ajuster la taille de l'élément HTML après le chargement si vous avez des raisons vraiment justifiées d'avoir besoin de ce mappage parfait, bien que de telles pratiques prohibées ne seront pas révélées ici.
-> Les autres unités absolues ([in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/fr/docs/Web/CSS/Longueurs-et-dimensions_typographiques) sont définies en fonction du nombre de pixels CSS et prétendent que tout est à 96 dpi. Les développeurs évitent les unités absolues car il est généralement préférable d'utiliser des unités dérivées de la taille de police ou des dimensions de la fenêtre d'affichage/du conteneur. Des unités incompatibles peuvent casser la mise en page si l'utilisateur augmente la taille de texte, zoome le navigateur ou pivote son appareil. Inutile de dire qu'il faut faire toutes ces choses avant de publier votre site.
+> Les autres unités absolues [unités (in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/fr/docs/Web/CSS/longueur) sont définies en fonction du nombre de pixels CSS et font semblant que tout est à 96dpi. Les développeurs évitent les unités absolues car il est généralement préférable d'utiliser des unités dérivées de la taille de police ou des dimensions de la vue/conteneur. Les unités incompatibles peuvent casser une mise en page si l'utilisateur ajuste le multiplicateur `Accessibilité > Taille du texte`, zoome le navigateur ou fait pivoter son appareil. Inutile de dire que vous devriez faire toutes ces choses avant de livrer votre site.
diff --git a/src/content/docs/fr/specify-width-height.md b/src/content/docs/fr/specify-width-height.md
index e5da3af..b973569 100644
--- a/src/content/docs/fr/specify-width-height.md
+++ b/src/content/docs/fr/specify-width-height.md
@@ -3,17 +3,16 @@ title: Utiliser la largeur et la hauteur
description: >-
Avantages de l'utilisation des attributs de largeur et de hauteur dans le code
HTML
-taskInputHash: b09c49dc5d3a4a2d
+taskInputHash: 710d960e0aef9b37
lang: fr
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Pourquoi devriez-vous mettre la largeur et la hauteur dans le HTML ?
+Pourquoi devriez-vous mettre la largeur et la hauteur dans le HTML ?
-> Il est recommandé de mettre les attributs de largeur et de hauteur dans le code HTML des images car cela aide le navigateur web à connaître la taille de l'image avant qu'elle ne soit entièrement chargée. Cela permet au navigateur de réserver l'espace approprié sur la page Web pour l'image, ce qui empêche le contenu de sauter pendant que l'image se charge.
+> Il est recommandé de mettre les attributs de largeur et de hauteur dans le code HTML des images car cela aide le navigateur Web à connaître la taille de l'image avant qu'elle ne soit complètement chargée. Cela permet au navigateur de réserver l'espace approprié sur la page Web pour l'image, ce qui empêche le contenu de sauter pendant que l'image se charge.
>
-> De plus, spécifier les attributs de largeur et de hauteur pour les images peut également contribuer à améliorer les performances globales de la page web. Lorsqu'un navigateur connaît la taille d'une image à l'avance, il peut calculer avec précision la quantité d'espace nécessaire pour afficher l'image et éviter des recharges ou des redessinages inutiles du contenu lors du chargement.
+> De plus, la spécification des attributs de largeur et de hauteur pour les images peut également contribuer à améliorer la performance globale de la page Web. Lorsqu'un navigateur connaît la taille d'une image à l'avance, il peut calculer avec précision la quantité d'espace nécessaire pour afficher l'image, et éviter des reflows ou des repaints inutiles du contenu lors de son chargement.
>
-> En somme, l'utilisation des attributs de largeur et de hauteur dans le code HTML des images peut améliorer l'expérience utilisateur en accélérant le chargement du contenu et en réduisant les problèmes visuels.
+> Dans l'ensemble, l'utilisation des attributs de largeur et de hauteur dans le code HTML pour les images peut améliorer l'expérience utilisateur en accélérant le chargement du contenu et en réduisant les défauts visuels.
diff --git a/src/content/docs/fr/when-to-use-picture.md b/src/content/docs/fr/when-to-use-picture.md
index cac06f6..040ad2c 100644
--- a/src/content/docs/fr/when-to-use-picture.md
+++ b/src/content/docs/fr/when-to-use-picture.md
@@ -1,22 +1,21 @@
---
title: Quand utiliser l'élément
description: Explique dans quelles situations vous devriez utiliser l'élément
-taskInputHash: 745796c8db3f3527
+taskInputHash: f314b7d0da04a16a
lang: fr
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-27'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-L'élément `picture` est utilisé pour fournir plusieurs versions d'une image et détermine quelle version de l'image afficher en fonction de certaines conditions. Il est particulièrement utile pour optimiser des images pour différentes tailles d'écran et résolutions, et est couramment utilisé dans la conception de sites Web adaptatifs.
-Voici quelques scénarios spécifiques où vous voudriez utiliser l'élément `picture` :
+L'élément `picture` est utilisé pour fournir plusieurs versions d'une image et détermine quelle version de l'image afficher en fonction de certaines conditions. Il est particulièrement utile pour optimiser les images pour différentes tailles et résolutions d'écran, et est couramment utilisé dans la conception web responsive.
+Voici quelques scénarios spécifiques où vous pourriez vouloir utiliser l'élément `picture` :
-* **Écrans Retina :** Les écrans haute densité tels que les écrans Retina d'Apple ont une densité de pixels plus élevée, ce qui signifie que les images peuvent sembler floues ou pixelisées si elles ne sont pas optimisées pour le haute résolution. Avec l'élément `picture`, vous pouvez fournir une version de l'image qui a deux fois plus de pixels que la version normale, ce qui la rend nette et claire sur les écrans Retina.
+* **Écrans Retina :** Les écrans haute densité tels que les écrans Retina d'Apple ont une densité de pixels plus élevée, ce qui signifie que les images peuvent sembler floues ou pixelisées si elles ne sont pas optimisées pour une résolution élevée. Avec l'élément `picture`, vous pouvez fournir une version de l'image qui comporte deux fois plus de pixels que la version normale, de sorte qu'elle soit nette et claire sur les écrans Retina.
-* **Différents ratios d'aspect :** Si vous concevez un site qui doit afficher des images avec différents ratios d'aspect (comme paysage contre portrait), vous pouvez utiliser l'élément `picture` pour fournir différentes versions de l'image optimisées pour chaque ratio d'aspect.
+* **Différents ratios d'aspect :** Si vous concevez un site qui doit afficher des images avec différents ratios d'aspect (comme paysage versus portrait), vous pouvez utiliser l'élément `picture` pour fournir différentes versions de l'image qui sont optimisées pour chaque ratio d'aspect.
-* **Limitations de la bande passante:** Les images peuvent être de grands fichiers qui consomment beaucoup de bande passante, surtout sur les appareils mobiles. Avec l'élément `picture`, vous pouvez fournir des versions plus petites de l'image pour les appareils avec des écrans plus petits ou des connexions Internet plus lentes, ce qui peut aider à réduire les temps de chargement des pages.
+* **Limitations de la bande passante :** Les images peuvent être des fichiers volumineux qui occupent beaucoup de bande passante, surtout sur les appareils mobiles. Avec l'élément `picture`, vous pouvez fournir des versions plus petites de l'image pour les appareils avec des écrans plus petits ou des connexions Internet plus lentes, ce qui peut contribuer à réduire les temps de chargement de la page.
-* **Mise en page d'art directionnel :** Parfois, vous pouvez vouloir présenter une image d'une certaine manière en fonction de la mise en page du reste de la page. Par exemple, vous pouvez vouloir afficher un gros plan du visage d'une personne sur les appareils mobiles, mais un plan plus large sur les ordinateurs de bureau. L'élément `picture` vous permet de fournir différentes versions de l'image optimisées pour différentes mises en page.
+* **Mises en page dirigées par l'art :** Parfois, vous souhaiterez peut-être présenter une image d'une certaine manière en fonction de la mise en page du reste de la page. Par exemple, vous pourriez vouloir montrer un gros plan du visage d'une personne sur les appareils mobiles, mais un plan plus large sur les appareils de bureau. L'élément `picture` vous permet de fournir différentes versions de l'image qui sont optimisées pour différentes mises en page.
-Dans l'ensemble, l'élément `picture` est un outil puissant qui peut vous aider à optimiser vos images pour une variété de cas d'utilisation et à vous assurer qu'elles ont fière allure, quel que soit l'appareil ou la taille d'écran sur lequel elles sont affichées.
+Dans l'ensemble, l'élément `picture` est un outil puissant qui peut vous aider à optimiser vos images pour une variété de cas d'utilisation et à vous assurer qu'elles ont l'air superbes, quel que soit l'appareil ou la taille d'écran sur lequel elles sont visualisées.
diff --git a/src/content/docs/fr/width-density.md b/src/content/docs/fr/width-density.md
index 805d0c9..6fd818a 100644
--- a/src/content/docs/fr/width-density.md
+++ b/src/content/docs/fr/width-density.md
@@ -1,48 +1,46 @@
---
title: Descripteurs de largeur et de densité
-description: Exemples d'utilisation des descripteurs de largeur et de densité dans `srcset`
-taskInputHash: 569fd1065931e1e0
+description: Exemples d'utilisation de descripteurs de largeur et de densité dans `srcset`
+taskInputHash: d4db50f5267305d1
lang: fr
-ignore: '/* cSpell:locale fr,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Comprendre les descripteurs de largeur (w) et de densité (x) dans `srcset`. Utiliser des exemples et utiliser Markdown.
+Comprendre les descripteurs de largeur (w) et de densité (x) dans `srcset`. Utilisez des exemples et utilisez Markdown.
+
+> `srcset` est un attribut HTML qui permet aux développeurs de fournir plusieurs sources d'images avec différentes résolutions ou densités de pixels, et de laisser le navigateur sélectionner l'image appropriée en fonction des caractéristiques d'affichage de l'appareil. L'attribut `srcset` utilise une combinaison de l'URL et des descripteurs `w` ou `x` pour spécifier les images.
-> `srcset` est un attribut HTML qui permet aux développeurs de fournir plusieurs sources d'images avec différentes résolutions ou densités de pixels, et de laisser le navigateur sélectionner l'image appropriée en fonction des caractéristiques d'affichage de l'appareil. L'attribut `srcset` utilise une combinaison de l'`URL` et des descripteurs `w` ou `x` pour spécifier les images.
## Descripteur de largeur (`w`)
> Le descripteur `w` est utilisé pour spécifier la largeur d'une image en pixels. Il est utilisé lorsque nous voulons fournir au navigateur les dimensions d'une image afin qu'il puisse choisir l'image appropriée pour l'espace d'écran disponible.
-> La syntaxe pour utiliser le descripteur `w` dans `srcset` est la suivante:
+> La syntaxe pour utiliser le descripteur `w` dans `srcset` est la suivante :
```html
+ alt="Example Image">
```
-
-
> Dans l'exemple ci-dessus, nous avons fourni au navigateur trois images et leurs largeurs correspondantes en pixels. Le navigateur sélectionnera l'image avec la largeur la plus proche de l'espace d'écran disponible.
+
## Descripteur de densité (`x`)
-> Le descripteur `x` est utilisé pour spécifier la densité de pixels d'une image, qui est le rapport des pixels physiques aux pixels CSS. Il est utilisé lorsque nous voulons fournir au navigateur différentes versions de la même image avec différentes densités de pixels.
+> Le descripteur `x` est utilisé pour spécifier la densité de pixels d'une image, qui est le rapport de pixels physiques par rapport aux pixels CSS. Il est utilisé lorsque nous voulons fournir au navigateur différentes versions de la même image avec différentes densités de pixels.
-> La syntaxe pour utiliser le descripteur `x` dans `srcset` est la suivante:
+> La syntaxe pour utiliser le descripteur `x` dans `srcset` est la suivante :
```html
+ alt="Example Image">
```
+> Dans l'exemple ci-dessus, nous avons fourni au navigateur trois images et leurs densités de pixels correspondantes. Le navigateur sélectionnera l'image avec la densité de pixel la plus proche de l'écran de l'appareil.
-> Dans l'exemple ci-dessus, nous avons fourni au navigateur trois images et leurs densités de pixels correspondantes. Le navigateur sélectionnera l'image avec la densité de pixels la plus proche de l'écran de l'appareil.
-
-> Notez que les descripteurs `w` et `x` peuvent être utilisés ensemble dans le même attribut `srcset` pour fournir au navigateur plus d'options de choix.
+> Notez que les descripteurs `w` et `x` peuvent être utilisés ensemble dans le même attribut `srcset` pour fournir au navigateur plus d'options.
diff --git a/src/content/docs/it/_roundtrip_breakpoints.txt b/src/content/docs/it/_roundtrip_breakpoints.txt
index e7fe41c..468e74d 100644
--- a/src/content/docs/it/_roundtrip_breakpoints.txt
+++ b/src/content/docs/it/_roundtrip_breakpoints.txt
@@ -1,42 +1,44 @@
---
title: Breakpoints and Images
-description: Why some (but not all) breakpoints matter for your images
-taskInputHash: 7714cadfe55d82ca
+description: >-
+ Why some (but not all) breakpoints matter to your images
+taskInputHash: 1dc3f28d444f3158
lang: en
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Context
-Small screens and large displays require different layouts. In order for `srcset` and `sizes` to work, we need to know at what point the layout change occurs.
+Small and large screens require different layouts. For the purpose of `srcset` and `sizes`, we need to know at what point the layout changes.
-Web developers need to decide what to shrink, hide, or move up on smaller screens - or more commonly, what to expand, reveal, or add on larger screens. They also have little information to go on. Is the user using a tablet or a smartphone in landscape mode - or a small browser window?
+Web developers have to decide what to contract, hide, or move around on smaller screens — or, more commonly, what to expand, reveal, or add on larger screens. They also have precious little information to go on. Is the user on a tablet or a phone in landscape mode — or is it a small browser window?
-We need to choose an arbitrary viewport width at which the layout change occurs. This is called a **breakpoint**. It is an arbitrary CSS pixel value ([not device pixels](/en/pixels-not-pixels)). Polypane has a [great article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) on commonly used breakpoints.
+We need to pick an arbitrary viewport width at which the layout changes. This is called a **breakpoint**. It's an arbitrary number of CSS pixels ([not device pixels](https://www.dan.uk/pixels)), and Polypane has an [excellent article](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) on commonly used breakpoints.
-Some images (like logos, icons, or buttons) might be immune to layout changes caused by these breakpoints (and will do fine with [srcset density descriptors](/en/density-descriptors)).
+Some images (like logos or icons or buttons) might be immune to layout shifts caused by these breakpoints (and work well with [density descriptors](https://www.dan.uk/density-descriptors)).
-Main content images will be constrained by the size of their container. Typically, the main content area of a page will be constrained to a certain width on larger screens, a `max-width`, but on smaller screens, the main content area will fill the entire viewport.
+Main content images will be constrained by the size of their container. Typically, the main content area of a page will be constrained to a certain width on larger devices, a `max-width`, but on smaller devices, the main content area will occupy the entire viewport.
-If you have more than one column at certain breakpoints, it becomes harder to calculate the actual sizing rules, as the percentage of the viewport width the image takes up will change.
+If you have more than one column at a particular breakpoint, it'll be trickier to calculate the actual sizing rules, since the percentage of the viewport width that the image occupies will change.
-### The Easy Way
+### The Easy Method
-That being said, you don't need to overthink it. You'll probably be just fine with the following approximation:
+That being said, don't make things too complicated for yourself. This approximation will probably suffice:
-1. At what point does the main column (or image container) stop growing? Up to that viewport width, we can use `100vw` for the image's `sizes` attribute to indicate that the image takes up the full viewport width.
-2. What is the maximum width the container reaches? We can set that fixed width for everything else.
+1. At what point does the main column (or image container) stop growing? Until that viewport width, we can use `100vw` for the `sizes` attribute of the image to indicate that the image takes up 100% of the viewport width.
+2. What is the maximum width that container ever reaches? We can set it as a fixed width for everything else.
-If your answer to point 1 was 700px and the answer to point 2 was 800px, you can use the following `sizes` attribute:
+If the answer to 1 is 700px and the answer to 2 is 800px, you can use the following `sizes` attribute:
```html
-
+
```
-> You might think that the browser could handle all these calculations for us based on the CSS. Unfortunately, browsers are aggressively eager to choose an image URL *before* style sheets are downloaded. So we have to do the calculations ourselves, and it'll do them a favor if we don't get it perfect.
+
+
+> You might think the browser could handle all these calculations for us based on CSS. Sadly, browsers are aggressively eager to pick an image URL *before* stylesheets are downloaded. So we have to do the calculations ourselves, and if we don't get them perfect, c'est la vie for them.
=====================
Content prompt used:
@@ -49,8 +51,8 @@ Also carefully translate the title and description for the article; do not use &
1. Breakpoints & images
2. Why some (but not all) breakpoints matter for your images
-Metadata returned1. Breakpoint e immagini
-2. Perché alcuni (ma non tutti) i breakpoint sono importanti per le tue immagini
+Metadata returned1. Breakpoints e immagini
+2. Perché alcuni (ma non tutti) i punti di interruzione sono importanti per le tue immagini
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/it/_roundtrip_browser-picks-srcset.txt b/src/content/docs/it/_roundtrip_browser-picks-srcset.txt
index ba677da..ba3ebbe 100644
--- a/src/content/docs/it/_roundtrip_browser-picks-srcset.txt
+++ b/src/content/docs/it/_roundtrip_browser-picks-srcset.txt
@@ -1,16 +1,19 @@
---
-title: How the browser chooses
-description: How the browser chooses among the images listed in the srcset attribute
-taskInputHash: 5f305bd3a8d992cf
+title: How Browsers Choose
+description: How the browser chooses between images listed in the srcset attribute
+taskInputHash: 9d76226efed7cd73
lang: en
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-How does the browser choose among the images listed in the `srcset` attribute? Here are the detailed steps, with examples for both width and density specifications and how the browser chooses based on the device and viewport:
+How does the browser choose between images listed in the `srcset` attribute? Here's a step-by-step guide, with examples for both width and density specifications, and how the browser decides based on device and viewport.
-- When using the `srcset` attribute in HTML, the browser uses a set of rules to choose the most appropriate image from a list of provided sources. These rules depend on the display characteristics of the device (resolution, pixel density) and the size of the viewport. The `srcset` attribute allows to specify different images based on width (using the `w` descriptor) or pixel density (using the `x` descriptor). Let's look at each case with examples.
+- When using the `srcset` attribute in HTML, the browser uses a set of rules to choose the most appropriate image from a list of provided sources. These rules depend on the display characteristics of the device (resolution, pixel density) and the viewport dimensions. The `srcset` attribute allows for different images to be specified based on width (using the `w` descriptor) or pixel density (using the `x` descriptor). Let's go through each case with examples.
1\. Width descriptor (`w`):
-Suppose we have the following `srcset` attribute:
+Assuming we have the following `srcset` attribute:
```html
@@ -18,11 +21,11 @@ Suppose we have the following `srcset` attribute:
```
-The browser follows these steps:
+The browser will follow these steps:
a. Determine the DPR (Device Pixel Ratio) of the device. For example, a standard display has a DPR of 1, while a high-resolution (Retina) display has a DPR of 2 or higher.
-b. Calculate the effective width for each image in `srcset`. Multiply the width descriptor by the DPR. For a device with a DPR of 1:
+b. Calculate the actual width for each image in the `srcset`. Multiply the width descriptor by the DPR. For a device with a DPR of 1:
- example-small.jpg: 400 * 1 = 400px
@@ -30,11 +33,11 @@ b. Calculate the effective width for each image in `srcset`. Multiply the width
- example-large.jpg: 1600 * 1 = 1600px
-c. Compare the effective widths with the viewport width. Suppose the viewport width is 420px. The browser will select the smallest image with an effective width greater than or equal to the viewport width. In this case, it will select `example-medium.jpg`.
+c. Compare the actual widths with the width of the viewport. Assuming the viewport width is 420px. The browser will select the smallest image with an actual width greater than or equal to the viewport width. In this case, it will select `example-medium.jpg`.
-1\. Pixel density descriptor (`x`):
+2\. Pixel density descriptor (`x`):
-Suppose we have the following `srcset` attribute:
+Assuming we have the following `srcset` attribute:
```html
@@ -42,11 +45,11 @@ Suppose we have the following `srcset` attribute:
```
-The browser follows these steps:
+The browser will follow these steps:
a. Determine the DPR (Device Pixel Ratio) of the device. For example, a standard display has a DPR of 1, while a high-resolution (Retina) display has a DPR of 2 or higher.
-b. Compare the device's DPR with the `x` descriptors in `srcset`. In this case, we have three images with the following descriptors:
+b. Compare the device DPR with the `x` descriptors in the `srcset`. In this case, we have three images with the following descriptors:
- example-1x.jpg: 1x
@@ -54,9 +57,9 @@ b. Compare the device's DPR with the `x` descriptors in `srcset`. In this case,
- example-3x.jpg: 3x
-c. Choose the image with the `x` descriptor closest to the device's DPR. For a device with a DPR of 1, the browser will select `example-1x.jpg`. For a device with a DPR of 2, it will choose `example-2x.jpg`, and so on.
+c. Choose the image with the `x` descriptor closest to the device DPR. For a device with a DPR of 1, the browser will select `example-1x.jpg`. For a device with a DPR of 2, it will choose `example-2x.jpg`, and so on.
-It is important to note that it is also possible to use the `sizes` attribute in combination with the `srcset` attribute to provide additional information on how the image will be displayed at different viewport widths. This is particularly useful when using the width descriptor (`w`). Here is an example:
+It is important to note that it is also possible to use the `sizes` attribute in combination with the `srcset` attribute to provide further information on how the image will be displayed at different viewport widths. This is especially useful when using the width descriptor (`w`). Here's an example:
```html
@@ -75,7 +78,7 @@ Also carefully translate the title and description for the article; do not use &
1. How the browser chooses
2. How the browser chooses between images listed in the srcset attribute
-Metadata returned1. Come sceglie il browser
+Metadata returned1. Come sceglie il browser
2. Come il browser sceglie tra le immagini elencate nell'attributo srcset
diff --git a/src/content/docs/it/_roundtrip_density-descriptors.txt b/src/content/docs/it/_roundtrip_density-descriptors.txt
index 85b40cf..cb251b2 100644
--- a/src/content/docs/it/_roundtrip_density-descriptors.txt
+++ b/src/content/docs/it/_roundtrip_density-descriptors.txt
@@ -1,37 +1,35 @@
---
-title: Density descriptors & srcset
-description: Examples of using density descriptors in `srcset`
-taskInputHash: cf54e3343feb0a22
+title: Density descriptors and srcset
+description: Usage examples of density descriptors in `srcset`
+taskInputHash: 8a445e12ba15aba8
lang: en
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Srcset with density descriptors provides a simple and effective method to provide the image that fits the user's device best, improving performance and user experience. This guide will take you through the essentials of using srcset with density descriptors and provide markup examples for your convenience.
+Srcset with density descriptors provides a simple and effective way to deliver the most suitable image to each user's device, improving performance and user experience. This guide will show you the essentials of using srcset with density descriptors and provide markup examples for your convenience.
## What is Srcset with density descriptors?
-Srcset is an HTML attribute designed to allow specifying multiple image sources for a single ` ` element. Density descriptors (`x`) are used together with srcset to provide images at different resolutions based on the pixel density of the user's display.
+Srcset is an HTML attribute designed to allow you to specify multiple image sources for a single ` ` element. Density descriptors (`x`) are used in combination with srcset to provide images at different resolutions based on the user's pixel density display.
-## When to use Srcset with density descriptors
+## When to use Srcset with density descriptors?
Using srcset with density descriptors is particularly useful when you want to:
-
-1. Provide high-resolution images to high DPI displays (such as Retina displays) while providing lower resolution images to standard displays.
-2. Improve page performance by providing the most appropriate images for each user's device.
+1. Serve high-resolution images to high-resolution devices (e.g., Retina displays) while providing low-resolution images to standard displays.
+2. Improve page performance by delivering the most appropriate image size for each user's device.
## Implementing Srcset with density descriptors
To use srcset with density descriptors, follow these steps:
-1. Prepare images at different resolutions.
-2. Add the `srcset` attribute to the ` ` element, including the image sources and corresponding density descriptors.
-3. Add the `sizes` attribute (optional) to specify image dimensions as it will be displayed on the screen.
+1. Prepare your images in different resolutions.
+2. Add the `srcset` attribute to the ` ` element, including image sources and their corresponding density descriptors.
+3. Add the `sizes` attribute (optional) to specify the displayed image size on the screen.
-### Example Markup
+### Markup Example
-Here's an example of how to implement srcset with density descriptors in your markup:
+Here's an example of how to use srcset with density descriptors in your markup:
```html
tag dimensions
-description: An Efficient and Opinionated Guide to Responsive Images for 2023
-taskInputHash: 770938b4f7895424
+title: srcset and sizes
+description: An efficient and opinionated guide to responsive images for 2023
+taskInputHash: 7c0db2e5e6194bc9
lang: en
-ignore: '/* cSpell:locale it,en*/'
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-**An Efficient and Opinionated Guide to Images for 2023**
+**An efficient and opinionated guide to images for 2023**
-Check the sidebar for an in-depth analysis. This is a quick overview for updating ` ` tags to accommodate modern devices of varying sizes and pixel densities. You need to [know that pixels aren't equal](/en/pixels-not-pixels) and that `devicePixelRatio` tends to be around 3.875 rather than 1:1. Modern phones pretend to be 320-428px wide for readability (in CSS pixels), but have many device pixels per CSS pixel.
+Check the sidebar for the detailed elucidation. This is the quick reference for updating ` ` tags to handle modern devices in all their dimensions and pixel densities. You should [know that pixels != pixels](/en/pixels-arent-all-equal) and that `devicePixelRatio` is more likely to be 3.875 than 1:1. Modern phones pretend to be 320 to 428px wide for legibility (in CSS pixels), but have many device pixels per CSS pixel.
-> If your image never changes size no matter how narrow the browser window is, you should use a [density descriptor](/en/density-descriptors). This is often appropriate for logos, icons, and buttons.
+> If your image never changes size, no matter how much you resize the browser window, you should use a [density descriptor](/en/density-descriptors). This is often suitable for logos, icons, and buttons.
-Do you know what your [breakpoints](/en/breakpoints) are? You'll need those numbers to refine the solution below - at least the viewport width breakpoint where the primary content area stops growing.
+Do you know what your [breakpoints](/en/breakpoints) are? You'll need these numbers to refine the solution below - and at least the viewport width breakpoint at which the main content area stops expanding.
-### The Easy Way
+### The easy way
```html
@@ -28,16 +27,15 @@ Do you know what your [breakpoints](/en/breakpoints) are? You'll need those numb
img.jpg?format=webp&w=1600 1600w,
img.jpg?format=webp&w=2000 2000w"
- sizes="(max-width: 700px) 100vw, 800px" alt="Dog riding a bicycle" />
+ sizes="(max-width: 700px) 100vw, 800px" alt="Dog riding a bike" />
-
+
-
+
```
-{{This seems to be a correctly translated technical documentation with no grammar or clumsy phrasing mistakes.}}
=====================
Content prompt used:
@@ -50,8 +48,8 @@ Also carefully translate the title and description for the article; do not use &
1. srcset & sizes
2. An Efficient and Opinionated Guide to Responsive Images for 2023
-Metadata returned1. srcset e le dimensioni delle tag
-2. Una Guida Efficient and Opinionated alle Immagini Responsive per il 2023
+Metadata returned1. srcset e dimensioni
+2. Una guida efficiente e opinabile alle immagini responsive per il 2023
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/it/_roundtrip_lighthouse-performance-test.txt b/src/content/docs/it/_roundtrip_lighthouse-performance-test.txt
index a590657..881aa80 100644
--- a/src/content/docs/it/_roundtrip_lighthouse-performance-test.txt
+++ b/src/content/docs/it/_roundtrip_lighthouse-performance-test.txt
@@ -1,28 +1,28 @@
---
-title: Test Performance with Lighthouse
-description: Steps on how to test website performance using Lighthouse
-taskInputHash: 174be49cc119f58b
+title: Performance testing with Lighthouse
+description: >-
+ Steps on how to test the performance of a website using Lighthouse
+taskInputHash: 4f7942b4139a285a
lang: en
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-How to Test Your Website Performance with Lighthouse?
+How to test the performance of your website with Lighthouse?
-> Lighthouse is a tool that can be used to measure website performance, accessibility, and other aspects. To test your website performance with Lighthouse, follow these steps:
->
-> 1. Open the Google Chrome web browser and go to the page you want to test.
->
-> 2. Click on the three dots in the upper right corner of the browser window, then select "More Tools" and then "Developer Tools" or use the keyboard shortcut "Ctrl+Shift+I" (Windows, Linux) or "Command+Option+I" (macOS).
->
-> 3. In the Developer Tools panel, click on the Lighthouse icon on the left side of the panel or press "Ctrl+Shift+P" (Windows, Linux) or "Command+Shift+P" (macOS) to open the Command menu, then type "Lighthouse" and select "Generate report."
->
-> 4. In the Lighthouse dialog box, select the performance and other relevant options you want to test, then click "Generate report."
->
-> 5. After Lighthouse completes its analysis, you will see a report with scores and recommendations to improve performance, accessibility, and other areas of your website.
->
-> By following these steps, you can use Lighthouse to test and optimize the performance of your website, which can help improve user experience and search engine ranking.
+> Lighthouse is a tool that can be used to measure the performance, accessibility, and other aspects of a website. To test the performance of your website with Lighthouse, follow these steps:
+>
+> 1. Open the Google Chrome web browser and navigate to the page you want to test.
+>
+> 2. Click the three dots in the top right corner of the browser window, then select "More Tools" and then "Developer Tools" or simply use the keyboard shortcut "Ctrl+Shift+I" (Windows, Linux) or "Command+Option+I" (macOS).
+>
+> 3. In the Developer Tools panel, click on the Lighthouse icon located on the left-hand side of the panel or press "Ctrl+Shift+P" (Windows, Linux) or "Command+Shift+P" (macOS) to open the Command menu, then type "Lighthouse" and select "Generate report."
+>
+> 4. In the Lighthouse dialog box, select performance and any other relevant options you want to test, then click "Generate report."
+>
+> 5. After Lighthouse completes its analysis, you'll see a report with scores and recommendations to improve the performance, accessibility, and other areas of your website.
+>
+> By following these steps, you can use Lighthouse to test and optimize the performance of your website, which can help improve user experience and search engine rankings.
=====================
Content prompt used:
@@ -35,8 +35,8 @@ Also carefully translate the title and description for the article; do not use &
1. Test performance with Lighthouse
2. Steps on how to test a website's performance using Lighthouse
-Metadata returned1. Testare la performance con Lighthouse
-2. Passaggi su come testare la performance di un sito web usando Lighthouse
+Metadata returned1. Test delle prestazioni con Lighthouse
+2. I passaggi su come testare le prestazioni di un sito web utilizzando Lighthouse
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/it/_roundtrip_picture-examples.txt b/src/content/docs/it/_roundtrip_picture-examples.txt
index 397769f..57daf02 100644
--- a/src/content/docs/it/_roundtrip_picture-examples.txt
+++ b/src/content/docs/it/_roundtrip_picture-examples.txt
@@ -1,10 +1,13 @@
---
-title: Examples of Using the Element
+title: Examples of using the element
description: >-
- Provides examples of using the element for responsive images,
- art direction, and different image formats.
-taskInputHash: 23abfd2c45089cf6
+ Provides examples of how to use the element for responsive images,
+ art direction, and different image formats
+taskInputHash: 8949b4f455087356
lang: en
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
Here are some examples of using the `` element and their explanations:
@@ -48,11 +51,11 @@ Explanation: In this example, the `` element is used to provide differe
## Breakpoints
-In responsive design, breakpoints are used to define when the layout of a website or application should change based on the size of the viewport. Breakpoints are typically defined using media queries in CSS, which apply different styles based on the screen width. These breakpoints can be used in combination with the `` element to provide different image sources for different screen sizes.
+In responsive design, breakpoints are used to define when the layout of a website or application should change based on the viewport size. Breakpoints are typically defined using media queries in CSS, which apply different styles based on the screen width. These breakpoints can be used in conjunction with the `` element to provide different image sources for different screen sizes.
-For example, in the first example above, we used the `media` attribute to specify the screen width under which each source should be used. When the screen width is greater than or equal to 768 pixels, the `image-large.jpg` source will be used; when the screen width is greater than or equal to 480 pixels but less than 768 pixels, the `image-medium.jpg` source will be used; and when the screen width is less than 480 pixels, the `image-small.jpg` source will be used. This allows us to serve appropriately sized images for each device, reducing page loading times and improving the user experience.
+For example, in the first example above, we used the `media` attribute to specify the screen width below which to use each source. When the screen width is greater than or equal to 768 pixels, the `image-large.jpg` source will be used; when the screen width is greater than or equal to 480 pixels but less than 768 pixels, the `image-medium.jpg` source will be used; and when the screen width is less than 480 pixels, the `image-small.jpg` source will be used. This allows for appropriately sized images to be provided for each device, reducing page loading times and improving the user experience.
-Breakpoints can be defined at any screen size and many breakpoints can be used to create layouts that respond to a wide range of devices. By combining breakpoints with the `` element, flexible and responsive designs can be created that adapt perfectly to any device.
+Breakpoints can be defined for any screen size, and multiple breakpoints can be used to create layouts that respond to a wide range of devices. By combining breakpoints with the `` element, flexible and responsive designs can be created that work well on any device.
=====================
Content prompt used:
@@ -66,7 +69,7 @@ Also carefully translate the title and description for the article; do not use &
2. Provides examples using the element, for responsive images, art direction and different image formats
Metadata returned1. Esempi di utilizzo dell'elemento
-2. Fornisce esempi di utilizzo dell'elemento per immagini responsive, direzione artistica e diversi formati di immagine.
+2. Fornisce esempi di utilizzo dell'elemento per immagini responsive, direzione d'arte e differenti formati di immagini
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/it/_roundtrip_pixels-not-pixels.txt b/src/content/docs/it/_roundtrip_pixels-not-pixels.txt
index 3d40d5b..a2d9495 100644
--- a/src/content/docs/it/_roundtrip_pixels-not-pixels.txt
+++ b/src/content/docs/it/_roundtrip_pixels-not-pixels.txt
@@ -1,23 +1,22 @@
---
title: px ≠ pixel
-description: Device pixels ≠ browser pixels ≠ image pixels
-taskInputHash: 9e3d515b23db4c50
+description: Device Pixel ≠ Browser Pixel ≠ Image Pixel
+taskInputHash: 30d633a4ce310a0f
lang: en
-ignore: '/* cSpell:locale it,en*/'
sidebar_sort_priority: 900
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-### Device pixels ≠ browser pixels ≠ image pixels
+### Device Pixel ≠ Browser Pixel ≠ Image Pixel
-Thanks to Apple, CSS and HTML pixels (`px`) **almost always correspond to more device/printer pixels**. My phone's devicePixelRatio is 3.875; [what's yours?](https://www.mydevice.io/)
+Thanks to Apple, CSS and HTML pixels (`px`) **usually correspond to multiples of device/printer pixels**. My phone's devicePixelRatio is 3.875; [what's yours?](https://www.mydevice.io/)
-My desktop's devicePixelRatio changes with the browser zoom, but it's 1.5 by default (my `System > Display > Scale` is set to 150%, after all).
+My desktop's devicePixelRatio changes when I zoom in the browser, but is 1.5 by default (after all, my `System > Display > Scale` is set to 150%).
-Image files (excluding SVGs) decode a grid of pixels. **It's annoyingly difficult to display image pixels perfectly 1:1 with device pixels, but with the `srcset` attribute, you can come close enough**, and some JavaScript can adjust the size of the HTML element after loading if you have a really good reason to need that perfect correspondence, although such forbidden tricks won't be revealed here.
+Image files (excluding SVGs) decode into a grid of pixels. **It's very difficult to perfectly match image pixels to device pixels at a 1:1 ratio, but with `srcset` you can get *close enough* **, and a bit of JavaScript code can adjust the HTML element size after loading if there are justifiable reasons for that perfect match, though we won't disclose those naughty techniques here.
-> Other absolute units [in, pc, pt, mm, cm, Q](https://developer.mozilla.org/en-US/docs/Web/CSS/length) are defined based on the number of CSS pixels and pretend that everything is at 96dpi. Developers avoid absolute units because it's generally better to use units that are derived from font or viewport/container sizes. Discordant units can break a layout if the user adjusts their `Accessibility > Text Size` multiplier, enlarges the browser, or rotates the device. Needless to say, you should do all these things before publishing your site.
+> Other absolute units [in, pc, pt, mm, cm, Q)](https://developer.mozilla.org/en/docs/Web/CSS/length) are defined in terms of CSS pixels and assume that everything has a 96dpi resolution. Developers avoid absolute units because it's generally better to use units based on font sizes or viewport/container dimensions. Using non-matching units can break a layout if the client adjusts the `Accessibility > Text Size Multiplier`, zooms the browser, or rotates the device. That being said, you should try all those things before shipping the site.
{{Note that the term used here is not the technical term...}}.
=====================
diff --git a/src/content/docs/it/_roundtrip_specify-width-height.txt b/src/content/docs/it/_roundtrip_specify-width-height.txt
index a9eb002..556dbd2 100644
--- a/src/content/docs/it/_roundtrip_specify-width-height.txt
+++ b/src/content/docs/it/_roundtrip_specify-width-height.txt
@@ -1,20 +1,19 @@
---
-title: Using width and height
-description: Benefits of using width and height attributes in HTML code
-taskInputHash: 34a145dde0e451eb
+title: Use Width and Height
+description: Advantages of using width and height attributes in HTML code
+taskInputHash: 2c99c7f88c7255ed
lang: en
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
Why should you include width and height in HTML?
-> It is recommended to include width and height attributes in the HTML code of images because it helps the web browser to know the dimensions of the image before it is fully loaded. This allows the browser to reserve the appropriate amount of space on the webpage for the image, avoiding content jumping while the image is loading.
->
-> Additionally, specifying width and height attributes for images can also contribute to improving the overall performance of the webpage. When a browser knows the dimensions of an image in advance, it can more accurately calculate the amount of space needed to display the image, avoiding unnecessary reorganizations or repaints of content while it is loading.
->
-> Ultimately, using width and height attributes in the HTML code of images can improve the user experience by making content load faster and reducing visual flicker.
+> It is recommended to include the width and height attributes in HTML code for images because it helps the web browser to know the dimensions of the image before it is fully loaded. This allows the browser to reserve the appropriate space on the web page for the image, avoiding content jumping while the image loads.
+>
+> Furthermore, specifying the width and height attributes for images can also contribute to improving the overall performance of the web page. When a browser knows the dimensions of an image in advance, it can more accurately calculate the amount of space needed to display the image and avoid unnecessary fillings or redraws of content while it loads.
+>
+> In general, using the width and height attributes in HTML code for images can improve the user experience by making content loading faster and reducing visual imperfections.
=====================
Content prompt used:
@@ -27,8 +26,8 @@ Also carefully translate the title and description for the article; do not use &
1. Use width and height
2. Benefits of using width and height attributes in HTML code
-Metadata returned1. Utilizza larghezza e altezza
-2. Vantaggi dell'utilizzo degli attributi di larghezza e altezza nel codice HTML
+Metadata returned1. Usa larghezza e altezza
+2. Vantaggi nell'utilizzo degli attributi di larghezza e altezza nel codice HTML
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/it/_roundtrip_when-to-use-picture.txt b/src/content/docs/it/_roundtrip_when-to-use-picture.txt
index ac99d38..33cf2ff 100644
--- a/src/content/docs/it/_roundtrip_when-to-use-picture.txt
+++ b/src/content/docs/it/_roundtrip_when-to-use-picture.txt
@@ -1,24 +1,25 @@
---
-title: When to Use the Element
-description: Explains in which scenarios the element should be used
-taskInputHash: 583a9afd2e45d56a
+title: When to use the Element
+description: Explains in which situations you should use the element.
+taskInputHash: a2c5811d41d489da
lang: en
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-27'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-The `picture` element is used to provide multiple versions of an image and determine which version of the image to display based on certain conditions. It is particularly useful for optimizing images for different screen sizes and resolutions and is commonly used in responsive web design. Here are some specific scenarios in which you may want to use the `picture` element:
+The `picture` element is used to provide multiple versions of an image and determines which version to display based on specific conditions. It is particularly useful for optimizing images for different screen sizes and resolutions and is commonly used in responsive web design.
-* **Retina Display:** High-density screens like Apple's Retina display have a higher pixel density, which means that images can appear blurry or pixelated if they are not optimized for high resolution. With the `picture` element, you can provide a version of the image that has twice the pixels of the normal version so that it appears sharp and clear on Retina displays.
+Here are some specific scenarios where you might want to use the `picture` element:
-* **Different Proportions:** If you're designing a site that needs to display images with different proportions (such as landscape vs portrait), you can use the `picture` element to provide different versions of the image optimized for each proportion.
+* **Retina Screens:** High-density screens like Apple's Retina displays have a higher pixel density, which means that images can appear blurry or pixelated if they are not optimized for high resolution. With the `picture` element, you can provide a version of the image with twice the pixels of the normal version, so that it appears sharp and clear on Retina displays.
-* **Bandwidth Limitations:** Images can be large files that take up a lot of bandwidth, especially on mobile devices. With the `picture` element, you can provide smaller versions of the image for devices with smaller screens or slower internet connections, which can help reduce page load times.
+* **Different Aspect Ratios:** If you are designing a site that needs to display images with different aspect ratios (such as landscape vs portrait), you can use the `picture` element to provide different versions of the image optimized for each aspect ratio.
-* **Art-directed Layouts:** Sometimes you may want to present an image in a certain way depending on the layout of the rest of the page. For example, you might want to show a close-up of a person's face on mobile devices, but a wider shot on desktop devices. The `picture` element allows you to provide different versions of the image optimized for different layouts.
+* **Bandwidth Limitations:** Images can be large files that take up a lot of bandwidth, especially on mobile devices. With the `picture` element, you can provide smaller versions of the image for devices with smaller screens or slower internet connections, which can help reduce page loading times.
-Overall, the `picture` element is a powerful tool that can help optimize images for a variety of use cases and ensure that they look great on any device or screen size they are displayed on.
+* **Layout Driven by Artwork:** Sometimes you may want to present an image in a certain way depending on the layout of the rest of the page. For example, you may want to show a close-up of a person's face on mobile devices, but a wider view on desktop devices. The `picture` element allows you to provide different versions of the image optimized for different layouts.
+
+Overall, the `picture` element is a powerful tool that can help you optimize your images for a variety of use cases and ensure they look their best on any device or screen size they are displayed on.
=====================
Content prompt used:
@@ -31,8 +32,8 @@ Also carefully translate the title and description for the article; do not use &
1. When to use element
2. Explains in which situations you should use the element
-Metadata returned1. Quando utilizzare l'elemento
-2. Spiega in quali situazioni si dovrebbe utilizzare l'elemento
+Metadata returned1. Quando usare l'elemento
+2. Spiega in quali situazioni dovresti usare l'elemento
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/it/_roundtrip_width-density.txt b/src/content/docs/it/_roundtrip_width-density.txt
index 10692ac..76627f7 100644
--- a/src/content/docs/it/_roundtrip_width-density.txt
+++ b/src/content/docs/it/_roundtrip_width-density.txt
@@ -1,22 +1,21 @@
---
title: Width and Density Descriptors
description: Examples of using width and density descriptors in `srcset`
-taskInputHash: ea49fc07cb749a51
+taskInputHash: b4c91fed1ce98c24
lang: en
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Understanding Width (`w`) and Density (`x`) Descriptors in `srcset`. Use examples and Markdown.
+## Understanding Width (w) and Density (x) Descriptors in `srcset`
-> `srcset` is an HTML attribute that allows developers to provide multiple image sources with different resolutions or pixel densities and enable the browser to select the appropriate image based on the characteristics of the device display. The `srcset` attribute uses a combination of `URL` and `w` or `x` descriptors to specify the images.
+The `srcset` attribute is an HTML attribute that allows developers to provide multiple image sources with different resolutions or pixel densities, enabling the browser to select the appropriate image based on the characteristics of the display device. The `srcset` attribute uses a combination of `URL`s and `w` or `x` descriptors to specify images.
-## Width Descriptor (`w`)
+## Width Descriptor (w)
-> The `w` descriptor is used to specify the width of an image in pixels. It is used when we want to provide the browser with the size of an image so that it can choose the appropriate image for the available space on the screen.
+The `w` descriptor is used to specify the width of an image in pixels. It is used when we want to provide the browser with the dimensions of an image so that it can choose the appropriate image for the available screen space.
-> The syntax for using the `w` descriptor in `srcset` is as follows:
+The syntax for using the `w` descriptor in `srcset` is as follows:
```html
```
-> In the example above, we have provided the browser with three images and their corresponding widths in pixels. The browser will select the image with the width closest to the available space on the screen.
+In the example above, we have provided the browser with three images and their respective pixel widths. The browser will select the image with the width closest to the available screen space.
-## Density Descriptor (`x`)
+## Density Descriptor (x)
-> The `x` descriptor is used to specify the pixel density of an image, which is the ratio of physical pixels to CSS pixels. It is used when we want to provide the browser with different versions of the same image with different pixel densities.
+The `x` descriptor is used to specify the pixel density of an image, which is the ratio of physical pixels to CSS pixels. It is used when we want to provide the browser with different versions of the same image with different pixel densities.
-> The syntax for using the `x` descriptor in `srcset` is as follows:
+The syntax for using the `x` descriptor in `srcset` is as follows:
```html
```
-> In the example above, we have provided the browser with three images and their corresponding pixel densities. The browser will select the image with the pixel density closest to the device screen.
+In the example above, we have provided the browser with three images and their respective pixel densities. The browser will select the image with the pixel density closest to the device screen.
-> Note that the `w` and `x` descriptors can be used together in the same `srcset` attribute to provide the browser with more options to choose from.
+Note that `w` and `x` descriptors can be used together in the same `srcset` attribute to provide the browser with more selection options.
=====================
Content prompt used:
@@ -57,8 +56,8 @@ Also carefully translate the title and description for the article; do not use &
1. Width and density descriptors
2. Examples of using width and density descriptors in `srcset`
-Metadata returned1. Descrittori di larghezza e densità
-2. Esempi di utilizzo dei descrittori di larghezza e densità in `srcset`
+Metadata returned1. Descrittori width e density
+2. Esempi di utilizzo dei descrittori width e density in `srcset`
Roundtrip (isolated) prompt used:
diff --git a/src/content/docs/it/breakpoints.md b/src/content/docs/it/breakpoints.md
index 39943b9..98f9b04 100644
--- a/src/content/docs/it/breakpoints.md
+++ b/src/content/docs/it/breakpoints.md
@@ -1,41 +1,42 @@
---
-title: Breakpoint e immagini
-description: Perché alcuni (ma non tutti) i breakpoint sono importanti per le tue immagini
-taskInputHash: 7714cadfe55d82ca
+title: Breakpoints e immagini
+description: >-
+ Perché alcuni (ma non tutti) i punti di interruzione sono importanti per le
+ tue immagini
+taskInputHash: 1dc3f28d444f3158
lang: it
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
### Contesto
-Schermi piccoli e monitor grandi richiedono layout diversi. Per lo scopo di `srcset` e `sizes`, dobbiamo sapere a che punto avviene il cambio di layout.
+Schermi piccoli e grandi richiedono layout diversi. Per lo scopo di `srcset` e `sizes`, dobbiamo sapere a che punto il layout cambia.
-I web developer devono decidere cosa ridurre, nascondere o spostare su schermi più piccoli - o più comunemente, cosa espandere, rivelare o aggiungere su schermi più grandi. Inoltre hanno poche informazioni a disposizione. L'utente sta utilizzando un tablet o uno smartphone in modalità landscape - o una finestra di browser piccola?
+Gli sviluppatori web devono decidere cosa contrarre, nascondere o spostare su schermi più piccoli - o, più comunemente, cosa espandere, rivelare o aggiungere su schermi più grandi. Hanno anche pochissime informazioni a disposizione. L'utente sta utilizzando un tablet o un telefono in modalità landscape - o è in una finestra di browser piccola?
-Dobbiamo scegliere una larghezza di viewport arbitraria in cui avviene il cambio di layout. Questo viene chiamato un **breakpoint**. È un valore arbitrario in pixel CSS ([non pixel dispositivo](/it/pixels-non-pixels)). Polypane ha un [ottimo articolo](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) sui breakpoint comunemente usati.
+Dobbiamo scegliere una larghezza di viewport arbitraria in cui il layout cambia. Questo viene chiamato **punto di interruzione**. È un numero arbitrario di pixel CSS ([non pixel del dispositivo](/it/pixels-non-pixel)). Polypane ha un [ottimo articolo](https://polypane.app/blog/the-breakpoints-we-tested-in-2021-and-the-ones-to-test-in-2022/#the-breakpoints-to-develop-on-in-2023) sui punti di interruzione comunemente utilizzati.
-Alcune immagini (come loghi, icone o pulsanti) potrebbero essere immune ai cambiamenti di layout causati da questi breakpoint (e andranno bene con i [descrittori di densità srcset](/it/density-descriptors)).
+Alcune immagini (come i loghi o le icone o i pulsanti) potrebbero essere immuni dagli spostamenti di layout causati da questi punti di interruzione (e ben funzionare con il [descrittore di densità](/it/density-descriptors)).
-Le immagini del contenuto principale saranno limitate dalle dimensioni del loro contenitore. In genere, l'area del contenuto principale di una pagina sarà limitata a una determinata larghezza sui più grandi schermi, una `max-width`, ma su schermi più piccoli l'area del contenuto principale riempirà l'intero viewport.
+Le immagini del contenuto principale saranno limitate dalle dimensioni del loro contenitore. Tipicamente, l'area del contenuto principale di una pagina sarà limitata a una certa larghezza sui dispositivi più grandi, una `max-width`, ma sui dispositivi più piccoli, l'area del contenuto principale occuperà l'intero viewport.
-Se si hanno più di una colonna a determinati breakpoint, diventa più difficile calcolare le regole di dimensionamento effettive, poiché la percentuale della larghezza del viewport che l'immagine occupa cambierà.
+Se hai più di una colonna a un certo punto di interruzione, sarà più difficile calcolare le regole di dimensionamento effettive, poiché la percentuale della larghezza del viewport che l'immagine occupa cambierà.
### Il metodo facile
-Detto questo, non bisogna sovrapensare. Probabilmente sarete molto OK con la seguente approssimazione:
+Detto ciò, non bisogna troppo complicarsi le cose. Probabilmente andrà bene la seguente approssimazione:
-1. A che dimensione la colonna principale (o il contenitore dell'immagine) smette di crescere? Fino a quella larghezza di viewport, possiamo utilizzare `100vw` per l'attributo `sizes` dell'immagine per indicare che l'immagine occupa il 100% della larghezza del viewport.
-2. Qual è la larghezza massima che il contenitore raggiunge? Possiamo impostare quella larghezza fissa per tutto il resto.
+1. A quale dimensione si ferma di crescere la colonna principale (o il contenitore dell'immagine)? Fino a quella larghezza di viewport, possiamo utilizzare `100vw` per l'attributo `sizes` dell'immagine per indicare che l'immagine occupa il 100% della larghezza del viewport.
+2. Qual è la larghezza massima mai raggiunta da quel contenitore? Possiamo impostarla come larghezza fissa per tutto il resto.
-Se la vostra risposta al punto 1 è stata 700px e la risposta al punto 2 è stata 800px, potete usare il seguente attributo `sizes`:
+Se la risposta a 1 è 700px e la risposta a 2 è 800px, è possibile utilizzare il seguente attributo `sizes`:
```html
-
+
```
-> Potreste pensare che il browser potrebbe gestire tutte queste elaborazioni per noi basandosi sul CSS. Sfortunatamente, i browser sono aggressivamente desiderosi di scegliere un URL dell'immagine *prima* che i fogli di stile vengano scaricati. Quindi dobbiamo fare i calcoli da soli, e farà loro comodo se non riusciamo a farlo perfettamente.
+> Potresti pensare che il browser possa gestire in modo adeguato tutti questi calcoli per noi basandosi sul CSS. Purtroppo, i browser sono aggressivamente desiderosi di scegliere un URL dell'immagine *prima* che i fogli di stile siano scaricati. Quindi dobbiamo fare noi i calcoli, e se non li facciamo perfettamente, pazienza per loro.
diff --git a/src/content/docs/it/browser-picks-srcset.md b/src/content/docs/it/browser-picks-srcset.md
index fba5b78..ee2f7bf 100644
--- a/src/content/docs/it/browser-picks-srcset.md
+++ b/src/content/docs/it/browser-picks-srcset.md
@@ -1,16 +1,15 @@
---
title: Come sceglie il browser
description: Come il browser sceglie tra le immagini elencate nell'attributo srcset
-taskInputHash: 0eb976f059b10502
+taskInputHash: 9d76226efed7cd73
lang: it
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Come sceglie il browser tra le immagini elencate nell'attributo srcset? Ecco una procedura dettagliata, con esempi sia per le specifiche di larghezza che di densità e come il browser decide in base al dispositivo e alla viewport.
+Come fa il browser a scegliere tra le immagini elencate nell'attributo srcset? Ecco una guida passo-passo, con esempi sia per le specifiche di larghezza che per quelle di densità e come il browser decide in base al dispositivo e alla viewport.
-- Quando si utilizza l'attributo `srcset` in HTML, il browser utilizza un insieme di regole per scegliere l'immagine più appropriata da un elenco di fonti fornite. Queste regole dipendono dalle caratteristiche dello schermo del dispositivo (risoluzione, densità dei pixel) e dalle dimensioni della viewport. L'attributo `srcset` consente di specificare diverse immagini in base alla larghezza (utilizzando il descrittore `w`) o alla densità dei pixel (utilizzando il descrittore `x`). Vediamo ogni caso con degli esempi.
+- Quando si utilizza l'attributo `srcset` in HTML, il browser utilizza una serie di regole per scegliere l'immagine più appropriata da una lista di sorgenti fornite. Queste regole dipendono dalle caratteristiche di visualizzazione del dispositivo (risoluzione, densità di pixel) e dalle dimensioni della viewport. L'attributo `srcset` consente di specificare diverse immagini in base alla larghezza (utilizzando il descrittore `w`) o alla densità dei pixel (utilizzando il descrittore `x`). Andiamo attraverso ogni caso con degli esempi.
1\. Descrittore di larghezza (`w`):
@@ -18,23 +17,23 @@ Supponiamo di avere il seguente attributo `srcset`:
```html
-
+
```
-Il browser seguirà questi passaggi:
+Il browser seguirà questi passi:
-a. Determinare il DPR (Device Pixel Ratio) del dispositivo. Ad esempio, un display standard ha un DPR di 1, mentre un display ad alta risoluzione (Retina) ha un DPR di 2 o superiore.
+a. Determina il DPR (Device Pixel Ratio) del dispositivo. Ad esempio, un display standard ha un DPR di 1, mentre un display ad alta risoluzione (Retina) ha un DPR di 2 o superiore.
-b. Calcolare la larghezza efficace per ogni immagine nella `srcset`. Moltiplicare il descrittore di larghezza per il DPR. Per un dispositivo con un DPR di 1:
+b. Calcola la larghezza effettiva per ogni immagine nell'`srcset`. Moltiplica il descrittore di larghezza per il DPR. Per un dispositivo con un DPR di 1:
-- example-small.jpg: 400 \* 1 = 400px
+- example-small.jpg: 400 * 1 = 400px
-- example-medium.jpg: 800 \* 1 = 800px
+- example-medium.jpg: 800 * 1 = 800px
-- example-large.jpg: 1600 \* 1 = 1600px
+- example-large.jpg: 1600 * 1 = 1600px
-c. Confrontare le larghezze efficaci con la larghezza viewport. Supponiamo che la larghezza viewport sia di 420px. Il browser sceglierà l'immagine più piccola con larghezza efficace maggiore o uguale alla larghezza viewport. In questo caso, selezionerà `example-medium.jpg`.
+c. Confronta le larghezze effettive con la larghezza della viewport. Supponiamo che la larghezza della viewport sia 420px. Il browser sceglierà l'immagine più piccola con una larghezza effettiva maggiore o uguale alla larghezza viewport. In questo caso, selezionerà `example-medium.jpg`.
2\. Descrittore di densità dei pixel (`x`):
@@ -42,15 +41,15 @@ Supponiamo di avere il seguente attributo `srcset`:
```html
-
+
```
-Il browser seguirà questi passaggi:
+Il browser seguirà questi passi:
-a. Determinare il DPR (Device Pixel Ratio) del dispositivo. Ad esempio, un display standard ha un DPR di 1, mentre un display ad alta risoluzione (Retina) ha un DPR di 2 o superiore.
+a. Determina il DPR (Device Pixel Ratio) del dispositivo. Ad esempio, un display standard ha un DPR di 1, mentre un display ad alta risoluzione (Retina) ha un DPR di 2 o superiore.
-b. Confrontare il DPR del dispositivo con i descrittori `x` presenti nella `srcset`. In questo caso, abbiamo tre immagini con i seguenti descrittori:
+b. Confronta il DPR del dispositivo con i descrittori `x` nell'`srcset`. In questo caso, abbiamo tre immagini con i seguenti descrittori:
- example-1x.jpg: 1x
@@ -58,9 +57,9 @@ b. Confrontare il DPR del dispositivo con i descrittori `x` presenti nella `srcs
- example-3x.jpg: 3x
-c. Scegliere l'immagine con il descrittore `x` più vicino al DPR del dispositivo. Per un dispositivo con un DPR di 1, il browser selezionerà `example-1x.jpg`. Per un dispositivo con un DPR di 2, sceglierà `example-2x.jpg`, e così via.
+c. Scegli l'immagine con il descrittore `x` più vicino al DPR del dispositivo. Per un dispositivo con un DPR di 1, il browser selezionerà `example-1x.jpg`. Per un dispositivo con un DPR di 2, sceglierà `example-2x.jpg`, e così via.
-È importante notare che è possibile utilizzare anche l'attributo `sizes` in combinazione con l'attributo `srcset` per fornire ulteriori informazioni su come l'immagine verrà visualizzata su diverse larghezze viewport. Questo è particolarmente utile quando si utilizza il descrittore di larghezza (`w`). Ecco un esempio:
+È importante notare che è anche possibile utilizzare l'attributo `sizes` in combinazione con l'attributo `srcset` per fornire ulteriori informazioni su come l'immagine verrà visualizzata a diverse larghezze viewport. Questo è particolarmente utile quando si utilizza il descrittore di larghezza (`w`). Ecco un esempio:
```html
diff --git a/src/content/docs/it/density-descriptors.md b/src/content/docs/it/density-descriptors.md
index 499d6b0..f907ae9 100644
--- a/src/content/docs/it/density-descriptors.md
+++ b/src/content/docs/it/density-descriptors.md
@@ -1,42 +1,45 @@
---
-title: Descrittori di densità & srcset
-description: Esempi di utilizzo di descrittori di densità in `srcset`
-taskInputHash: cf54e3343feb0a22
+title: Descrittori di densità e srcset
+description: Esempi d'uso dei descrittori di densità in `srcset`
+taskInputHash: 8a445e12ba15aba8
lang: it
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-26'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Srcset con i descrittori di densità fornisce un metodo semplice ed efficace per fornire l'immagine più adatta al dispositivo dell'utente, migliorando le prestazioni e l'esperienza dell'utente. Questa guida ti guiderà attraverso gli elementi essenziali dell'utilizzo di srcset con descrittori di densità e fornirà esempi di markup per la tua convenienza.
-## Cosa è Srcset con descrittori di densità?
+Srcset con i descrittori di densità fornisce un metodo semplice ed efficace per consegnare l'immagine più adatta al dispositivo di ciascun utente, migliorando le prestazioni e l'esperienza utente. Questa guida ti mostrerà gli elementi essenziali dell'utilizzo di srcset con descrittori di densità e fornirà esempi di markup per la tua convenienza.
-Srcset è un attributo HTML progettato per consentire di specificare più origini di immagini per un singolo elemento ` `. I descrittori di densità (`x`) vengono utilizzati insieme a srcset per fornire immagini a diverse risoluzioni in base alla densità di pixel del display dell'utente.
-## Quando usare Srcset con descrittori di densità
+## Che cos'è Srcset con descrittori di densità?
-L'utilizzo di srcset con descrittori di densità è particolarmente utile quando si desidera:
-1. Fornire immagini ad alta risoluzione ai display ad alta DPI (ad esempio, i display Retina) mentre si forniscono immagini a risoluzione inferiore ai display standard.
-2. Migliorare le prestazioni della pagina fornendo le immagini più appropriate a ciascun dispositivo dell'utente.
-## Implementare Srcset con descrittori di densità
+Srcset è un attributo HTML progettato per consentire di specificare molteplici fonti di immagine per un singolo elemento ` `. I descrittori di densità (`x`) vengono utilizzati in combinazione con srcset per fornire immagini a diverse risoluzioni in base alla densità di pixel del display dell'utente.
+
+## Quando utilizzare Srcset con descrittori di densità?
+
+Utilizzare srcset con descrittori di densità è particolarmente utile quando vuoi:
+1. Servire immagini ad alta risoluzione a dispositivi ad alta risoluzione (ad esempio, display Retina) mentre si forniscono immagini a bassa risoluzione a display standard.
+2. Migliorare le prestazioni della pagina consegnando la dimensione dell'immagine più appropriata per il dispositivo di ciascun utente.
+
+## Implementazione di Srcset con descrittori di densità
Per utilizzare srcset con descrittori di densità, seguire questi passaggi:
-1. Preparare le immagini in diverse risoluzioni.
-2. Aggiungere l'attributo `srcset` all'elemento ` `, inclusi le origini delle immagini e i corrispondenti descrittori di densità.
-3. Aggiungere l'attributo `sizes` (facoltativo) per specificare le dimensioni dell'immagine come verrà visualizzata sullo schermo.
+
+1. Prepara le tue immagini in diverse risoluzioni.
+2. Aggiungi l'attributo `srcset` all'elemento ` `, inclusi la fonte delle immagini e i descrittori di densità corrispondenti.
+3. Aggiungi l'attributo `sizes` (opzionale) per specificare la dimensione dell'immagine visualizzata sullo schermo.
+
### Esempio di markup
-Ecco un esempio di come implementare srcset con descrittori di densità nel tuo markup:
+Ecco un esempio di come utilizzare srcset con descrittori di densità nel tuo markup:
```html
+ alt="Un'immagine di esempio">
```
Questo esempio di markup include:
-
-- **src**: la sorgente predefinita dell'immagine, mostrata se il browser non supporta srcset.
-- **srcset**: l'elenco di origini dell'immagine e dei relativi descrittori di densità (1x, 2x, 3x). Il browser sceglierà l'immagine più appropriata in base al display dell'utente.
+- **src**: la fonte dell'immagine predefinita, visualizzata se il browser non supporta srcset.
+- **srcset**: l'elenco di fonti di immagini e i relativi descrittori di densità (1x, 2x, 3x). Il browser sceglierà l'immagine più appropriata in base al display dell'utente.
- **alt**: una descrizione dell'immagine per scopi di accessibilità.
E questo è tutto! Hai implementato con successo srcset con descrittori di densità, migliorando le prestazioni del tuo sito web e l'esperienza dell'utente.
diff --git a/src/content/docs/it/introduction.md b/src/content/docs/it/introduction.md
index 0de941c..fd61562 100644
--- a/src/content/docs/it/introduction.md
+++ b/src/content/docs/it/introduction.md
@@ -1,39 +1,38 @@
---
-title: srcset e le dimensioni delle tag
-description: Una Guida Efficient and Opinionated alle Immagini Responsive per il 2023
-taskInputHash: 770938b4f7895424
+title: srcset e dimensioni
+description: Una guida efficiente e opinabile alle immagini responsive per il 2023
+taskInputHash: 7c0db2e5e6194bc9
lang: it
-ignore: '/* cSpell:locale it,en*/'
sidebar_sort_priority: 1000
-date_published: '2023-03-23'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-**Una Guida Efficient and Opinionated sulle Immagini per il 2023**
+**Una guida efficiente e opinabile sulle immagini per il 2023**
+
+Controlla la barra laterale per la dettagliata delucidazione. Questo è il riferimento veloce per aggiornare i tag ` ` per gestire dispositivi moderni in tutte le loro dimensioni e densità di pixel. Dovresti [sapere che i pixel != pixel](/it/pixel-non-sono-tutti-uguali) e che `devicePixelRatio` è più probabile che sia 3.875 invece di 1:1. I telefoni moderni si fingono larghi da 320 a 428px per la leggibilità (in pixel CSS), ma hanno molti pixel del dispositivo per pixel CSS.
-Controlla la sidebar per un'analisi approfondita. Questa è una rapida panoramica per l'aggiornamento dei tag ` ` per gestire i dispositivi moderni delle varie dimensioni e densità di pixel. Devi [sapere che i pixel non sono uguali](/it/pixels-not-pixels) e che il `devicePixelRatio` tende a essere verso 3,875 piuttosto che 1:1. I telefoni moderni fingono di essere larghi da 320-428px per la leggibilità (in pixel CSS), ma hanno molti pixel del dispositivo per ogni pixel CSS.
+> Se la tua immagine non cambia mai di dimensione, senza importare quanto ridimensioni la finestra del browser, dovresti usare un [descrittore di densità](/it/density-descriptors). Questo è spesso adatto per loghi, icone e pulsanti.
-> Se la tua immagine non cambia mai dimensione, indipendentemente da quanto è stretta la finestra del browser, dovresti usare un [descrittore di densità](/it/density-descriptors). Questo è spesso adatto per loghi, icone e pulsanti.
-
-Sai qual è il tuo [breakpoint](/it/breakpoints)? Avrai bisogno di quei numeri per affinare la soluzione qui sotto - e almeno il breakpoint della larghezza del viewport in cui l'area del contenuto principale smette di crescere.
+Sai quali sono i tuoi [punti di interruzione](/it/breakpoints)? Avrai bisogno di questi numeri per affinare la soluzione qui sotto - e almeno il punto di interruzione in larghezza del viewport in cui l'area di contenuto principale smette di aumentare.
### Il metodo facile
```html
-
+ sizes="(max-width: 700px) 100vw, 800px" alt="Cane che guida una bicicletta" />
-
+
-
+
```
diff --git a/src/content/docs/it/lighthouse-performance-test.md b/src/content/docs/it/lighthouse-performance-test.md
index 94f71a6..cc60a95 100644
--- a/src/content/docs/it/lighthouse-performance-test.md
+++ b/src/content/docs/it/lighthouse-performance-test.md
@@ -1,25 +1,26 @@
---
-title: Testare la performance con Lighthouse
-description: Passaggi su come testare la performance di un sito web usando Lighthouse
-taskInputHash: 174be49cc119f58b
+title: Test delle prestazioni con Lighthouse
+description: >-
+ I passaggi su come testare le prestazioni di un sito web utilizzando
+ Lighthouse
+taskInputHash: 4f7942b4139a285a
lang: it
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Come si testa la performance del tuo sito con Lighthouse?
+Come testare le prestazioni del tuo sito con Lighthouse?
-> Lighthouse è uno strumento che può essere utilizzato per misurare la performance, l'accessibilità e altri aspetti di un sito web. Per testare la performance del tuo sito web con Lighthouse, segui questi passaggi:
->
-> 1\. Apri il browser web Google Chrome e vai alla pagina che desideri testare.
->
-> 2\. Fai clic sui tre puntini nell'angolo in alto a destra della finestra del browser, quindi seleziona "Altri strumenti" e poi "Strumenti per sviluppatori" o usa la scorciatoia da tastiera "Ctrl+Shift+I" (Windows, Linux) o "Command+Option+I" (macOS).
->
-> 3\. Nel riquadro degli Strumenti per sviluppatori, fai clic sull'icona di Lighthouse situata sul lato sinistro del riquadro o premi "Ctrl+Shift+P" (Windows, Linux) o "Command+Shift+P" (macOS) per aprire il menu Comandi, quindi digita "Lighthouse" e seleziona "Genera rapporto".
->
-> 4\. Nella finestra di dialogo di Lighthouse, seleziona le opzioni di performance e altre pertinenti che desideri testare, quindi fai clic su "Genera rapporto".
->
-> 5\. Dopo che Lighthouse ha completato la sua analisi, vedrai un rapporto con punteggi e raccomandazioni per migliorare la performance, l'accessibilità e altre aree del tuo sito web.
->
-> Seguendo questi passaggi, puoi utilizzare Lighthouse per testare e ottimizzare la performance del tuo sito web, il che può contribuire a migliorare l'esperienza degli utenti e il posizionamento sui motori di ricerca.
+> Lighthouse è uno strumento che può essere utilizzato per misurare le prestazioni, l'accessibilità e altri aspetti di un sito web. Per testare le prestazioni del tuo sito web con Lighthouse, segui questi passaggi:
+>
+> 1\. Apri il browser web Google Chrome e vai alla pagina che vuoi testare.
+>
+> 2\. Fai clic sui tre punti nell'angolo in alto a destra della finestra del browser, quindi seleziona "Altri strumenti" e poi "Strumenti per sviluppatori" o semplicemente usa la scorciatoia da tastiera "Ctrl+Shift+I" (Windows, Linux) o "Command+Option+I" (macOS).
+>
+> 3\. Nel pannello Strumenti per sviluppatori, fai clic sull'icona di Lighthouse situata sul lato sinistro del pannello o premi "Ctrl+Shift+P" (Windows, Linux) o "Command+Shift+P" (macOS) per aprire il menu Comandi, quindi digita "Lighthouse" e seleziona "Genera rapporto".
+>
+> 4\. Nella finestra di dialogo di Lighthouse, seleziona le opzioni di prestazione e altre pertinenti che desideri testare, quindi fai clic su "Genera rapporto".
+>
+> 5\. Dopo che Lighthouse ha completato la sua analisi, vedrai un rapporto con punteggi e raccomandazioni per migliorare le prestazioni, l'accessibilità e altri ambiti del tuo sito web.
+>
+> Seguendo questi passaggi, puoi utilizzare Lighthouse per testare e ottimizzare le prestazioni del tuo sito web, il che può aiutare a migliorare l'esperienza utente e il posizionamento nei motori di ricerca.
diff --git a/src/content/docs/it/picture-examples.md b/src/content/docs/it/picture-examples.md
index f33fbe9..f684b51 100644
--- a/src/content/docs/it/picture-examples.md
+++ b/src/content/docs/it/picture-examples.md
@@ -1,16 +1,15 @@
---
title: Esempi di utilizzo dell'elemento
description: >-
- Fornisce esempi di utilizzo dell'elemento , per immagini responsive,
- direzione artistica e diversi formati di immagine
-taskInputHash: 1eedb92f6cc7cb3e
+ Fornisce esempi di utilizzo dell'elemento per immagini responsive,
+ direzione d'arte e differenti formati di immagini
+taskInputHash: 8949b4f455087356
lang: it
-ignore: '/* cSpell:locale it,en*/'
-date_published: '2023-03-24'
-date_modified: '2023-03-31'
-date_updated: '2023-03-31'
+date_published: '2023-04-03'
+date_modified: '2023-04-03'
+date_updated: '2023-04-03'
---
-Ecco alcuni esempi di utilizzo dell'elemento `` e le loro spiegazioni:
+Ecco alcuni esempi di utilizzo dell'elemento `` e le relative spiegazioni:
1. Esempio per immagini responsive:
@@ -22,9 +21,9 @@ Ecco alcuni esempi di utilizzo dell'elemento `` e le loro spiegazioni:
```
-Spiegazione: In questo esempio, l'elemento `` viene utilizzato per fornire diverse fonti di immagini per diverse dimensioni dello schermo. Gli elementi `` specificano le diverse fonti di immagini utilizzando l'attributo "srcset" e l'attributo "media" per specificare le condizioni in cui ciascuna fonte dovrebbe essere utilizzata. L'elemento ` ` viene utilizzato come fallback per i browser più vecchi o quando le condizioni specificate negli elementi `` non vengono soddisfatte.
+Spiegazione: In questo esempio, l'elemento `` viene utilizzato per fornire differenti sorgenti di immagine per diversi formati di schermo. Gli elementi `` specificano le diverse sorgenti di immagine utilizzando l'attributo "srcset" e l'attributo "media" per specificare le condizioni in cui ogni sorgente deve essere utilizzata. L'elemento ` ` viene utilizzato come fallback per i browser meno recenti o quando non vengono soddisfatte le condizioni specificate negli elementi ``.
-2. Esempio per la direzione artistica:
+2. Esempio per direzione d'arte:
```html
@@ -34,9 +33,9 @@ Spiegazione: In questo esempio, l'elemento `` viene utilizzato per forn
```
-Spiegazione: In questo esempio, l'elemento `` viene utilizzato per fornire diverse fonti di immagini a seconda dell'orientamento del dispositivo. L'elemento `` con l'attributo "media" impostato su "(orientation: landscape)" specifica una fonte di immagine per schermi larghi, mentre l'elemento ` ` specifica una fonte di immagine per schermi verticali.
+Spiegazione: In questo esempio, l'elemento `` viene utilizzato per fornire differenti sorgenti di immagine a seconda dell'orientamento del dispositivo. L'elemento `` con l'attributo "media" impostato su "(orientation: landscape)" specifica una sorgente di immagine per schermi larghi, mentre l'elemento ` ` specifica una sorgente di immagine per schermi verticali.
-3. Esempio per diversi formati di immagine:
+3. Esempio per differenti formati di immagini:
```html
@@ -48,12 +47,12 @@ Spiegazione: In questo esempio, l'elemento `` viene utilizzato per forn
```
-Spiegazione: In questo esempio, l'elemento `` viene utilizzato per fornire diverse fonti di immagini per diversi formati di immagine. Gli elementi `` specificano diverse fonti di immagini utilizzando l'attributo "srcset" e l'attributo "type" per specificare il formato dell'immagine. L'elemento ` ` viene utilizzato come fallback per i browser più vecchi che non supportano l'elemento ``.
+Spiegazione: In questo esempio, l'elemento `