img
attr
alignsurrounding context에 맞춘 이미지 정렬
HTML5에서는
float사용하거나vertical-align을 대신 사용
alt이미지 설명하는 대체 text.
만약 이미지가 로드 안되면 이 텍스트를 dp
sizes
source size의 set을 카리킨다. comma로 구분한 1개 이상의 스트링 리스트다.
srcset
user agent가 이용할 possible image src의 집합
Each string is composed of:
a URL to an img
optionally, whitespace followed by one of:
width descriptor or a positive integer (directly followed by
'w').width descriptor는 sizes attr에서 주어진 src size로 나눠진다.
Last updated
Was this helpful?