--- title: Img Src Attribute localeTitle: Img Src属性 --- ## Img Src属性 ``属性指的是要显示的图像的来源。没有`src`属性, `img`标签不会显示图像。但是,如果将源设置为图像的位置,则可以显示任何图像。 freeCodeCamp徽标的图片位于`https://avatars0.githubusercontent.com/u/9892522?v=4&s=400` 您可以使用`src`属性将其设置为图像。 ```html