fix: Update packages and fix local dev (#26907)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. --> - [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md). - [x] My pull request has a descriptive title (not a vague title like `Update index.md`) - [x] My pull request targets the `master` branch of freeCodeCamp.
This commit is contained in:
committed by
mrugesh mohapatra
parent
153e1c9f38
commit
7da04a348b
@@ -0,0 +1,28 @@
|
||||
---
|
||||
title: Img Width Attribute
|
||||
localeTitle: Atributo de ancho de img
|
||||
---
|
||||
## Atributo de ancho de img
|
||||
|
||||
El atributo HTML 'ancho' se refiere al ancho de una imagen. El valor en las citas es la cantidad de píxeles.
|
||||
|
||||
Por ejemplo, si ya tiene un enlace a una configuración de imagen a través del atributo `src` , puede agregar el atributo de ancho así:
|
||||
|
||||
```html
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Img Width Attribute</title>
|
||||
</head>
|
||||
<body>
|
||||
<img src="image.png" alt="Image" width="100"/>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
En el fragmento de código de arriba hay una etiqueta de imagen y la imagen se establece en un ancho de 100 píxeles. `width="100"`
|
||||
|
||||
#### Más información:
|
||||
|
||||
[Artículo de MDN en la etiqueta img](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img)
|
||||
Reference in New Issue
Block a user