1. 기본문법
<img />
2. attribute
Attribute | Value | Description |
alt | text | 이미지를 찾지 못할 때 대체할 문자열 |
crossorigin | anonymous use-credentials |
Allow images from third-party sites that allow cross-origin access to be used with canvas |
height | pixels | Specifies the height of an image |
ismap | ismap | Specifies an image as a server-side image map |
loading | eager lazy |
Specifies whether a browser should load an image immediately or to defer loading of images until some conditions are met |
longdesc | URL | Specifies a URL to a detailed description of an image |
referrerpolicy | no-referrer no-referrer-when-downgrade origin origin-when-cross-origin unsafe-url |
Specifies which referrer information to use when fetching an image |
sizes | sizes | Specifies image sizes for different page layouts |
src | URL | Specifies the path to the image |
srcset | URL-list | Specifies a list of image files to use in different situations |
usemap | #mapname | Specifies an image as a client-side image map |
width | pixels | Specifies the width of an image |
'컴퓨터 > HTML' 카테고리의 다른 글
HTML textarea (0) | 2022.02.19 |
---|---|
submit 버튼에 svg 아이콘 넣기 (0) | 2022.02.17 |
HTML Content-Type (0) | 2022.02.12 |
HTML form (0) | 2022.02.12 |
HTML 기본 양식 (0) | 2022.01.27 |